From cec0d932be60cab82066c248e20b1071ef4d501d Mon Sep 17 00:00:00 2001 From: TzeYiing Date: Thu, 28 Jul 2022 18:12:52 +1000 Subject: [PATCH] fix: add maxBarSize for chart renderer --- studio/components/to-be-cleaned/Charts/ChartRenderer.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx b/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx index ca7e2aaeba2..c6c15220be8 100644 --- a/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx +++ b/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx @@ -256,6 +256,8 @@ export function BarChart({ fill={CHART_COLORS.GREEN_1} // barSize={2} animationDuration={300} + // max bar size required for LogEventChart, prevents bars from expanding to max width. + maxBarSize={48} > {data?.map((entry: any, index: any) => (