Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harmonize Legend-Select-Behaviour between Pie Chart & TimeSeries #32382

Open
tzafke opened this issue Mar 27, 2021 · 2 comments
Open

Harmonize Legend-Select-Behaviour between Pie Chart & TimeSeries #32382

tzafke opened this issue Mar 27, 2021 · 2 comments
Labels
area/dataviz Anything that relates to Data Visualisation work but is not specific to one panel area/legend area/panel/piechart Core pie chart visualization

Comments

@tzafke
Copy link

tzafke commented Mar 27, 2021

What would you like to be added:

  • in Grafana we can visualize multiple metrics in one timeseries as well as visualizing multiple metrics in a pie chart
    (that's what pie charts do)
  • when activating the legend, we can select legend items by clicking them to show / unshow the visualized series / metrics
  • the behaviour of this action differs between
    • panel/graph (panel/timeseries) and panel/piechart
    • panel/graph
      • selecting a legend item exclusively shows the selected item (means unselect all others)
      • selecting / unselecting multiple items is possible with holding shift OR ctrl
        (I learned from Selecting multiple series from graph legend #18477 that is works with shift)
    • panel/piechart
      • "clicking" a legend item selects / unselects the single series / metric w/o any effect to the other items
      • to have only two metrics visaulized I need to click (unselect) all the other metrics and the other way around)
  • I can understand that both behaviours have their advantages / disadvantages with the number of metrics as the differentiator when to use what
  • I propose the following (combined) behavior for both panels
    • having the current pie chart behavior as a default
      • is very intuitiv
      • in pie charts it should be a very rare usecase to select one item exlusively --> only to have a starting point for "multi-select"
      • but it makes sense to have a feature for "show all again"
    • using the alt key to exclusively select one metric or show all metrics again
      (not using shift, because this also selects the text and expectation for shift is to mark/select everything between 1st selected item to 2nd selected item)
    • having a panel option to generate the current timeseries behaviour. In this case keep it wih ctrl as "multi-select-key"

Why is this needed:

  • from my perspective the diffent behaviour is confusing for users
  • the current pie chart is lacking the feature of "exclusively select" / "select all again" as far is I know
  • from my perspective the behaviour of the panel/graph is not intuitiv but an good option for powerusers. Thats why the
    • the feature should be available via ALT
    • there CAN be an panel option to make that default

Version: 7.3.6

@torkelo torkelo added the area/panel/piechart Core pie chart visualization label Mar 28, 2021
@louislefebvre
Copy link

Hello, did you find a way to achieve this? Thank you

@mdvictor
Copy link
Contributor

mdvictor commented Jun 9, 2023

Hello! I agree that the PieChart should not differ in legend select functionality as to avoid confusion, I'll have a look on fixing this.

@mdvictor mdvictor self-assigned this Jun 9, 2023
@supilee supilee added the area/dataviz Anything that relates to Data Visualisation work but is not specific to one panel label Jun 17, 2023
@mdvictor mdvictor removed their assignment Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dataviz Anything that relates to Data Visualisation work but is not specific to one panel area/legend area/panel/piechart Core pie chart visualization
Projects
None yet
Development

No branches or pull requests

6 participants