提交 6bf7b8b1 编写于 作者: P Peter Pan

fix: scalar chart tooltip value error

上级 447e0377
......@@ -205,7 +205,7 @@ export const tooltip = (data: TooltipData[], i18n: I18n) => {
run: item.run,
// use precision then toString to remove trailling 0
smoothed: new BigNumber(data[indexPropMap.smoothed] ?? Number.NaN).precision(5).toString(),
value: new BigNumber(data[indexPropMap.smoothed] ?? Number.NaN).precision(5).toString(),
value: new BigNumber(data[indexPropMap.value] ?? Number.NaN).precision(5).toString(),
step: data[indexPropMap.step],
time: formatTime(data[indexPropMap.time], i18n.language),
// Relative display value should take easy-read into consideration.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册