fix PieChart rendering issues by giving default height.

This commit is contained in:
Francis Cao committed 2026-05-18 23:06:47 -07:00
1 parent c6b2364a41
commit a7a0d73dd7
6 files changed
+5 -32

No files matched your search

-7
View File
@@ -62,13 +62,6 @@ export function EventsChart({ websiteId, focusLabel, limit }: EventsChartProps)
],
};
} else {
// Each label has a preferred palette slot derived from a hash of the
// label, so the same event tends to get the same color across reloads
// and date-range changes. We walk labels in hash order and, when two
// labels prefer the same slot, the later one steps to the next free
// slot, so the visible set of <=12 events all get distinct colors.
// The right shift on hex6 sidesteps the FNV-1a low-bit bias mod 12
// (the FNV prime is close to 2^24).
const colorByKey: Record<string, string> = {};
const used = new Set<string>();
const hashOf = Object.fromEntries(