Skip to content

Commit e41dded

Browse files
committed
Update README
1 parent e712664 commit e41dded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ The following sequential scale schemes are supported for both quantitative and o
315315
* <sub><img src="./img/warm.png" width="32" height="16" alt="warm"></sub> *warm*
316316
* <sub><img src="./img/cool.png" width="32" height="16" alt="cool"></sub> *cool*
317317

318-
The default color scheme, *turbo*, was chosen primarily to ensure high-contrast visibility. Color schemes such as *blues* make low-value marks difficult to see against a white background, for better or for worseset the *range* to a section of the default [0, 1] to restrict the colors. If you wish to encode a quantitative value without hue, consider using *opacity* rather than *color* (e.g., use Plot.dot’s *strokeOpacity* instead of *stroke*).
318+
The default color scheme, *turbo*, was chosen primarily to ensure high-contrast visibility. Color schemes such as *blues* make low-value marks difficult to see against a white background, for better or for worse. To use a subset of a continuous color scheme (or any single-argument *interpolate* function), set the *scale*.range property to the corresponding subset of [0, 1]; for example, to use the first half of the *rainbow* color scheme, use a range of [0, 0.5]. By default, the full range [0, 1] is used. If you wish to encode a quantitative value without hue, consider using *opacity* rather than *color* (e.g., use Plot.dot’s *strokeOpacity* instead of *stroke*).
319319

320320
The following diverging scale schemes are supported:
321321

0 commit comments

Comments
 (0)