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

Method ensureScalesHaveIDs

src/core/core.controller.js:308–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

306 }
307
308 ensureScalesHaveIDs() {
309 const options = this.options;
310 const scalesOptions = options.scales || {};
311
312 each(scalesOptions, (axisOptions, axisID) => {
313 axisOptions.id = axisID;
314 });
315 }
316
317 /**
318 * Builds a map of scale ID to scale object for future lookup.

Callers 1

_updateScalesMethod · 0.95

Calls 1

eachFunction · 0.85

Tested by

no test coverage detected