Bars In Barplot Become Transparent When There Is Many
When creating a barplot with many entries such as choosing the measurment dates as the x-axis for bathing water quality the bars will become transparent and the different colours even harder to distinguish.
If this interatction is intentional, then navigating the legend attached to the graphic is rather clunky.
To Reproduce Steps to reproduce the behavior:
- Follow the provided link bathing water quality or open the cube
- Choose barplot as graphic, date as x-axis and bathing site for the segmentation
- See error
Expected behavior That the colours displayed in the barplot correspond to the ones in the legend
Hi @tboeni, thank you for reporting the issue!
Generally, charts with so many items in the legend should be avoided anyway, as even if the bars were wider than in the example, the same colors would still be attached to different values (e.g. purple for Strandbad Rorschach, Bodensee, Ristorante Lido Capolago, Ostello della Gioventu...), misleading the user that they belong to the same category when looking at the chart (we try to advice the user with For best results, do not select more than 7 values in the visualization message displayed in the filter panel). Here the bars appear to be transparent due to a very high number of them – you can see in the screenshot below that they're just very, very narrow (but colored correctly).
If we increased the width of the bars, or constrained them to let's say 2px minimum, we would introduce overlaps or make the chart go outside of its viewport. We would need to introduce some kind of a horizontal scrolling behavior which in turn would make the comparisons across X axis harder.
I hope this answer makes sense! I think the issue with the colors not corresponding with the legend could be closed or renamed to something along the lines of "optimize presence of charts with many elements" to better describe the actual problem. What do you think @tboeni, do you see some other way to improve the situation?
cc @KerstinFaye @sosiology