Skip to content

Commit dc097bc

Browse files
committed
Fixed donut hollow background
1 parent 92ea61c commit dc097bc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "2.1.3",
4+
"version": "2.1.4",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

src/components/vue-ui-donut.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ defineExpose({
523523
:filter="getBlurFilter(i)"
524524
/>
525525
</g>
526-
526+
527527
<circle
528528
:cx="svg.width / 2"
529529
:cy="svg.height / 2"
@@ -575,6 +575,12 @@ defineExpose({
575575
@click="selectDatapoint(arc, i)"
576576
/>
577577

578+
<circle
579+
:cx="svg.width / 2"
580+
:cy="svg.height / 2"
581+
:r="svg.width - 400 - donutConfig.style.chart.layout.donut.strokeWidth / 2"
582+
:fill="donutConfig.style.chart.backgroundColor"/>
583+
578584
<!-- HOLLOW LABELS -->
579585
<text
580586
v-if="donutConfig.style.chart.layout.labels.hollow.total.show"

0 commit comments

Comments
 (0)