Skip to content

Commit 52607e8

Browse files
committed
Fix - VueUiSparkStackbar - Fix value & percentage not showing in legend when animation is disabled
1 parent 29473f9 commit 52607e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/vue-ui-sparkstackbar.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ const safeDatasetCopy = ref(FINAL_DATASET.value.map((d, i ) => {
147147
const isAnimating = ref(true);
148148
149149
function animateChart() {
150-
if (!FINAL_CONFIG.value.style.animation.show) return;
150+
if (!FINAL_CONFIG.value.style.animation.show) {
151+
isAnimating.value = false;
152+
return;
153+
}
151154
152155
const chunks = FINAL_CONFIG.value.style.animation.animationFrames;
153156
const targets = FINAL_DATASET.value.map(d => d.value || 0);

0 commit comments

Comments
 (0)