add limit 50 to event chart, metrics table, and UTM report
This commit is contained in:
1 parent
09bc2ee5c8
commit
530c21dac0
6 files changed
+69
-9
No files matched your search
@@ -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(() => {
|
||||
|
||||
Reference in new issue
Block a user