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

VueUiWaffle incorrectly converts percentage to proportional number of squares #81

Closed
tchapeaux opened this issue Oct 15, 2024 · 1 comment
Labels
bug : dataset Dataset is not being computed properly

Comments

@tchapeaux
Copy link

When using the Waffle Graph, the proportions of each serie's representation is wrong.

This inconsistency is directly visible in the provided example:

image

Here, series 3 is 301 out of 600, so it should be represented by roughly 50% (50) of squares.
However, we can see that it is represented by 48 squares.


Another example, with this configuration, both final series have the same value (4) but are represented with a different number of squares (5 and 1)

image


My expectation is that series with the same value should be represented with the same number of squares, corresponding to their relative percentage to the total value. There might be 1-square differences due to rounding, but here in both examples it appears to be a larger error.

@graphieros graphieros added the bug : layout Chart layout presents a defect label Oct 15, 2024
@graphieros
Copy link
Owner

graphieros commented Oct 15, 2024

@tchapeaux omg thanks for pointing out this aweful bug to me !
Fixed in v2.3.26 (docs & chart builder are also up to date)

@graphieros graphieros added bug : dataset Dataset is not being computed properly and removed bug : layout Chart layout presents a defect labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug : dataset Dataset is not being computed properly
Projects
None yet
Development

No branches or pull requests

2 participants