mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Merge pull request #16167 from prometheus/invert-legend-selection-behavior
Invert graph legend series show/hide behavior
This commit is contained in:
commit
6da8b1050e
2 changed files with 4 additions and 1 deletions
|
|
@ -95,7 +95,9 @@ const UPlotChart: FC<UPlotChartProps> = ({
|
|||
className={classes.uplotChart}
|
||||
/>
|
||||
<Text fz="xs" c="dimmed" ml={40} mt={-25} mb="lg">
|
||||
Click: hide single series, Ctrl+click: show single series
|
||||
Click: show single series,{" "}
|
||||
{navigator.userAgent.includes("Mac") ? "⌘" : "Ctrl"} + click: hide
|
||||
single series
|
||||
</Text>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -313,6 +313,7 @@ export const getUPlotOptions = (
|
|||
legend: {
|
||||
show: true,
|
||||
live: false,
|
||||
isolate: true,
|
||||
markers: {
|
||||
fill: (
|
||||
_u: uPlot,
|
||||
|
|
|
|||
Loading…
Reference in a new issue