Skip to content

Commit b5f30cc

Browse files
committed
Dashboard: Use monotone curve type for AreaChart to avoid clipping
1 parent c08fb13 commit b5f30cc

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

apps/dashboard/src/@/components/analytics/empty-chart-state.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function SkeletonBarChart(props: {
9595
fill={`url(#${fillAreaSkeletonId})`}
9696
radius={8}
9797
stroke="hsl(var(--muted-foreground))"
98-
type="natural"
98+
type="monotone"
9999
/>
100100
</AreaChart>
101101
)}

apps/dashboard/src/@/components/blocks/charts/area-chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function ThirdwebAreaChart<TConfig extends ChartConfig>(
172172
key={key}
173173
stackId={props.variant !== "stacked" ? undefined : "a"}
174174
stroke={`var(--color-${key})`}
175-
type="natural"
175+
type="monotone"
176176
/>
177177
),
178178
)}

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/(instance)/[engineId]/metrics/components/ErrorRate.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export function ErrorRate({ datapoints }: { datapoints: ResultItem[] }) {
5959
key={tag}
6060
stackId="a"
6161
stroke={`var(--color-${tag})`}
62-
type="natural"
6362
/>,
6463
);
6564
}

0 commit comments

Comments
 (0)