(value)
| 23 | const validIndex = (index, max) => index === null ? null : _limitValue(Math.round(index), 0, max); |
| 24 | |
| 25 | function _getLabelForValue(value) { |
| 26 | const labels = this.getLabels(); |
| 27 | |
| 28 | if (value >= 0 && value < labels.length) { |
| 29 | return labels[value]; |
| 30 | } |
| 31 | return value; |
| 32 | } |
| 33 | |
| 34 | export default class CategoryScale extends Scale { |
| 35 |