MCPcopy Create free account
hub / github.com/microsoft/SandDance / tickValues

Function tickValues

docs/tests/v2/es6/js/sanddance.js:110002–110004  ·  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. * @

(scale, count)

Source from the content-addressed store, hash-verified

110000
110001
110002function tickValues(scale, count) {
110003 return scale.bins ? validTicks(scale, scale.bins) : scale.ticks ? scale.ticks(count) : scale.domain();
110004}
110005/**
110006 * Generate a label format function for a scale. If the scale has a
110007 * 'tickFormat' method, it will be used to generate the formatter, with the

Callers

nothing calls this directly

Calls 1

validTicksFunction · 0.70

Tested by

no test coverage detected