MCPcopy
hub / github.com/chartjs/Chart.js / determineDataLimits

Method determineDataLimits

src/scales/scale.linear.js:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20 determineDataLimits() {
21 const {min, max} = this.getMinMax(true);
22
23 this.min = isFinite(min) ? min : 0;
24 this.max = isFinite(max) ? max : 1;
25
26 // Common base implementation to handle min, max, beginAtZero
27 this.handleTickRangeOptions();
28 }
29
30 /**
31 * Returns the maximum number of ticks based on the scale dimension

Callers

nothing calls this directly

Calls 2

getMinMaxMethod · 0.65

Tested by

no test coverage detected