(axis)
| 38383 | } |
| 38384 | |
| 38385 | function makeRealNumberLabels(axis) { |
| 38386 | var ticks = axis.scale.getTicks(); |
| 38387 | var labelFormatter = makeLabelFormatter(axis); |
| 38388 | return { |
| 38389 | labels: map(ticks, function (tickValue, idx) { |
| 38390 | return { |
| 38391 | formattedLabel: labelFormatter(tickValue, idx), |
| 38392 | rawLabel: axis.scale.getLabel(tickValue), |
| 38393 | tickValue: tickValue |
| 38394 | }; |
| 38395 | }) |
| 38396 | }; |
| 38397 | } |
| 38398 | |
| 38399 | // Large category data calculation is performence sensitive, and ticks and label |
| 38400 | // probably be fetched by multiple times. So we cache the result. |
no test coverage detected