d3.ticks()

d3.ticks(start, stop, count)

Returns an array of approximately count + 1 uniformly-spaced, nicely-rounded values between start and stop (inclusive). Each value is a power of ten multiplied by 1, 2 or 5. See also tickStep and linear.ticks. Note that due to the limited precision of IEEE 754 floating point, the returned values may not be exact decimals; use d3-format to format numbers for human consumption.

Ticks are inclusive in the sense that they may include the specified start and stop values if (and only if) they are exact, nicely-rounded values consistent with the inferred step. More formally, each returned tick t satisfies startt and tstop.

doc_D3_Js
2016-11-24 10:27:22
Comments
Leave a Comment

Please login to continue.