(type, options)
| 3 | import {_attachContext, _createResolver, _descriptors} from '../helpers/helpers.config.js'; |
| 4 | |
| 5 | export 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 | |
| 11 | function getAxisFromDefaultScaleID(id, indexAxis) { |
| 12 | let axis = id; |
no outgoing calls
no test coverage detected