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

Method _getLabelBounds

src/scales/scale.time.js:353–363  ·  view source on GitHub ↗

* @private

()

Source from the content-addressed store, hash-verified

351 * @private
352 */
353 _getLabelBounds() {
354 const arr = this.getLabelTimestamps();
355 let min = Number.POSITIVE_INFINITY;
356 let max = Number.NEGATIVE_INFINITY;
357
358 if (arr.length) {
359 min = arr[0];
360 max = arr[arr.length - 1];
361 }
362 return {min, max};
363 }
364
365 /**
366 * @return {object[]}

Callers 1

determineDataLimitsMethod · 0.95

Calls 1

getLabelTimestampsMethod · 0.95

Tested by

no test coverage detected