vizzuhq / vizzu-lib

Library for animated data visualizations and data stories.

Home Page:https://lib.vizzuhq.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Legend items ordering, sorting

bears4barrett opened this issue · comments

Task: there should be parameters for legend ordering and sorting.

Legend and Geometry: Area charts work in reverse of each other as shown in the attached image.

Screen Shot 2022-07-13 at 11 26 15 AM

I attempted to remedy this with configurations (reverse, orientation, rotate, etc.), but none seemed to solve with desirable outcome. It would be nice if this directionality was corrected by default, or a configuration to reverse the order in the Y Axis.

Any fix or work around for this? @simzer

Hi, unfortunately, there is no fix yet. I have made a workaround, I hope it's applicable in your case:
https://jsfiddle.net/simzer/dkha2Lwm/21/

I rewrote the workaround because the legend-label-draw and legend-background-draw event arguments are changed in the main.
https://jsfiddle.net/vuhL74mw/39/

Great, thanks!