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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,7 +206,7 @@ Quantitative scales can be further customized with additional options:
206
206
207
207
Clamping is typically used in conjunction with setting an explicit domain since if the domain is inferred, no values will be outside the domain. Clamping is useful for focusing on a subset of the data while ensuring that extreme values remain visible, but use caution: clamped values may need an annotation to avoid misinterpretation. Top-level **clamp**, **nice**, and **zero** options are supported as shorthand for setting the respective option on all scales.
208
208
209
-
The top-level **daspect** option, if specified, computes a default height such that a variation of 1 unit in the *x* dimension roughly corresponds to the same number of pixels as a variation of *daspect*unit in the *y* dimension. Note: for an exact data aspect ratio, set *fx* and *fy*’s round option to false.
209
+
The top-level **dataAspectRatio** option, if true, computes a default height such that a variation of one unit in the *x* dimension is represented by the same number of pixels as a variation in the *y* dimension of one unit—or *t* units if the option is specified as a positive number *t*. Note: when using facets, make sure to set *fx* and *fy*’s round option to false if you need an exact data aspect ratio.
210
210
211
211
The *scale*.**transform** option allows you to apply a function to all values before they are passed through the scale. This is convenient for transforming a scale’s data, say to convert to thousands or between temperature units.
0 commit comments