MCPcopy Index your code
hub / github.com/plotly/plotly.js / getIncrement

Function getIncrement

src/plots/cartesian/axis_autotype.js:85–87  ·  view source on GitHub ↗
(len)

Source from the content-addressed store, hash-verified

83
84// return increment to test at most 1000 points, evenly spaced
85function getIncrement(len) {
86 return Math.max(1, (len - 1) / 1000);
87}
88
89// are the (x,y)-values in gd.data mostly text?
90// require twice as many DISTINCT categories as distinct numbers

Callers 2

moreDatesFunction · 0.85
categoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…