* @param {Tick[]} ticks * @private
(ticks)
| 773 | * @private |
| 774 | */ |
| 775 | _convertTicksToLabels(ticks) { |
| 776 | this.beforeTickToLabelConversion(); |
| 777 | |
| 778 | this.generateTickLabels(ticks); |
| 779 | |
| 780 | // Ticks should be skipped when callback returns null or undef, so lets remove those. |
| 781 | let i, ilen; |
| 782 | for (i = 0, ilen = ticks.length; i < ilen; i++) { |
| 783 | if (isNullOrUndef(ticks[i].label)) { |
| 784 | ticks.splice(i, 1); |
| 785 | ilen--; |
| 786 | i--; |
| 787 | } |
| 788 | } |
| 789 | |
| 790 | this.afterTickToLabelConversion(); |
| 791 | } |
| 792 | |
| 793 | /** |
| 794 | * @return {{ first: object, last: object, widest: object, highest: object, widths: Array, heights: array }} |
no test coverage detected