MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / makeRealNumberLabels

Function makeRealNumberLabels

libs/echarts/echarts.simple.js:38385–38397  ·  view source on GitHub ↗
(axis)

Source from the content-addressed store, hash-verified

38383}
38384
38385function 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.

Callers 1

createAxisLabelsFunction · 0.70

Calls 2

makeLabelFormatterFunction · 0.70
mapFunction · 0.70

Tested by

no test coverage detected