Skip to content

Commit 7a7796f

Browse files
committed
Fix - VueUiDonut - Hide hollow circle when shadow is not used
1 parent e57e2c1 commit 7a7796f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/vue-ui-donut.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,12 +838,12 @@ defineExpose({
838838
</template>
839839

840840
<circle
841-
v-if="FINAL_CONFIG.type === 'classic'"
841+
v-if="FINAL_CONFIG.type === 'classic' && FINAL_CONFIG.style.chart.layout.donut.useShadow"
842842
:cx="svg.width / 2"
843843
:cy="svg.height / 2"
844844
:r="minSize <= 0 ? 10 : minSize"
845845
:fill="FINAL_CONFIG.style.chart.backgroundColor"
846-
:filter="FINAL_CONFIG.style.chart.layout.donut.useShadow ? `url(#shadow_${uid})`: ''"
846+
:filter="`url(#shadow_${uid})`"
847847
/>
848848

849849
<template v-if="total && FINAL_CONFIG.type === 'classic'">

0 commit comments

Comments
 (0)