Skip to content

Commit 1438258

Browse files
committed
Fix - VueUiDonutEvolution - Fixed yAxis scale config option not applied
1 parent 2ee476c commit 1438258

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
@@ -190,7 +190,7 @@ const drawableDataset = computed(() => {
190190
const radiusReference = (slit.value / 2) * 0.7;
191191
const radius = radiusReference > svg.value.width / 16 ? svg.value.width / 16 : radiusReference;
192192
const activeRadius = hoveredIndex.value === a.index ? svg.value.width / 16 : radius;
193-
const y = svg.value.absoluteHeight - padding.value.bottom - (svg.value.height * a.subtotal / calculateNiceScale(minSubtotal, maxSubtotal, 10).max);
193+
const y = svg.value.absoluteHeight - padding.value.bottom - (svg.value.height * a.subtotal / calculateNiceScale(minSubtotal, maxSubtotal, donutEvolutionConfig.value.style.chart.layout.grid.yAxis.dataLabels.steps).max);
194194
return {
195195
...a,
196196
y,
@@ -239,7 +239,7 @@ const extremes = computed(() => {
239239
});
240240
241241
const niceScale = computed(() => {
242-
return calculateNiceScale(extremes.value.min, extremes.value.max, 10)
242+
return calculateNiceScale(extremes.value.min, extremes.value.max, donutEvolutionConfig.value.style.chart.layout.grid.yAxis.dataLabels.steps)
243243
})
244244
245245
function ratioToMax(value) {

0 commit comments

Comments
 (0)