diff --git a/apps/dashboard/src/components/chart-ssr.tsx b/apps/dashboard/src/components/chart-ssr.tsx
index c84833e2..3b4c509f 100644
--- a/apps/dashboard/src/components/chart-ssr.tsx
+++ b/apps/dashboard/src/components/chart-ssr.tsx
@@ -22,9 +22,17 @@ export function ChartSSR({
.x((d) => xScale(d.date))
.y((d) => yScale(d.value));
- const d = line(data);
+ const area = d3
+ .area<(typeof data)[number]>()
+ .curve(d3.curveMonotoneX)
+ .x((d) => xScale(d.date))
+ .y0(yScale(0))
+ .y1((d) => yScale(d.value));
- if (!d) {
+ const pathLine = line(data);
+ const pathArea = area(data);
+
+ if (!pathLine) {
return null;
}
@@ -37,9 +45,31 @@ export function ChartSSR({
className="overflow-visible"
preserveAspectRatio="none"
>
+
+
+
+
+
+
+
+ {/* Gradient area */}
+ {pathArea && (
+
+ )}
{/* Line */}