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

Method init

src/core/core.scale.js:256–266  ·  view source on GitHub ↗

* @param {any} options * @since 3.0

(options)

Source from the content-addressed store, hash-verified

254 * @since 3.0
255 */
256 init(options) {
257 this.options = options.setContext(this.getContext());
258
259 this.axis = options.axis;
260
261 // parse min/max value, so we can properly determine min/max for other scales
262 this._userMin = this.parse(options.min);
263 this._userMax = this.parse(options.max);
264 this._suggestedMin = this.parse(options.suggestedMin);
265 this._suggestedMax = this.parse(options.suggestedMax);
266 }
267
268 /**
269 * Parse a supported input value to internal representation.

Callers

nothing calls this directly

Calls 3

getContextMethod · 0.95
parseMethod · 0.95
setContextMethod · 0.80

Tested by

no test coverage detected