Skip to content

Commit 643b4d2

Browse files
authored
preparing for 3.0 (#600)
1 parent 6529418 commit 643b4d2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Observable Plot - Changelog
22

3+
## 0.3.0
4+
5+
Released… TK
6+
7+
The [Plot.image(*data*[, *options*])](https://github.com/observablehq/plot/blob/main/README.md#plotimage) mark centers an image on a certain *xy* position. See the [Plot: Image documentation notebook](https://observablehq.com/@observablehq/plot-image) for details.
8+
9+
Color legends! The new *plot*.legend(name) function returns a legend for the corresponding scale (only "color" and "opacity" are supported at the moment). Use the *legend*: true option in the plot’s color scale definition to wrap the legend with the plot in a figure element. A stand-alone Plot.**legend** function allows to create a legend independently of any chart. Two types of color legends are provided: *swatches* for ordinal scales, and *ramp* for continuous scales. See the [Plot: legends documentation notebook](https://observablehq.com/@observablehq/plot-legends) for details.
10+
11+
Plot.**scale**("x") now builds a scale.apply function, allowing to use the returned scale directly on data, or to create a custom legend; when applicable, a scale.invert function is also returned, which can be useful, for example, to build interactions.
12+
13+
All quantitative scales now have a default domain.
14+
15+
The stylesheet is now inlined in the generated SVG element; to avoid namespace collisions, we use a randomly-generated class name which. Use the top-level **className** option to specify that class name. The default style now uses font-variant: tabular-nums for a better alignment of numbers.
16+
17+
A new top-level *margin* option allows to set all of marginLeft, marginRight, marginTop, and marginBottom at once. (This shorthand notation is also available as a facet option.)
18+
19+
20+
## 0.2.9
21+
22+
Released October 12, 2021.
23+
24+
Update D3 to 7.1.1.
25+
326
## 0.2.8
427

528
Released October 1, 2021.

0 commit comments

Comments
 (0)