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

Method getLabelTimestamps

src/scales/scale.time.js:651–665  ·  view source on GitHub ↗

* @protected

()

Source from the content-addressed store, hash-verified

649 * @protected
650 */
651 getLabelTimestamps() {
652 const timestamps = this._cache.labels || [];
653 let i, ilen;
654
655 if (timestamps.length) {
656 return timestamps;
657 }
658
659 const labels = this.getLabels();
660 for (i = 0, ilen = labels.length; i < ilen; ++i) {
661 timestamps.push(parse(this, labels[i]));
662 }
663
664 return (this._cache.labels = this._normalized ? timestamps : this.normalize(timestamps));
665 }
666
667 /**
668 * @param {number[]} values

Callers 2

_getLabelBoundsMethod · 0.95
buildTicksMethod · 0.95

Calls 3

normalizeMethod · 0.95
parseFunction · 0.85
getLabelsMethod · 0.65

Tested by

no test coverage detected