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

Function levels

docs/app/js/sanddance-app.js:130754–130757  ·  view source on GitHub ↗
(values, f, _)

Source from the content-addressed store, hash-verified

130752 }
130753});
130754function levels(values, f, _) {
130755 const q = quantize(_.levels || 10, _.nice, _.zero !== false);
130756 return _.resolve !== "shared" ? q : q(values.map((t)=>(0, _d3Array.max)(f(t).values)));
130757}
130758function transformPaths(paths, grid, datum, _) {
130759 let s = _.scale || grid.scale, t = _.translate || grid.translate;
130760 if ((0, _vegaUtil.isFunction)(s)) s = s(datum, _);

Callers 1

transformFunction · 0.70

Calls 2

quantizeFunction · 0.70
fFunction · 0.70

Tested by

no test coverage detected