Skip to content

Commit f7a0dfe

Browse files
committed
Update README
1 parent d9bebd0 commit f7a0dfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,14 @@ const color = Plot.scale({color: {type: "linear"}});
235235

236236
Both [*plot*.scale](#plotscalescalename) and [Plot.scale](#plotscaleoptions) return scale objects. These objects represent the actual (or “materialized”) values encountered in the plot, including the domain, range, interpolate function, *etc.* The scale’s label, if any, is also returned; however, note that other axis properties are not currently exposed. Point and band scales also expose their materialized bandwidth and step.
237237

238-
To reuse a scale across plots, pass the scale object into another plot specification:
238+
To reuse a scale across plots, pass the corresponding scale object into another plot specification:
239239

240240
```js
241241
const plot1 = Plot.plot(…);
242242
const plot2 = Plot.plot({…, color: plot1.scale("color")});
243243
```
244244

245-
For convenience, the returned *scale* exposes a *scale*.**apply**(*input*) method which returns the scale’s output for the given *input* value. When applicable, the *scale* object also exposes a *scale*.**invert**(*output*) method which returns the corresponding input value from the scale’s domain for the given *output* value.
245+
For convenience, scale objects expose a *scale*.**apply**(*input*) method which returns the scale’s output for the given *input* value. When applicable, scale objects also expose a *scale*.**invert**(*output*) method which returns the corresponding input value from the scale’s domain for the given *output* value.
246246

247247
### Position options
248248

0 commit comments

Comments
 (0)