Skip to content

VueUiWaffle incorrectly converts percentage to proportional number of squares #81

@tchapeaux

Description

@tchapeaux

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug : datasetDataset is not being computed properly

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions