(id, config)
| 59 | } |
| 60 | |
| 61 | function retrieveAxisFromDatasets(id, config) { |
| 62 | if (config.data && config.data.datasets) { |
| 63 | const boundDs = config.data.datasets.filter((d) => d.xAxisID === id || d.yAxisID === id); |
| 64 | if (boundDs.length) { |
| 65 | return getAxisFromDataset(id, 'x', boundDs[0]) || getAxisFromDataset(id, 'y', boundDs[0]); |
| 66 | } |
| 67 | } |
| 68 | return {}; |
| 69 | } |
| 70 | |
| 71 | function mergeScaleConfig(config, options) { |
| 72 | const chartDefaults = overrides[config.type] || {scales: {}}; |
no test coverage detected