Skip to content

Commit 98c027a

Browse files
flothermbostock
andauthored
Add info to README on what's available for scale.tickFormat (#668)
* Add info on what's available for scale.tickFormat * Update README.md Co-authored-by: Mike Bostock <[email protected]>
1 parent 4395f02 commit 98c027a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Plot automatically generates axes for position scales. You can configure these a
274274
* *scale*.**ticks** - the approximate number of ticks to generate
275275
* *scale*.**tickSize** - the size of each tick (in pixels; default 6)
276276
* *scale*.**tickPadding** - the separation between the tick and its label (in pixels; default 3)
277-
* *scale*.**tickFormat** - how to format tick values as a string (a function or format specifier)
277+
* *scale*.**tickFormat** - to format tick values, either a function or a [d3-format](https://github.com/d3/d3-format#locale_format) or [d3-time-format](https://github.com/d3/d3-time-format#locale_format) specifier string; see [Formats](#formats)
278278
* *scale*.**tickRotate** - whether to rotate tick labels (an angle in degrees clockwise; default 0)
279279
* *scale*.**grid** - if true, draw grid lines across the plot for each tick
280280
* *scale*.**line** - if true, draw the axis line

0 commit comments

Comments
 (0)