Merge pull request #16167 from prometheus/invert-legend-selection-behavior

Invert graph legend series show/hide behavior
This commit is contained in:
Julius Volz 2025-03-05 12:16:42 +01:00 committed by GitHub
commit 6da8b1050e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -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>
</>
);

View file

@ -313,6 +313,7 @@ export const getUPlotOptions = (
legend: {
show: true,
live: false,
isolate: true,
markers: {
fill: (
_u: uPlot,