Skip to content

Commit 2a8223f

Browse files
committed
update CHANGELOG
1 parent 2600dd8 commit 2a8223f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,22 @@ Diverging color scales now also support transformations via four new scale types
7979

8080
The new axis *line* option, which defaults to false, can be used to show a continuous line along the *x* or *y* axis. Using a rule to annotate a meaningful value, such as zero, is generally preferred over the *line* option.
8181

82+
<img width="640" alt="an empty plot showing horizontal and vertical lines along the x and y axes, respectively" src="https://user-images.githubusercontent.com/230541/130158604-2b157912-e131-4736-bba0-0c7403818cf0.png">
83+
84+
```js
85+
Plot.plot({
86+
grid: true,
87+
line: true,
88+
inset: 6,
89+
x: {
90+
domain: [0, 1]
91+
},
92+
y: {
93+
domain: [0, 1]
94+
}
95+
})
96+
```
97+
8298
### Facets
8399

84100
The mark *facet* option can be used to control whether or not a mark is faceted. The supported values are *auto*, *include*, and *exclude*. True is an alias for *include* and false is an alias for *exclude*. The default is *auto*, which facets a mark if and only if its data is strictly equal to the facet data. The *include* facet mode allows a mark with different data to be faceted; however, it requires that the mark’s data be parallel with the facet data (*i.e.*, have the same length and order). The *exclude* facet mode shows all data that are not present in the current facet; this can provide shared context across facets without overdrawing.

0 commit comments

Comments
 (0)