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

Method initOffsets

src/scales/scale.timeseries.js:60–66  ·  view source on GitHub ↗

* @protected

()

Source from the content-addressed store, hash-verified

58 * @protected
59 */
60 initOffsets() {
61 const timestamps = this._getTimestampsForTable();
62 const table = this._table = this.buildLookupTable(timestamps);
63 this._minPos = interpolate(table, this.min);
64 this._tableRange = interpolate(table, this.max) - this._minPos;
65 super.initOffsets(timestamps);
66 }
67
68 /**
69 * Returns an array of {time, pos} objects used to interpolate a specific `time` or position

Callers

nothing calls this directly

Calls 3

buildLookupTableMethod · 0.95
interpolateFunction · 0.85

Tested by

no test coverage detected