Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于splitNumber和precision的小数位数问题 #568

Closed
huoshan12345 opened this issue Aug 15, 2014 · 1 comment
Closed

关于splitNumber和precision的小数位数问题 #568

huoshan12345 opened this issue Aug 15, 2014 · 1 comment
Labels

Comments

@huoshan12345
Copy link

在说明里有个这样的描述:
{number} precision 0 小数精度,默认为0,无小数点,当 min ~ max 间在当前精度下无法整除splitNumber份时,精度会自动提高以满足均分,不支持不等划分

有个问题就是,无法整除的时候,小数位数会变得特别长,无法指定保留位数(之前我以为可以通过precision保留位数),请问如何能够指定保留小数的位数?

另外还有一个问题:http://echarts.baidu.com/doc/example/gauge5.html#macarons
在这个例子中中间的那个表盘,数据范围是0-220,分割段数是11,这个不是可以整除吗,怎么也出来一堆小数呢

@kener kener added the bug label Aug 15, 2014
@kener
Copy link
Contributor

kener commented Aug 15, 2014

谢谢反馈!bug confirm,恨死js的精度运算了。
js

@kener kener closed this as completed in 06611ea Aug 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants