* @param {module:echats/coord/Axis} axis * @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea. * @return {Object} { * ticks: Array. * tickCategoryInterval: number * }
(axis, tickModel)
| 38298 | * } |
| 38299 | */ |
| 38300 | function createAxisTicks(axis, tickModel) { |
| 38301 | // Only ordinal scale support tick interval |
| 38302 | return axis.type === 'category' |
| 38303 | ? makeCategoryTicks(axis, tickModel) |
| 38304 | : {ticks: axis.scale.getTicks()}; |
| 38305 | } |
| 38306 | |
| 38307 | function makeCategoryLabels(axis) { |
| 38308 | var labelModel = axis.getLabelModel(); |
no test coverage detected