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

Function levels

docs/tests/v2/es6/js/sanddance.js:111897–111900  ·  view source on GitHub ↗
(values, f, _)

Source from the content-addressed store, hash-verified

111895};
111896
111897function levels(values, f, _) {
111898 const q = (0, _quantize.default)(_.levels || 10, _.nice, _.zero !== false);
111899 return _.resolve !== 'shared' ? q : q(values.map(t => (0, _d3Array.max)(f(t).values)));
111900}
111901
111902function transform(grid, scale) {
111903 const x1 = grid.x1 || 0,

Callers 1

sanddance.jsFile · 0.70

Calls 1

fFunction · 0.70

Tested by

no test coverage detected