* @param {module:echats/coord/Axis} axis * @return {Object} { * labels: [{ * formattedLabel: string, * rawLabel: string, * tickValue: number * }, ...], * labelCategoryInterval: number * }
(axis)
| 38283 | * } |
| 38284 | */ |
| 38285 | function createAxisLabels(axis) { |
| 38286 | // Only ordinal scale support tick interval |
| 38287 | return axis.type === 'category' |
| 38288 | ? makeCategoryLabels(axis) |
| 38289 | : makeRealNumberLabels(axis); |
| 38290 | } |
| 38291 | |
| 38292 | /** |
| 38293 | * @param {module:echats/coord/Axis} axis |
no test coverage detected