We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cc2ed5 commit decee1eCopy full SHA for decee1e
src/components/vue-ui-gauge.vue
@@ -166,7 +166,11 @@ const svg = ref({
166
const max = ref(0);
167
const min = ref(0);
168
169
-const activeRating = ref(FINAL_CONFIG.value.style.chart.animation.use ? 0 : props.dataset.value);
+const activeRating = ref(
170
+ FINAL_CONFIG.value.style.chart.animation.use
171
+ ? Math.min(...props.dataset.series.map(s => s.from))
172
+ : props.dataset.value
173
+);
174
175
watch(() => props.dataset.value, () => {
176
useAnimation(props.dataset.value);
0 commit comments