.dcss-scale-threshold
Sorts a value into groups cut at the thresholds you set, and gives that group’s item.
Example
Result
Markup
<link rel="stylesheet" href="dcss.css">
<link rel="stylesheet" href="families/array.css">
<figure class="dcss-scale-threshold" style="--value: 0.5; --domain-0: 0.25; --domain-1: 0.75; --ranges: 3; --range-0: 'low'; --range-1: 'mid'; --range-2: 'high'">
<output></output>
</figure>
Browser support
| Browser | Support |
|---|---|
| Chrome | Yes |
| Safari | Yes |
| Firefox | Whole numbers only |
See also
d3.scaleThresholdin d3’s documentation