* @protected
(index)
| 959 | * @protected |
| 960 | */ |
| 961 | getContext(index) { |
| 962 | const ticks = this.ticks || []; |
| 963 | |
| 964 | if (index >= 0 && index < ticks.length) { |
| 965 | const tick = ticks[index]; |
| 966 | return tick.$context || |
| 967 | (tick.$context = createTickContext(this.getContext(), index, tick)); |
| 968 | } |
| 969 | return this.$context || |
| 970 | (this.$context = createScaleContext(this.chart.getContext(), this)); |
| 971 | } |
| 972 | |
| 973 | /** |
| 974 | * @return {number} |
no test coverage detected