(axis: Axis)
| 281 | } |
| 282 | |
| 283 | function makeRealNumberLabels(axis: Axis): ReturnType<typeof createAxisLabels> { |
| 284 | const ticks = axis.scale.getTicks(); |
| 285 | const labelFormatter = makeLabelFormatter(axis); |
| 286 | return { |
| 287 | labels: zrUtil.map(ticks, function (tick, idx) { |
| 288 | return { |
| 289 | formattedLabel: labelFormatter(tick, idx), |
| 290 | rawLabel: axis.scale.getLabel(tick), |
| 291 | tick: tick, |
| 292 | }; |
| 293 | }) |
| 294 | }; |
| 295 | } |
| 296 | |
| 297 | // Large category data calculation is performance sensitive, and ticks and label probably will |
| 298 | // be fetched multiple times (e.g. shared by splitLine and axisTick). So we cache the result. |
no test coverage detected
searching dependent graphs…