You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -305,15 +305,16 @@ The normal scale types—*linear*, *sqrt*, *pow*, *log*, *symlog*, and *ordinal*
305
305
**categorical* - equivalent to *ordinal*, but defaults to the *tableau10* scheme
306
306
**sequential* - equivalent to *linear*
307
307
**cyclical* - equivalent to *linear*, but defaults to the *rainbow* scheme
308
-
**threshold* - encodes based on the specified discrete thresholds
309
-
**quantile* - encodes based on the computed quantile thresholds
308
+
**threshold* - encodes based on the specified discrete thresholds; defaults to the *rdylbu* scheme
309
+
**quantile* - encodes based on the computed quantile thresholds; defaults to the *rdylbu* scheme
310
+
**quantize* - transforms a continuous domain into quantized thresholds; defaults to the *rdylbu* scheme
310
311
**diverging* - like *linear*, but with a pivot; defaults to the *rdbu* scheme
311
312
**diverging-log* - like *log*, but with a pivot that defaults to 1; defaults to the *rdbu* scheme
312
313
**diverging-pow* - like *pow*, but with a pivot; defaults to the *rdbu* scheme
313
314
**diverging-sqrt* - like *sqrt*, but with a pivot; defaults to the *rdbu* scheme
314
315
**diverging-symlog* - like *symlog*, but with a pivot; defaults to the *rdbu* scheme
315
316
316
-
For a *threshold* scale, the *domain* represents *n* (typically numeric) thresholds which will produce a *range* of *n* + 1 output colors; the *i*th color of the *range* applies to values that are smaller than the *i*th element of the domain and larger or equal to the *i* - 1th element of the domain. For a *quantile* scale, the *domain* represents all input values to the scale, and the *quantiles* option specifies how many quantiles to compute from the *domain*; *n* quantiles will produce *n* - 1 thresholds, and an output range of *n* colors.
317
+
For a *threshold* scale, the *domain* represents *n* (typically numeric) thresholds which will produce a *range* of *n* + 1 output colors; the *i*th color of the *range* applies to values that are smaller than the *i*th element of the domain and larger or equal to the *i* - 1th element of the domain. For a *quantile* scale, the *domain* represents all input values to the scale, and the *n* option specifies how many quantiles to compute from the *domain*; *n* quantiles will produce *n* - 1 thresholds, and an output range of *n* colors. For a *quantize* scale, the domain will be transformed into approximately *n* quantized values, where *n* is an option that defaults to 5.
317
318
318
319
By default, all diverging color scales are symmetric around the pivot; set *symmetric* to false if you want to cover the whole extent on both sides.
319
320
@@ -322,7 +323,7 @@ Color scales support two additional options:
322
323
**scale*.**scheme** - a named color scheme in lieu of a range, such as *reds*
323
324
**scale*.**interpolate** - in conjunction with a range, how to interpolate colors
324
325
325
-
For quantile color scales, the *scale*.scheme option is used in conjunction with *scale*.**quantiles**, which determines how many quantiles to compute, and thus the number of elements in the scale’s range; it defaults to 5 for quintiles.
326
+
For quantile and quantize color scales, the *scale*.scheme option is used in conjunction with *scale*.**n**, which determines how many quantiles or quantized values to compute, and thus the number of elements in the scale’s range; it defaults to 5 (for quintiles in the case of a quantile scale).
326
327
327
328
The following sequential scale schemes are supported for both quantitative and ordinal data:
0 commit comments