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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -579,7 +579,7 @@ In addition to the [standard mark options](#marks), including insets and rounded
579
579
***x** - the horizontal position; bound to the *x* scale, which must be *band*
580
580
***y** - the vertical position; bound to the *y* scale, which must be *band*
581
581
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.)
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
584
The **stroke** defaults to none. The **fill** defaults to currentColor if stroke is none, and to none otherwise.
585
585
@@ -589,7 +589,7 @@ The **stroke** defaults to none. The **fill** defaults to currentColor if stroke
Returns a new cell with the given *data* and *options*. If both the **x**and**y** options are not specified, *data* is assumed to be an array of pairs [[*x₀*, *y₀*], [*x₁*, *y₁*], [*x₂*, *y₂*], …] such that **x** = [*x₀*, *x₁*, *x₂*, …] and **y** = [*y₀*, *y₁*, *y₂*, …].
592
+
Returns a new cell with the given *data* and *options*. If neither the **x**nor**y** options are specified, *data* is assumed to be an array of pairs [[*x₀*, *y₀*], [*x₁*, *y₁*], [*x₂*, *y₂*], …] such that **x** = [*x₀*, *x₁*, *x₂*, …] and **y** = [*y₀*, *y₁*, *y₂*, …].
593
593
594
594
#### Plot.cellX(*data*, *options*)
595
595
@@ -619,9 +619,9 @@ In addition to the [standard mark options](#marks), the following optional chann
619
619
***y** - the vertical position; bound to the *y* scale
620
620
***r** - the radius (area); bound to the *radius* scale, which defaults to *sqrt*
621
621
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.)
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 3 (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 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
@@ -631,7 +631,7 @@ Dots are drawn in input order, with the last data drawn on top. If sorting is ne
631
631
Plot.dot(sales, {x:"units", y:"fruit"})
632
632
```
633
633
634
-
Returns a new dot with the given *data* and *options*. If both the **x**and**y** options are not specified, *data* is assumed to be an array of pairs [[*x₀*, *y₀*], [*x₁*, *y₁*], [*x₂*, *y₂*], …] such that **x** = [*x₀*, *x₁*, *x₂*, …] and **y** = [*y₀*, *y₁*, *y₂*, …].
634
+
Returns a new dot with the given *data* and *options*. If neither the **x**nor**y** options are specified, *data* is assumed to be an array of pairs [[*x₀*, *y₀*], [*x₁*, *y₁*], [*x₂*, *y₂*], …] such that **x** = [*x₀*, *x₁*, *x₂*, …] and **y** = [*y₀*, *y₁*, *y₂*, …].
635
635
636
636
#### Plot.dotX(*data*, *options*)
637
637
@@ -678,7 +678,7 @@ The line mark supports [curve options](#curves) to control interpolation between
678
678
Plot.line(aapl, {x:"Date", y:"Close"})
679
679
```
680
680
681
-
Returns a new line with the given *data* and *options*. If both the **x**and**y** options are not specified, *data* is assumed to be an array of pairs [[*x₀*, *y₀*], [*x₁*, *y₁*], [*x₂*, *y₂*], …] such that **x** = [*x₀*, *x₁*, *x₂*, …] and **y** = [*y₀*, *y₁*, *y₂*, …].
681
+
Returns a new line with the given *data* and *options*. If neither the **x**nor**y** options are specified, *data* is assumed to be an array of pairs [[*x₀*, *y₀*], [*x₁*, *y₁*], [*x₂*, *y₂*], …] such that **x** = [*x₀*, *x₁*, *x₂*, …] and **y** = [*y₀*, *y₁*, *y₂*, …].
682
682
683
683
#### Plot.lineX(*data*, *options*)
684
684
@@ -842,7 +842,7 @@ The **dx** and **dy** options can be specified either as numbers representing pi
842
842
843
843
#### Plot.text(*data*, *options*)
844
844
845
-
Returns a new text mark with the given *data* and *options*. If both the **x**and**y** options are not specified, *data* is assumed to be an array of pairs [[*x₀*, *y₀*], [*x₁*, *y₁*], [*x₂*, *y₂*], …] such that **x** = [*x₀*, *x₁*, *x₂*, …] and **y** = [*y₀*, *y₁*, *y₂*, …].
845
+
Returns a new text mark with the given *data* and *options*. If neither the **x**nor**y** options are specified, *data* is assumed to be an array of pairs [[*x₀*, *y₀*], [*x₁*, *y₁*], [*x₂*, *y₂*], …] such that **x** = [*x₀*, *x₁*, *x₂*, …] and **y** = [*y₀*, *y₁*, *y₂*, …].
0 commit comments