Make contextual menu be available in all chart types
Background
While working on #32868 (closed) I found that the contextual menu is not available in all charts.
Currently our contextual menu is only available in Anomaly & Time Series.
Current Status
Item | Single Stat | Heatmap | Columns | Stacked Columns | Anomaly | Time Series | Empty Chart |
---|---|---|---|---|---|---|---|
Expand Panel | No | No | No | No | Yes | Yes | No |
View Logs | No | No | No | No | Yes | Yes | No |
Download CSV | No | No | No | No | Yes | Yes | No |
Generate link | No | No | No | No | Yes | Yes | No |
Alerts | No | No | No | No | Yes | Yes | No |
Proposal
And I propose items become available depending on the chart type:
Item | Single Stat | Heatmap | Column | Stacked Column | Anomaly | Time Series | Empty Chart |
---|---|---|---|---|---|---|---|
Expand panel | Yes | Yes | Yes | Yes | Yes | Yes | No |
View Logs | Yes | Yes | Yes | Yes | Yes | Yes | No |
Download CSV | No | Yes | Yes | Yes | Yes | Yes | No |
Generate link | Yes | Yes | Yes | Yes | Yes | Yes | No |
Alerts | No | No | Yes | Yes | Yes | Yes | No |
Notes
- Options with "No", should be disabled when they are not available.
- Context menu (...) is present at all times.
Original Discussion
The following discussion from !25332 (merged) should be addressed:
-
@mrincon started a discussion: (+4 comments) TODO This could spin-off into another improvement because this code makes lots of assumptions about the shape of the data that are not necessarily true for many queries.
Edited by Miguel Rincon