Skip to content

Commit 2598026

Browse files
committed
Update CHANGELOG
1 parent 0641ea8 commit 2598026

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

CHANGELOG.md

+46
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,52 @@
22

33
Year: **Current (2023)** · [2022](./CHANGELOG-2022.md) · [2021](./CHANGELOG-2021.md)
44

5+
## 0.6.8
6+
7+
[Released June 2, 2023.](https://github.com/observablehq/plot/releases/tag/v0.6.8)
8+
9+
The *x* and *y* scale default domains now incorporate geometry. This allows arbitrary polygonal geometry to be defined in abstract coordinates using the [geo mark](https://observablehq.com/plot/marks/geo) and then displayed using scales.
10+
11+
<img src="./test/output/geoLine.svg" width="640" alt="A line chart of Apple stock price from 2013 to 2018.">
12+
13+
```js
14+
Plot.geo({type: "LineString", coordinates: aapl.map((d) => [d.Date, d.Close])}).plot()
15+
```
16+
17+
The stack transform’s **order** option now supports *-order* descending shorthand or a two-argument comparator. For example, you can use *-appearance* to sort by descending appearance. Below, a custom comparator is used to sort by ascending *group* and then descending *revenue*.
18+
19+
<img src="./test/output/musicRevenueCustomOrder.svg" width="640" alt="A line chart of Apple stock price from 2013 to 2018.">
20+
21+
```js
22+
Plot.plot({
23+
y: {
24+
grid: true,
25+
label: "Annual revenue (billions, adj.)",
26+
transform: (d) => d / 1000
27+
},
28+
marks: [
29+
Plot.areaY(
30+
riaa,
31+
Plot.stackY({
32+
x: "year",
33+
y: "revenue",
34+
z: "format",
35+
order: (a, b) => d3.ascending(a.group, b.group) || d3.descending(a.revenue, b.revenue),
36+
fill: "group",
37+
stroke: "white"
38+
})
39+
),
40+
Plot.ruleY([0])
41+
]
42+
})
43+
```
44+
45+
Fix the default **stroke** with the hexbin transform when used with the tip mark. Fix spurious high-cardinality warning with an odd number of elements when using varying aesthetics with the area or line mark.
46+
47+
Fix *color* legends when the **domain** and **range** have different lengths: extra elements in the range are now ignored by the color legend, and a warning is issued.
48+
49+
Fix duplicate application of scale transforms with the **tip** mark option. Fix erroneous implicit **title** channel with the **tip** mark option.
50+
551
## 0.6.7
652

753
[Released May 24, 2023.](https://github.com/observablehq/plot/releases/tag/v0.6.7)

0 commit comments

Comments
 (0)