Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

explicitly reset ds.hidden in the hiddenLabels block

Yand0049e70b53d
diff --git a/src/components/charts/Chart.tsx b/src/components/charts/Chart.tsx
index 6fe167690..5ac44273a 100644
--- a/src/components/charts/Chart.tsx
+++ b/src/components/charts/Chart.tsx
@@ -131,6 +131,10 @@ export function Chart({
chart.current.data.datasets.forEach((ds: { hidden: boolean; label: any }) => {
if (hiddenLabels.has(ds.label)) {
ds.hidden = true;
+ } else if (!chartData.focusLabel) {
+ // Explicitly reset so un-hiding a label is always reflected,
+ // regardless of whether the focusLabel pass ran above.
+ ds.hidden = false;
}
});
}