Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: bug with homepage charts in rednering due to x axis (#46481)

Ali Waseem7bd061a67016
diff --git a/packages/ui-patterns/src/LogsBarChart/index.tsx b/packages/ui-patterns/src/LogsBarChart/index.tsx
index 6bd8f23612f..070186a6990 100644
--- a/packages/ui-patterns/src/LogsBarChart/index.tsx
+++ b/packages/ui-patterns/src/LogsBarChart/index.tsx
@@ -70,10 +70,7 @@ export const LogsBarChart = ({
data-testid="logs-bar-chart"
className={cn('flex flex-col gap-y-3', isFullHeight ? 'h-full' : 'h-24')}
>
- <ChartContainer
- className={cn('h-full', isFullHeight && 'aspect-auto')}
- config={chartConfig ?? defaultChartConfig}
- >
+ <ChartContainer className="h-full" config={chartConfig ?? defaultChartConfig}>
<RechartBarChart
data={data}
onMouseMove={(e: any) => {
@@ -97,7 +94,6 @@ export const LogsBarChart = ({
dataKey="timestamp"
interval={data.length - 2}
tick={false}
- height={hideDateRange ? 1 : undefined}
axisLine={{ stroke: CHART_COLORS.AXIS }}
tickLine={{ stroke: CHART_COLORS.AXIS }}
/>