add limit 50 to event chart, metrics table, and UTM report

This commit is contained in:
Francis Cao committed 2026-02-17 21:55:35 -08:00
1 parent 09bc2ee5c8
commit 530c21dac0
6 files changed
+69 -9

No files matched your search

+3 -2
View File
@@ -15,15 +15,16 @@ import { generateTimeSeries } from '@/lib/date';
export interface EventsChartProps extends BarChartProps {
websiteId: string;
focusLabel?: string;
limit?: number;
}
export function EventsChart({ websiteId, focusLabel }: EventsChartProps) {
export function EventsChart({ websiteId, focusLabel, limit }: EventsChartProps) {
const { timezone } = useTimezone();
const {
dateRange: { startDate, endDate, unit },
} = useDateRange({ timezone: timezone });
const { locale, dateLocale } = useLocale();
const { data, isLoading, error } = useWebsiteEventsSeriesQuery(websiteId);
const { data, isLoading, error } = useWebsiteEventsSeriesQuery(websiteId, { limit });
const [label, setLabel] = useState<string>(focusLabel);
const chartData: any = useMemo(() => {