* @param {Chart} chart * @param {number} index
(chart, index)
| 39 | * @param {number} index |
| 40 | */ |
| 41 | function getLineByIndex(chart, index) { |
| 42 | const meta = chart.getDatasetMeta(index); |
| 43 | const visible = meta && chart.isDatasetVisible(index); |
| 44 | return visible ? meta.dataset : null; |
| 45 | } |
| 46 | |
| 47 | function computeBoundary(source) { |
| 48 | const scale = source.scale || {}; |
no test coverage detected