Skip to content

Commit 5dad3f4

Browse files
committed
Improvement - VueUiDonut - Improve management of small arc labels
1 parent 5ceaaea commit 5dad3f4

File tree

4 files changed

+655
-120
lines changed

4 files changed

+655
-120
lines changed

TestingArena/ArenaVueUiDonut.vue

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ onMounted(() => {
4444
setTimeout(() => {
4545
dataset.value = [
4646
{
47-
name: 'Series A',
48-
values: [3]
47+
name: 'Series H',
48+
values: [0.05]
49+
},
50+
{
51+
name: 'Series A with some\nlong label that\nis cut',
52+
values: [3],
4953
},
5054
{
5155
name: 'Series B',
@@ -55,6 +59,38 @@ onMounted(() => {
5559
name: 'Series C',
5660
values: [1]
5761
},
62+
{
63+
name: 'Series D',
64+
values: [0.5]
65+
},
66+
{
67+
name: 'Series E',
68+
values: [0.25]
69+
},
70+
{
71+
name: 'Series F is longer\nand breaks',
72+
values: [0.25]
73+
},
74+
{
75+
name: 'Series G',
76+
values: [0.05]
77+
},
78+
{
79+
name: 'Series I',
80+
values: [0.25]
81+
},
82+
{
83+
name: 'Series J',
84+
values: [0.25]
85+
},
86+
{
87+
name: 'Series K',
88+
values: [0.25]
89+
},
90+
{
91+
name: 'Series L',
92+
values: [0.25]
93+
},
5894
]
5995
}, 2000)
6096
})
@@ -127,7 +163,9 @@ const model = createModel([
127163
NUMBER("style.chart.padding.left", { def: 24, min: 0, max: 100 }),
128164
CHECKBOX("style.chart.layout.curvedMarkers", { def: true }),
129165
CHECKBOX("style.chart.layout.labels.dataLabels.show", { def: true, label: "show", category: "labels" }),
166+
CHECKBOX("style.chart.layout.labels.dataLabels.oneLine", {def: true }),
130167
NUMBER("style.chart.layout.labels.dataLabels.hideUnderValue", { def: 3, min: 0, max: 100, label: "hideUnderValue", category: "labels" }),
168+
NUMBER("style.chart.layout.labels.dataLabels.smallArcClusterThreshold", { def: 8, min: 0, max: 100 }),
131169
CHECKBOX("style.chart.layout.labels.dataLabels.useLabelSlots", { def: false }),
132170
TEXT("style.chart.layout.labels.dataLabels.prefix", { def: "", label: "prefix", category: "labels" }),
133171
TEXT("style.chart.layout.labels.dataLabels.suffix", { def: "", label: "suffix", category: "labels" }),

0 commit comments

Comments
 (0)