You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The order of items in the stacked bar chart tooltip are reversed.
In the bar chart you can see light blue is on top and dark blue on bottom, but in the tooltip the orders are reversed.
I made a quick solution by passing optional reverseOrder boolean to ChartTooltipContent component and then reversing the order of payload before it is mapped (reverseOrder ? payload.slice().reverse() : payload).map. But I am not sure if this is the right solution.
Describe the bug
The order of items in the stacked bar chart tooltip are reversed.
In the bar chart you can see light blue is on top and dark blue on bottom, but in the tooltip the orders are reversed.
I made a quick solution by passing optional reverseOrder boolean to ChartTooltipContent component and then reversing the order of payload before it is mapped
(reverseOrder ? payload.slice().reverse() : payload).map
. But I am not sure if this is the right solution.Affected component/components
Stacked Bar Chart
How to reproduce
Codesandbox/StackBlitz link
No response
Logs
System Info
Before submitting
The text was updated successfully, but these errors were encountered: