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

Method ensureScalesHaveIDs

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

Source from the content-addressed store, hash-verified

302 }
303
304 ensureScalesHaveIDs() {
305 const options = this.options;
306 const scalesOptions = options.scales || {};
307
308 each(scalesOptions, (axisOptions, axisID) => {
309 axisOptions.id = axisID;
310 });
311 }
312
313 /**
314 * 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