Skip to content

Commit 3220bae

Browse files
committed
update CHANGELOG
1 parent c8382fa commit 3220bae

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,20 @@ Diverging scales now support a *symmetric* option, which defaults to true, to en
7777

7878
Diverging color scales now also 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. (The above choropleth uses a *diverging-log* scale to show relative change.)
7979

80-
The new axis *line* option, which defaults to false, can be used to show a continuous line along the *x* or *y* axis. For continuous scales, a rule annotating a meaningful value, such as zero, is generally preferred over the *line* option.
80+
The new axis *line* option, which defaults to false, can be used to show a continuous line along the *x* or *y* axis to denote the extent. This is most useful when the opposite axis is ordinal and thus a rule cannot annotate a meaningful value such as zero; if the opposite axis is quantitative, a rule is generally preferred.
8181

82-
<img width="640" alt="an empty plot showing horizontal and vertical lines along ordinal x and y axes, respectively" src="https://user-images.githubusercontent.com/7001/130227092-5f02f326-ac9b-478a-8eff-f11ec737f30e.png">
82+
<img width="640" alt="an empty plot showing a vertical line along the quantitative y-axis; the opposite x-axis is categorical" src="https://user-images.githubusercontent.com/230541/130158604-2b157912-e131-4736-bba0-0c7403818cf0.png">
8383

8484
```js
8585
Plot.plot({
8686
grid: true,
8787
inset: 6,
8888
x: {
89-
line: true,
90-
domain: [..."ABCDEFGH"]
89+
domain: "ABCDEFGH"
9190
},
9291
y: {
9392
line: true,
94-
domain: [..."abcdefg"]
93+
domain: [0, 1]
9594
}
9695
})
9796
```

test/plots/empty.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@ export default async function() {
66
grid: true,
77
inset: 6,
88
x: {
9-
domain: [0, 1]
9+
domain: "ABCDEFGH"
1010
},
1111
y: {
12+
line: true,
1213
domain: [0, 1]
13-
},
14-
marks: [
15-
Plot.frame(),
16-
undefined,
17-
null,
18-
() => null,
19-
() => undefined,
20-
() => svg`<circle cx=50% cy=50% r=5 fill=green>`
21-
]
14+
}
2215
});
2316
}

0 commit comments

Comments
 (0)