* @protected
(index)
| 967 | * @protected |
| 968 | */ |
| 969 | getContext(index) { |
| 970 | const ticks = this.ticks || []; |
| 971 | |
| 972 | if (index >= 0 && index < ticks.length) { |
| 973 | const tick = ticks[index]; |
| 974 | return tick.$context || |
| 975 | (tick.$context = createTickContext(this.getContext(), index, tick)); |
| 976 | } |
| 977 | return this.$context || |
| 978 | (this.$context = createScaleContext(this.chart.getContext(), this)); |
| 979 | } |
| 980 | |
| 981 | /** |
| 982 | * @return {number} |
no test coverage detected