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

Function getFirstScaleId

src/core/core.datasetController.js:177–180  ·  view source on GitHub ↗
(chart, axis)

Source from the content-addressed store, hash-verified

175}
176
177function getFirstScaleId(chart, axis) {
178 const scales = chart.scales;
179 return Object.keys(scales).filter(key => scales[key].axis === axis).shift();
180}
181
182function createDatasetContext(parent, index) {
183 return createContext(parent,

Callers 1

linkScalesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected