Skip to content

Commit 98af887

Browse files
committed
Fix - VueUiDonut - Fix NaN% values in data table
1 parent bf36808 commit 98af887

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/vue-ui-donut.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,13 +574,12 @@ const dataTable = computed(() => {
574574
];
575575
576576
const body = table.value.head.map((h,i) => {
577-
const label = dataLabel({p: FINAL_CONFIG.value.style.chart.layout.labels.dataLabels.prefix, v: table.value.body[i], s: FINAL_CONFIG.value.style.chart.layout.labels.dataLabels.suffix, r: FINAL_CONFIG.value.table.td.roundingValue});
578577
return [
579578
{
580579
color: h.color,
581580
name: h.name
582581
},
583-
label,
582+
table.value.body[i],
584583
isNaN(table.value.body[i] / total.value) ? "-" : (table.value.body[i] / total.value * 100).toFixed(FINAL_CONFIG.value.table.td.roundingPercentage) + '%'
585584
]
586585
});

0 commit comments

Comments
 (0)