Commit 064ccdf3 authored by 陈龙's avatar 陈龙

fix: 修复历史曲线y轴精度异常导致的显示异常

parent c84ae743
......@@ -582,7 +582,7 @@ const handleDefault = (config, cusOption) => {
};
};
const handleMaxValue = (value) => {
if (value <= 1) return value.toFixed(2);
if (value <= 1) return Number(value.toFixed(3));
if (value >= 100000) return `${(value / 1000).toFixed(2)}k`;
return value.toFixed(2);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment