MCPcopy Index your code
hub / github.com/microsoft/SandDance / tickValues

Function tickValues

docs/app/js/sanddance-app.js:127174–127176  ·  view source on GitHub ↗

* Generate tick values for the given scale and approximate tick count or * interval value. If the scale has a 'ticks' method, it will be used to * generate the ticks, with the count argument passed as a parameter. If the * scale lacks a 'ticks' method, the full scale domain will be returned. * @

(scale10, count)

Source from the content-addressed store, hash-verified

127172 * @param {*} [count] - The approximate number of desired ticks.
127173 * @return {Array<*>} - The generated tick values.
127174 */ function tickValues(scale10, count) {
127175 return scale10.bins ? validTicks(scale10, scale10.bins) : scale10.ticks ? scale10.ticks(count) : scale10.domain();
127176}
127177/**
127178 * Generate a label format function for a scale. If the scale has a
127179 * 'tickFormat' method, it will be used to generate the formatter, with the

Callers 2

tickLogFunction · 0.70
labelValuesFunction · 0.70

Calls 1

validTicksFunction · 0.70

Tested by

no test coverage detected