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

Function hasValidMinAndMax

src/plots/cartesian/autorange.js:678–689  ·  view source on GitHub ↗
(ax, min, max)

Source from the content-addressed store, hash-verified

676}
677
678function hasValidMinAndMax(ax, min, max) {
679 // in case both min and max are defined, ensure min < max
680 if(
681 min !== undefined &&
682 max !== undefined
683 ) {
684 min = ax.d2l(min);
685 max = ax.d2l(max);
686 return min < max;
687 }
688 return true;
689}
690
691// this function should be (and is) called before reversing the range
692// so range[0] is the minimum and range[1] is the maximum

Callers 2

applyAutorangeMinOptionsFunction · 0.85
applyAutorangeMaxOptionsFunction · 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…