* Returns the location of the tick at the given index * The coordinate (0, 0) is at the upper-left corner of the canvas * @param {number} index * @return {number}
(index)
| 909 | * @return {number} |
| 910 | */ |
| 911 | getPixelForTick(index) { |
| 912 | const ticks = this.ticks; |
| 913 | if (index < 0 || index > ticks.length - 1) { |
| 914 | return null; |
| 915 | } |
| 916 | return this.getPixelForValue(ticks[index].value); |
| 917 | } |
| 918 | |
| 919 | /** |
| 920 | * Utility for getting the pixel location of a percentage of scale |
no test coverage detected