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: CHANGELOG.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,41 @@
1
1
# Observable Plot - Changelog
2
2
3
+
## 0.5.0
4
+
5
+
*Not yet released. These are forthcoming changes in the main branch.*
6
+
7
+
Plot now supports mark initializers via the **initializer** option. Initializers can transform data, channels, and indexes. Unlike data transforms which operate in abstract data space, initializers can operate in screen space such as pixel coordinates and colors. For example, initializers can modify a marks’ positions to avoid occlusion. The new hexbin and dodge transforms are implemented as mark initializers.
8
+
9
+
The new hexbin transform functions similarly to the bin transform, except it aggregates both *x* and *y* into hexagonal bins before reducing. The size of the hexagons can be specified with the **binWidth** option, which controls the width of the (pointy-topped) hexagons.
10
+
11
+
The new hexgrid decoration mark draws a hexagonal grid. It is intended to be used with the hexbin transform as an alternative to the default horizontal and vertical axis grid.
12
+
13
+
The dot mark now supports the *hexagon* symbol type for pointy-topped hexagons. The new circle and hexagon marks are convenience shorthand for dot marks with the *circle* and *hexagon* symbol, respectively. The dotX, dotY, textX, and textY marks now support the **interval** option.
14
+
15
+
The new dodge transform can be used to produce beeswarm plots. Given an *x* channel representing the desired horizontal position of circles, the dodgeY transform derives a new *y* (vertical position) channel such that the circles do not overlap; the dodgeX transform similarly derives a new *x* channel given a *y* channel. If an *r* channel is specified, the circles may have varying radius.
16
+
17
+
The mark **sort** option now supports index sorting. For example, to sort dots by ascending radius:
The dot mark now sorts by descending radius by default to reduce occlusion.
24
+
25
+
The **zero** scale option (like the **nice** and **clamp** options) may now be specified as a top-level option, applying to all quantitative scales.
26
+
27
+
The rule mark now correctly respects the **dx** and **dy** options.
28
+
29
+
Fix crash when using area mark shorthand.
30
+
31
+
Marks can now define a channel hint to set the default range of the *r* scale. This is used by the hexbin transform when producing an *r* output channel.
32
+
33
+
Improve performance of internal array operations, including type coercion.
34
+
35
+
[breaking] Color scales with diverging color schemes now default to the *diverging* scale type instead of the *linear* scale type.
36
+
37
+
[breaking]*mark*.initialize return signature.
38
+
3
39
## 0.4.3
4
40
5
41
[Released April 12, 2022.](https://github.com/observablehq/plot/releases/tag/v0.4.3)
0 commit comments