MCPcopy Create free account
hub / github.com/chartjs/Chart.js / constructor

Method constructor

src/scales/scale.time.js:247–264  ·  view source on GitHub ↗

* @param {object} props

(props)

Source from the content-addressed store, hash-verified

245 * @param {object} props
246 */
247 constructor(props) {
248 super(props);
249
250 /** @type {{data: number[], labels: number[], all: number[]}} */
251 this._cache = {
252 data: [],
253 labels: [],
254 all: []
255 };
256
257 /** @type {Unit} */
258 this._unit = 'day';
259 /** @type {Unit=} */
260 this._majorUnit = undefined;
261 this._offsets = {};
262 this._normalized = false;
263 this._parseOpts = undefined;
264 }
265
266 init(scaleOpts, opts = {}) {
267 const time = scaleOpts.time || (scaleOpts.time = {});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected