Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: change order of area charts

Marc Seitz24e4108c8e73
diff --git a/components/documents/video-analytics.tsx b/components/documents/video-analytics.tsx
index 0609c7d7..985424b9 100644
--- a/components/documents/video-analytics.tsx
+++ b/components/documents/video-analytics.tsx
@@ -202,21 +202,21 @@ export default function VideoAnalytics({
</defs>
<Area
type="monotone"
- dataKey="unique_views"
- stroke="#10b981"
+ dataKey="total_views"
+ stroke="#3B82F6"
strokeWidth={2}
- fill="url(#uniqueViewsGradient)"
+ fill="url(#playbackGradient)"
dot={false}
- name="Unique Viewers"
+ name="Playback Count"
/>
<Area
type="monotone"
- dataKey="total_views"
- stroke="#3B82F6"
+ dataKey="unique_views"
+ stroke="#10b981"
strokeWidth={2}
- fill="url(#playbackGradient)"
+ fill="url(#uniqueViewsGradient)"
dot={false}
- name="Playback Count"
+ name="Unique Viewers"
/>
</AreaChart>
</ResponsiveContainer>