Adyen / lume

Lume is a component library for visual representations of data, built for Vue with D3.
https://lumedataviz.com
MIT License
37 stars 1 forks source link

Align the order of the stacks with the tooltip content #379

Closed bponomarenko closed 5 months ago

bponomarenko commented 6 months ago

Feature description

The order of the stacks in every bar of the Stacked Bar Chart in vertical orientation should be the same as the order in which datasets are presented in the tooltip.

Problem/motivation

It may be better for readability if the order of the stacks would be the same as data groups in the tooltip. This is already a case for the horizontal orientation, however in the vertical orientation order of the stacks on the chart is reversed.

Here is a screenshot taken from the official documentation website (for version 1.6.5):

Screenshot 2024-01-03 at 15 05 15

You can see that chart displays "Birds" data above the "Cats", while tooltip has "Cats" group all the way in the top.

Describe alternatives you've considered

No response

Additional context

No response

Validations