mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Invert graph legend series show/hide behavior
Also conditionally display instructions for "Cmd" vs. "Ctrl" depending on the user agent. See https://github.com/prometheus/prometheus/issues/16162#issuecomment-2699315258 Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
9e5d59b777
commit
8e79631f86
|
@ -95,7 +95,9 @@ const UPlotChart: FC<UPlotChartProps> = ({
|
||||||
className={classes.uplotChart}
|
className={classes.uplotChart}
|
||||||
/>
|
/>
|
||||||
<Text fz="xs" c="dimmed" ml={40} mt={-25} mb="lg">
|
<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") ? "Cmd" : "Ctrl"} + click: hide
|
||||||
|
single series
|
||||||
</Text>
|
</Text>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
@ -313,6 +313,7 @@ export const getUPlotOptions = (
|
||||||
legend: {
|
legend: {
|
||||||
show: true,
|
show: true,
|
||||||
live: false,
|
live: false,
|
||||||
|
isolate: true,
|
||||||
markers: {
|
markers: {
|
||||||
fill: (
|
fill: (
|
||||||
_u: uPlot,
|
_u: uPlot,
|
||||||
|
|
Loading…
Reference in a new issue