Skip to content

Commit 1bbbf5e

Browse files
committed
Fix - VueUiDonut - Fixed donut thickness config not applied
1 parent 489de09 commit 1bbbf5e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/components/vue-ui-donut.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ const legendConfig = computed(() => {
278278
})
279279
280280
const currentDonut = computed(() => {
281-
return makeDonut({ series: donutSet.value }, svg.value.width / 2, svg.value.height / 2, 130, 130, 1.99999, 2, 1, 360, 105.25, defaultConfig.value.style.chart.layout.donut.strokeWidth)
281+
return makeDonut({ series: donutSet.value }, svg.value.width / 2, svg.value.height / 2, 130, 130, 1.99999, 2, 1, 360, 105.25, donutConfig.value.style.chart.layout.donut.strokeWidth)
282282
});
283283
284284
function isArcBigEnough(arc) {
@@ -645,7 +645,8 @@ defineExpose({
645645
@click="selectDatapoint(arc, i)"
646646
/>
647647

648-
<circle
648+
<circle
649+
v-if="donutConfig.style.chart.layout.labels.hollow.show"
649650
:cx="svg.width / 2"
650651
:cy="svg.height / 2"
651652
:r="svg.width - 400 - donutConfig.style.chart.layout.donut.strokeWidth / 2"

src/default_configs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@
382382
"fontSize": 14
383383
},
384384
"hollow": {
385+
"show": true,
385386
"total": {
386387
"show": true,
387388
"bold": false,

types/vue-data-ui.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2582,6 +2582,7 @@ declare module 'vue-data-ui' {
25822582
fontSize?: number;
25832583
};
25842584
hollow?: {
2585+
show?: true;
25852586
total?: {
25862587
show?: boolean;
25872588
bold?: boolean;

0 commit comments

Comments
 (0)