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

Function getIndexAxis

src/core/core.config.js:5–9  ·  view source on GitHub ↗
(type, options)

Source from the content-addressed store, hash-verified

3import {_attachContext, _createResolver, _descriptors} from '../helpers/helpers.config.js';
4
5export function getIndexAxis(type, options) {
6 const datasetDefaults = defaults.datasets[type] || {};
7 const datasetOptions = (options.datasets || {})[type] || {};
8 return datasetOptions.indexAxis || options.indexAxis || datasetDefaults.indexAxis || 'x';
9}
10
11function getAxisFromDefaultScaleID(id, indexAxis) {
12 let axis = id;

Callers 2

mergeScaleConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected