fix(frontend): chart type error
This commit is contained in:
@@ -75,6 +75,7 @@ export default function Chart({ data, prevData, stats, prevStats, interval }: Ch
|
|||||||
value: formatNumber(stats.visitors),
|
value: formatNumber(stats.visitors),
|
||||||
trend: calculateTrend(stats.visitors, prevStats?.visitors),
|
trend: calculateTrend(stats.visitors, prevStats?.visitors),
|
||||||
color: '#4F46E5', // Indigo
|
color: '#4F46E5', // Indigo
|
||||||
|
invertTrend: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'pageviews',
|
id: 'pageviews',
|
||||||
@@ -82,6 +83,7 @@ export default function Chart({ data, prevData, stats, prevStats, interval }: Ch
|
|||||||
value: formatNumber(stats.pageviews),
|
value: formatNumber(stats.pageviews),
|
||||||
trend: calculateTrend(stats.pageviews, prevStats?.pageviews),
|
trend: calculateTrend(stats.pageviews, prevStats?.pageviews),
|
||||||
color: '#FD5E0F', // Orange
|
color: '#FD5E0F', // Orange
|
||||||
|
invertTrend: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'bounce_rate',
|
id: 'bounce_rate',
|
||||||
@@ -97,6 +99,7 @@ export default function Chart({ data, prevData, stats, prevStats, interval }: Ch
|
|||||||
value: formatDuration(stats.avg_duration),
|
value: formatDuration(stats.avg_duration),
|
||||||
trend: calculateTrend(stats.avg_duration, prevStats?.avg_duration),
|
trend: calculateTrend(stats.avg_duration, prevStats?.avg_duration),
|
||||||
color: '#10B981', // Emerald
|
color: '#10B981', // Emerald
|
||||||
|
invertTrend: false,
|
||||||
},
|
},
|
||||||
] as const
|
] as const
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user