Skip to content

Commit 7a33605

Browse files
committed
Fix - VueUiGauge - Account for min pos >0 to calc indicatorArc percentage
1 parent e891e0e commit 7a33605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/vue-ui-gauge.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ const gradientArcs = computed(() => {
471471
});
472472
473473
const gaugeArc = computed(() => {
474-
const added = min.value >= 0 ? 0 : Math.abs(min.value);
474+
const added = min.value >= 0 ? -min.value : Math.abs(min.value);
475475
return createHalfCircleArc({
476476
radius: FINAL_CONFIG.value.style.chart.layout.indicatorArc.radius * svg.value.trackSize,
477477
centerX: svg.value.width / 2,

0 commit comments

Comments
 (0)