mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Add graph legend series toggling instructions again (#16164)
Addresses part of https://github.com/prometheus/prometheus/issues/16162 Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
350d591e3b
commit
631890b38e
|
@ -5,7 +5,7 @@ import { GraphDisplayMode } from "../../state/queryPageSlice";
|
||||||
import uPlot from "uplot";
|
import uPlot from "uplot";
|
||||||
import UplotReact from "uplot-react";
|
import UplotReact from "uplot-react";
|
||||||
import { useSettings } from "../../state/settingsSlice";
|
import { useSettings } from "../../state/settingsSlice";
|
||||||
import { useComputedColorScheme } from "@mantine/core";
|
import { useComputedColorScheme, Text } from "@mantine/core";
|
||||||
|
|
||||||
import "uplot/dist/uPlot.min.css";
|
import "uplot/dist/uPlot.min.css";
|
||||||
import "./uplot.css";
|
import "./uplot.css";
|
||||||
|
@ -88,11 +88,16 @@ const UPlotChart: FC<UPlotChartProps> = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<UplotReact
|
<>
|
||||||
options={options}
|
<UplotReact
|
||||||
data={processedData}
|
options={options}
|
||||||
className={classes.uplotChart}
|
data={processedData}
|
||||||
/>
|
className={classes.uplotChart}
|
||||||
|
/>
|
||||||
|
<Text fz="xs" c="dimmed" ml={40} mt={-25} mb="lg">
|
||||||
|
Click: hide single series, Ctrl+click: show single series
|
||||||
|
</Text>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue