Skip to content

Commit dd9a389

Browse files
committed
update CHANGELOG
1 parent e2f041a commit dd9a389

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The new [*sort* options](https://github.com/observablehq/plot/blob/main/README.m
4444
Plot.barY(alphabet, {x: "letter", y: "frequency", sort: {x: "y", reverse: true}})
4545
```
4646

47-
Color scales now support the *threshold* scale type, allowing you to specify a set of *n* - 1 discrete (typically numeric) thresholds to produce *n* discrete colors.
47+
Color scales now support the *threshold* scale type, allowing you to specify a set of *n* - 1 discrete (typically numeric) thresholds to produce *n* discrete colors. The new *quantile* color scale type will automatically compute *n* - 1 thresholds for *n* quantiles based on the data.
4848

4949
<img width="640" alt="a histogram showing the forecast probabilities of Democratic electoral votes in the 2016 U.S. presidential election, with outcomes of 270 votes highlighted in blue" src="https://user-images.githubusercontent.com/230541/130157825-0624447b-f39d-4a2a-9363-e18129d6f20e.png">
5050

@@ -58,14 +58,12 @@ Plot.plot({
5858
domain: [270]
5959
},
6060
marks: [
61-
Plot.ruleX(data, {x: "dem_electoral_votes", y: "probability",stroke: "dem_electoral_votes",strokeWidth: 1.5}),
61+
Plot.ruleX(data, {x: "dem_electoral_votes", y: "probability", stroke: "dem_electoral_votes", strokeWidth: 1.5}),
6262
Plot.ruleX([270])
6363
]
6464
})
6565
```
6666

67-
The new *quantile* color scale type will automatically compute *n* - 1 thresholds for *n* quantiles based on the data.
68-
6967
Diverging color scales now support transformations via four new scale types: *diverging-sqrt*, *diverging-pow*, *diverging-log*, and *diverging-symlog*, corresponding to the *sqrt*, *pow*, *log*, and *symlog* quantitative scale types respectively.
7068

7169
Diverging scales now support a *symmetric* option, which defaults to true, to ensure that differences above and below the pivot are equally apparent. (This assumes that the diverging scale’s interpolator is similarly symmetric; this is true of all the built-in diverging color schemes from ColorBrewer.) For example, the choropleth below exaggerates West Virginia’s population decline of −3% relative to Alaska’s gain of +3%. This exaggeration is caused by the domain of [−3%, +17%]: −3% is mapped to the darkest purple while +17% is mapped to the darkest green. (The pivot of 0 is mapped to the midpoint of the scheme, which is light gray here.)

0 commit comments

Comments
 (0)