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
In Plot, a[mark’s channels](./marks.md)are bound to scales; for example, the line’s **x** channel is bound to the *x* scale. The channel name and the scale name are often the same, but not always; for example, an area’s **y1** and **y2** channels are both bound to the *y* scale. (You can opt-out of a scale for a particular channel using [scale overrides](./marks.html#mark-options) if needed.)
49
+
In Plot, the[mark](./marks.md)binds channels to scales; for example, the line’s **x** channel is bound to the *x* scale. The channel name and the scale name are often the same, but not always; for example, an area’s **y1** and **y2** channels are both bound to the *y* scale. (You can opt-out of a scale for a particular channel using [scale overrides](./marks.html#mark-options) if needed.)
50
50
51
51
Think of a scale as a function that takes an abstract value and returns the corresponding visual value. For the *y* scale above, that might look like this:
52
52
@@ -569,7 +569,7 @@ All position scales (*x*, *y*, *fx*, and *fy*) have implicit automatic ranges ba
569
569
The **transform** scale 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.
570
570
571
571
:::plot defer
572
-
```js
572
+
```js{5}
573
573
Plot.plot({
574
574
y: {
575
575
grid: true,
@@ -587,17 +587,12 @@ Plot.plot({
587
587
The **percent** scale option is shorthand for a **transform** that multiplies values by 100; it also adds a percent symbol (%) to the default label.
0 commit comments