From 37eeddbd70ac3e096cc82bfb8405e32922e97670 Mon Sep 17 00:00:00 2001 From: Anna Viklund Date: Mon, 10 Jun 2024 14:53:12 +0200 Subject: [PATCH] Tweak bar width --- ui/src/design-system/components/plot/plot.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/src/design-system/components/plot/plot.tsx b/ui/src/design-system/components/plot/plot.tsx index 3a4d796cc..c75a4e4a6 100644 --- a/ui/src/design-system/components/plot/plot.tsx +++ b/ui/src/design-system/components/plot/plot.tsx @@ -25,6 +25,8 @@ const Plot = ({ type, x: data.x, y: data.y, + width: + orientation === 'h' ? undefined : data.x.length > 3 ? 1 / 3 : 1 / 6, marker: { color: markerColor, },