Add possibility to toggle visibility of lines from line chart

(Heikki Laaksonen) #1

If there are multiple lines in the same line charts, the colors are not a good way to distinguish the different lines. Sometimes the lines may be overlapping and it might be hard to see what line is which one since the mouse focus point is jumping if lines are close each others. In these kind of cases the color picker does not bring any value.

  1. Please consider implement a way to change or remove the line color picker from line chart legend and replace it with a possibility of clicking the line which would toggle the line visibility on and off.

  2. Please consider implement a re-scaling of y-axis if one line visibility is toggled on or off. For example if one line is 100 in y axis and rest 5 lines are between values 1-5, the chart should re-scale to allow viewing the lines with much smaller values.


(Joe Fleming) #2

You can do this already using filters, simply click on the value in the legend and then click on the magnifying glass with the minus (-) in it. Filtering out the value will cause the y-axis scale to resize.

If there's some other kind of interaction you'd like to see, I encourage you to open an issue on the repo.

(Heikki Laaksonen) #3

Nice :slight_smile: I had missed this one one. The magnifying glass functionality in legend was what I was looking for.


(system) #4