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
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,7 @@ These options determine the overall layout of the plot; all are specified as num
88
88
***margin** - shorthand for the four margins
89
89
***width** - the outer width of the plot (including margins)
90
90
***height** - the outer height of the plot (including margins)
91
+
***document** - the [document](https://developer.mozilla.org/en-US/docs/Web/API/Document) used to create plot elements; defaults to window.document
91
92
92
93
The default **width** is 640. On Observable, the width can be set to the [standard width](https://github.com/observablehq/stdlib/blob/main/README.md#width) to make responsive plots. The default **height** is chosen automatically based on the plot’s associated scales; for example, if *y* is linear and there is no *fy* scale, it might be 396.
93
94
@@ -295,7 +296,7 @@ Plot automatically generates axes for position scales. You can configure these a
295
296
**scale*.**label** - a string to label the axis
296
297
**scale*.**labelAnchor** - the label anchor: *top*, *right*, *bottom*, *left*, or *center*
297
298
**scale*.**labelOffset** - the label position offset (in pixels; default 0, typically for facet axes)
298
-
**scale*.**fontVariant** - the font-variant attribute for axis ticks; defaults to tabular-nums for quantitative axes.
299
+
**scale*.**fontVariant** - the font-variant attribute for axis ticks; defaults to tabular-nums for quantitative axes
299
300
**scale*.**ariaLabel** - a short label representing the axis in the accessibility tree
300
301
**scale*.**ariaDescription** - a textual description for the axis
0 commit comments