diff --git a/stats/src/components/trends/TrendChart.tsx b/stats/src/components/trends/TrendChart.tsx
index 4a7862e..965d32a 100644
--- a/stats/src/components/trends/TrendChart.tsx
+++ b/stats/src/components/trends/TrendChart.tsx
@@ -9,9 +9,10 @@ interface TrendChartProps {
color: string;
type: 'bar' | 'line';
formatter?: (value: number) => string;
+ onBarClick?: (label: string) => void;
}
-export function TrendChart({ title, data, color, type, formatter }: TrendChartProps) {
+export function TrendChart({ title, data, color, type, formatter, onBarClick }: TrendChartProps) {
const tooltipStyle = {
background: '#363a4f', border: '1px solid #494d64', borderRadius: 6, color: '#cad3f5', fontSize: 12,
};
@@ -27,7 +28,13 @@ export function TrendChart({ title, data, color, type, formatter }: TrendChartPr
-
+ onBarClick(entry.label) : undefined}
+ />
) : (