Skip to content

Commit 98f9475

Browse files
committed
Update CHANGELOG
1 parent 3e39c0f commit 98f9475

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

CHANGELOG.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,45 @@
66

77
The new [auto mark](./README.md#auto) ([Plot.auto](./README.md#plotautodata-options)) automatically selects a mark type that best represents the dimensions of the given data according to some simple heuristics. The auto mark is intended to support fast exploratory analysis where the goal is to get a useful plot as quickly as possible. It’s also great if you’re new to Plot, since you can get started with a minimal API. For example,
88

9-
[TK image]
9+
[<img src="./img/auto-dot.webp" width="640" alt="A scatterplot height and weight of olympic athletes.">](https://observablehq.com/@observablehq/plot-auto)
1010

1111
```js
1212
Plot.auto(olympians, {x: "height", y: "weight"}).plot()
1313
```
1414

15-
makes a scatterplot (equivalent to [dot](./README.md#dot));
15+
makes a scatterplot (equivalent to [dot](./README.md#plotdotdata-options)); while adding **color**
1616

17-
[TK image]
17+
[<img src="./img/auto-bin-color.webp" width="640" alt="A heatmap of .">](https://observablehq.com/@observablehq/plot-auto)
18+
19+
```js
20+
Plot.auto(olympians, {x: "height", y: "weight", color: "count"}).plot()
21+
```
22+
23+
makes a heatmap (equivalent to [rect](./README.md#plotrectdata-options) and [bin](./README.md#plotbinoutputs-options); chosen since _height_ and _weight_ are quantitative);
24+
25+
[<img src="./img/auto-line.webp" width="640" alt="A line chart of Apple stock price.">](https://observablehq.com/@observablehq/plot-auto)
1826

1927
```js
2028
Plot.auto(aapl, {x: "Date", y: "Close"}).plot()
2129
```
2230

23-
makes a line chart (equivalent to [lineY](./README.md#line); chosen because the selected *x* dimension *Date* is temporal and monotonic, _i.e._, the data is in chronological order);
31+
makes a line chart (equivalent to [lineY](./README.md#plotlineydata-options); chosen because the selected *x* dimension *Date* is temporal and monotonic, _i.e._, the data is in chronological order);
2432

25-
[TK image]
33+
[<img src="./img/auto-bin.webp" width="640" alt="A histogram of penguin body mass.">](https://observablehq.com/@observablehq/plot-auto)
2634

2735
```js
2836
Plot.auto(penguins, {x: "body_mass_g"}).plot()
2937
```
3038

31-
makes a histogram (equivalent to [rectY](./README.md#rect) and [binX](./README.md#bin); chosen because the _body_mass_g_ column is quantitative);
39+
makes a histogram (equivalent to [rectY](./README.md#plotrectydata-options) and [binX](./README.md#plotbinxoutputs-options); chosen because the _body_mass_g_ column is quantitative);
3240

33-
[TK image]
41+
[<img src="./img/auto-group.webp" width="640" alt="A vertical bar chart of penguins by island.">](https://observablehq.com/@observablehq/plot-auto)
3442

3543
```js
3644
Plot.auto(penguins, {x: "island"}).plot()
3745
```
3846

39-
makes a bar chart (equivalent to [barY](./README.md#bar) and [groupX](./README.md#group); chosen because the _island_ column is categorical).
47+
makes a bar chart (equivalent to [barY](./README.md#plotbarydata-options) and [groupX](./README.md#plotgroupxoutputs-options); chosen because the _island_ column is categorical).
4048

4149
Plot’s [axes](./README.md#axis) and [grids](./README.md#axis) are now proper marks, affording a high degree of customizability. This has been one of our most asked-for features, closing more than a dozen feature requests!
4250

img/auto-bin-color.webp

37.3 KB
Binary file not shown.

img/auto-bin.webp

13.1 KB
Binary file not shown.

img/auto-dot.webp

82.1 KB
Binary file not shown.

img/auto-group.webp

10.3 KB
Binary file not shown.

img/auto-line.webp

24.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)