From 5561d84af7ea699eb1eb992e0b495c08a13582c4 Mon Sep 17 00:00:00 2001 From: Scott Rhamy Date: Sun, 23 Nov 2025 15:22:30 -0500 Subject: [PATCH] BarChart/Series-diverging xPadding bar labels were overlapping axis labels for top/widest bar so gave them some room. --- .../BarChart/series-horizontal-diverging-as-percent.svelte | 1 + docs/src/examples/BarChart/series-horizontal-diverging.svelte | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/src/examples/BarChart/series-horizontal-diverging-as-percent.svelte b/docs/src/examples/BarChart/series-horizontal-diverging-as-percent.svelte index 4c29927b0..4cf34ae91 100644 --- a/docs/src/examples/BarChart/series-horizontal-diverging-as-percent.svelte +++ b/docs/src/examples/BarChart/series-horizontal-diverging-as-percent.svelte @@ -35,6 +35,7 @@ y="age" orientation="horizontal" padding={{ left: 32, bottom: 16 }} + xPadding={[50, 50]} labels={{ format: (value) => format(Math.abs(value), 'percent') }} props={{ xAxis: { format: (value) => format(Math.abs(value), 'percentRound') } diff --git a/docs/src/examples/BarChart/series-horizontal-diverging.svelte b/docs/src/examples/BarChart/series-horizontal-diverging.svelte index 18881fd41..8f952234b 100644 --- a/docs/src/examples/BarChart/series-horizontal-diverging.svelte +++ b/docs/src/examples/BarChart/series-horizontal-diverging.svelte @@ -35,6 +35,7 @@ y="age" orientation="horizontal" padding={{ left: 32, bottom: 16 }} + xPadding={[5, 5]} labels={{ format: (value) => format(Math.abs(value), 'metric') }} props={{ xAxis: { format: (value) => format(Math.abs(value), 'metric') }