Skip to content

Commit af0ed4e

Browse files
committed
Fix - VueUiDonutEvolution - Apply offsetX on scale labels from config #279
1 parent 976e4ae commit af0ed4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/vue-ui-donut-evolution.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ function getScaleLabelX() {
458458
const texts = Array.from(scaleLabels.value.querySelectorAll('text'))
459459
base = texts.reduce((max, t) => {
460460
const w = t.getComputedTextLength()
461-
return( w > max ? w : max) + FINAL_CONFIG.value.style.chart.layout.grid.axis.yLabelOffsetX
461+
return( w > max ? w : max)
462462
}, 0)
463463
}
464464
@@ -1298,7 +1298,7 @@ defineExpose({
12981298
<text
12991299
data-cy="axis-y-label"
13001300
v-if="yLabel.value >= niceScale.min && yLabel.value <= niceScale.max"
1301-
:x="svg.left"
1301+
:x="svg.left + FINAL_CONFIG.style.chart.layout.grid.yAxis.dataLabels.offsetX"
13021302
:y="yLabel.y + FINAL_CONFIG.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3"
13031303
:font-size="FINAL_CONFIG.style.chart.layout.grid.yAxis.dataLabels.fontSize"
13041304
text-anchor="end"

0 commit comments

Comments
 (0)