ecomfe / echarts-stat

Statistics tool for Apache ECharts
595 stars 309 forks source link

RangeError: toFixed() digits argument must be between 0 and 100 #16

Open davidfufu opened 6 years ago

davidfufu commented 6 years ago

Is there any way to configure it to set the upper and lower limits?

hon2a commented 6 years ago

And to add a proper description:

histogram crashes in tickStep with the message in this issue's name, because it supplies a negative number as argument to Number.prototype.toFixed. It has been broken by this commit. The rounding needs to happen only when precision is negative.