Skip to content

Commit 2169aa2

Browse files
committed
Fix - VueUiSparkstackbar - Add fallback width calculation for proportion charts
1 parent 62f87e0 commit 2169aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/vue-ui-sparkstackbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const absoluteDataset = computed(() => {
180180
...d,
181181
value: dValue,
182182
proportion: dProportion,
183-
width: dWidth,
183+
width: dWidth || svg.value.width / safeDatasetCopy.value.length,
184184
proportionLabel: dataLabel({
185185
v: dProportion * 100,
186186
s: '%',

0 commit comments

Comments
 (0)