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

Function linearOK

src/plots/cartesian/axis_autotype.js:46–54  ·  view source on GitHub ↗
(a, convertNumeric)

Source from the content-addressed store, hash-verified

44// is there at least one number in array? If not, we should leave
45// ax.type empty so it can be autoset later
46function linearOK(a, convertNumeric) {
47 var len = a.length;
48
49 for(var i = 0; i < len; i++) {
50 if(hasTypeNumber(a[i], convertNumeric)) return true;
51 }
52
53 return false;
54}
55
56// does the array a have mostly dates rather than numbers?
57// note: some values can be neither (such as blanks, text)

Callers 1

axis_autotype.jsFile · 0.85

Calls 1

hasTypeNumberFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…