antvis / data-set

state driven all in one data process for data visualization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

精度处理异常

Arweil opened this issue · comments

commented

transform percent
image

这是 js 的问题,你可以再执行一个 map transform,用 toFixed 处理一下数字精度

commented

所以在使用类似饼状图并且使用transform percent的时候,必须使用transform map方法进行tofixed精度处理。
是否可以在transform percent的API中加入精度处理。

这是 js 的问题,你可以再执行一个 map transform,用 toFixed 处理一下数字精度

感谢,那#94 也可以这样曲线救国