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

donut and rose display wrong percentage #534

Closed
BigFatDog opened this issue Sep 26, 2020 · 4 comments
Closed

donut and rose display wrong percentage #534

BigFatDog opened this issue Sep 26, 2020 · 4 comments

Comments

@BigFatDog
Copy link

General

donut and rose display wrong percentage while pie is correct, with the same data.

Re-produce:
I directly use sample code from donut, pie and rose, and try with the following data:

[{x: 0, y: 150}, {x:1, y: 115698}]

the corresponding config is:
oAccessor={"x"} rAccessor={"y"}

Version
1.20.5 and 2.0.0-rc5

Please see attached images

@BigFatDog
Copy link
Author

BigFatDog commented Sep 26, 2020

pie: correct
截屏2020-09-26 上午11 23 43
donut: incorrect
截屏2020-09-26 上午11 25 43
rose: incorrect
截屏2020-09-26 上午11 33 30

@emeeks
Copy link
Member

emeeks commented Oct 26, 2020

Well that's not good. Will take a look at it.

@emeeks
Copy link
Member

emeeks commented Jan 5, 2021

This is fixed in 2.0.0-rc.12. The problem was that it wasn't handling ordinal values created with numbers (in your case the x values).

@emeeks emeeks closed this as completed Jan 5, 2021
@BigFatDog
Copy link
Author

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants