You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -528,7 +528,7 @@ Returns a new area with the given *data* and *options*. This constructor is used
528
528
529
529
[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.
530
530
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.
532
532
533
533
#### Plot.barX(*data*, *options*)
534
534
@@ -581,7 +581,7 @@ In addition to the [standard mark options](#marks), including insets and rounded
581
581
582
582
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.
583
583
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.
585
585
586
586
#### Plot.cell(*data*, *options*)
587
587
@@ -621,7 +621,7 @@ In addition to the [standard mark options](#marks), the following optional chann
621
621
622
622
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.
623
623
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.
625
625
626
626
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).
627
627
@@ -738,7 +738,7 @@ The following channels are required:
738
738
739
739
The rect mark supports the [standard mark options](#marks), including insets and rounded corners.
740
740
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.
742
742
743
743
TODO Mention that rect is often used in conjunction with the [bin transform](#bin).
0 commit comments