MCPcopy
hub / github.com/apache/echarts / toFixed

Method toFixed

src/component/visualMap/VisualMapModel.ts:396–402  ·  view source on GitHub ↗
(val: number)

Source from the content-addressed store, hash-verified

394 }
395
396 function toFixed(val: number) {
397 return val === dataBound[0]
398 ? 'min'
399 : val === dataBound[1]
400 ? 'max'
401 : (+val).toFixed(Math.min(precision, 20));
402 }
403 }
404
405 /**

Callers 15

makeCategoryDataFunction · 0.80
makeValueDataFunction · 0.80
makeTimeDataFunction · 0.80
makeCategoryPolarFunction · 0.80
makeCategoryGridFunction · 0.80
makeValueGridFunction · 0.80
makeTimeGridFunction · 0.80
makeCategoryCartesianFunction · 0.80
printSingleCanvasLayerFunction · 0.80
roundFunction · 0.80
rFunction · 0.80
ecStat.min.jsFile · 0.80

Calls

no outgoing calls

Tested by 1

eachFunction · 0.64