Skip to content

Commit 1af1496

Browse files
committed
Update README
1 parent ddcca78 commit 1af1496

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ Returns a new area with the given *data* and *options*. This constructor is used
528528

529529
[Source](./src/marks/bar.js) · [Examples](https://observablehq.com/@data-workflows/plot-bar) · Draws rectangles where *x* is ordinal and *y* is quantitative ([Plot.barY](#plotbarydata-options)) or *y* is ordinal and *x* is quantitative ([Plot.barX](#plotbarxdata-options)). There is usually one ordinal value associated with each bar, such as a name, and two quantitative values defining a lower and upper bound. The lower bound is often not specified explicitly because it defaults to zero as in a conventional bar chart.
530530

531-
For the required channels, see [Plot.barX](#plotbarxdata-options) and [Plot.barY](#plotbarydata-options). The bar mark supports the [standard mark options](#marks), including insets and rounded corners. The **stroke** defaults to none. The **fill** defaults to currentColor if stroke is none, and to none otherwise.
531+
For the required channels, see [Plot.barX](#plotbarxdata-options) and [Plot.barY](#plotbarydata-options). The bar mark supports the [standard mark options](#marks), including insets and rounded corners. The **stroke** defaults to none. The **fill** defaults to currentColor if the stroke is none, and to none otherwise.
532532

533533
#### Plot.barX(*data*, *options*)
534534

@@ -581,7 +581,7 @@ In addition to the [standard mark options](#marks), including insets and rounded
581581

582582
If the **x** channel is not specified, the cell will span the full horizontal extent of the plot (or facet). Likewise if the **y** channel is not specified, the cell will span the full vertical extent of the plot (or facet). Typically either *x*, *y*, or both are specified; see [Plot.frame](#frame) if you want a simple frame decoration around the plot.
583583

584-
The **stroke** defaults to none. The **fill** defaults to currentColor if stroke is none, and to none otherwise.
584+
The **stroke** defaults to none. The **fill** defaults to currentColor if the stroke is none, and to none otherwise.
585585

586586
#### Plot.cell(*data*, *options*)
587587

@@ -621,7 +621,7 @@ In addition to the [standard mark options](#marks), the following optional chann
621621

622622
If the **x** channel is not specified, dots will be horizontally centered in the plot (or facet). Likewise if the **y** channel is not specified, dots will vertically centered in the plot (or facet). Typically either *x*, *y*, or both are specified.
623623

624-
The **r** option defaults to three pixels and can be specified as either a channel or constant. When the radius is specified as a number, it is interpreted as a constant; otherwise it is interpreted as a channel. Dots with a nonpositive radius are not drawn. The **stroke** defaults to none. The **fill** defaults to currentColor if stroke is none, and to none otherwise. The **strokeWidth** defaults to 1.5.
624+
The **r** option defaults to three pixels and can be specified as either a channel or constant. When the radius is specified as a number, it is interpreted as a constant; otherwise it is interpreted as a channel. Dots with a nonpositive radius are not drawn. The **stroke** defaults to none. The **fill** defaults to currentColor if the stroke is none, and to none otherwise. The **strokeWidth** defaults to 1.5.
625625

626626
Dots are drawn in input order, with the last data drawn on top. If sorting is needed, say to mitigate overplotting by drawing the smallest dots on top, consider a [sort and reverse transform](#transforms).
627627

@@ -738,7 +738,7 @@ The following channels are required:
738738

739739
The rect mark supports the [standard mark options](#marks), including insets and rounded corners.
740740

741-
**stroke** defaults to none, and **fill** defaults to currentColor if stroke is none, and to none otherwise.
741+
The **stroke** defaults to none. The **fill** defaults to currentColor if the stroke is none, and to none otherwise.
742742

743743
TODO Mention that rect is often used in conjunction with the [bin transform](#bin).
744744

0 commit comments

Comments
 (0)