@@ -2899,7 +2899,11 @@ function testEmit2(data) {
2899
2899
<template #info >
2900
2900
</template >
2901
2901
<template #dev >
2902
- <VueDataUiTest component =" VueUiNestedDonuts" :dataset =" nestedDonutsDataset" :config =" nestedDonutsConfig" />
2902
+ <VueDataUiTest component =" VueUiNestedDonuts" :dataset =" nestedDonutsDataset" :config =" nestedDonutsConfig" >
2903
+ <template #legend =" { legend } " >
2904
+ {{ legend }}
2905
+ </template >
2906
+ </VueDataUiTest >
2903
2907
</template >
2904
2908
<template #prod >
2905
2909
<VueDataUi component =" VueUiNestedDonuts" :dataset =" nestedDonutsDataset" :config =" nestedDonutsConfig" />
@@ -2986,6 +2990,9 @@ function testEmit2(data) {
2986
2990
<template #svg =" { svg } " >
2987
2991
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
2988
2992
</template >
2993
+ <template #legend =" { legend } " >
2994
+ {{ legend }}
2995
+ </template >
2989
2996
</VueDataUiTest >
2990
2997
</template >
2991
2998
<template #prod >
@@ -3082,9 +3089,12 @@ function testEmit2(data) {
3082
3089
:dataset =" donutEvolutionDataset"
3083
3090
:config =" donutEvolutionConfig"
3084
3091
>
3085
- <template #svg =" { svg } " >
3092
+ <template #svg =" { svg } " >
3086
3093
<circle :cx =" svg.absoluteWidth / 2" :cy =" svg.absoluteHeight / 2" :r =" 30" fill =" #FF000033" />
3087
3094
</template >
3095
+ <template #legend =" { legend } " >
3096
+ {{ legend }}
3097
+ </template >
3088
3098
</VueDataUiTest >
3089
3099
</template >
3090
3100
<template #prod >
@@ -3222,9 +3232,12 @@ function testEmit2(data) {
3222
3232
:dataset =" ringsDataset"
3223
3233
:config =" ringsConfig"
3224
3234
>
3225
- <template #svg =" { svg } " >
3235
+ <template #svg =" { svg } " >
3226
3236
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3227
3237
</template >
3238
+ <template #legend =" { legend } " >
3239
+ {{ legend }}
3240
+ </template >
3228
3241
</VueDataUiTest >
3229
3242
</template >
3230
3243
<template #prod >
@@ -3361,6 +3374,11 @@ function testEmit2(data) {
3361
3374
@selectLegend =" selectLegendXY"
3362
3375
@selectX =" selectX"
3363
3376
>
3377
+ <template #legend =" { legend } " >
3378
+ <div v-for =" item in legend" >
3379
+ {{ item.name }} {{ item.color }}
3380
+ </div >
3381
+ </template >
3364
3382
</VueDataUiTest >
3365
3383
<VueDataUiTest
3366
3384
component =" VueUiXy"
@@ -3381,6 +3399,9 @@ function testEmit2(data) {
3381
3399
<template #svg =" { svg } " >
3382
3400
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3383
3401
</template >
3402
+ <template #legend =" { legend } " >
3403
+ {{ legend }}
3404
+ </template >
3384
3405
</VueDataUi >
3385
3406
<VueDataUi
3386
3407
component =" VueUiXy"
@@ -3438,9 +3459,12 @@ function testEmit2(data) {
3438
3459
:dataset =" candlestickDataset"
3439
3460
:config =" candlestickConfig"
3440
3461
>
3441
- <template #svg =" { svg } " >
3462
+ <template #svg =" { svg } " >
3442
3463
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3443
3464
</template >
3465
+ <template #legend =" { legend } " >
3466
+ {{ legend }}
3467
+ </template >
3444
3468
</VueDataUiTest >
3445
3469
</template >
3446
3470
<template #prod >
@@ -3479,9 +3503,12 @@ function testEmit2(data) {
3479
3503
:dataset =" scatterDataset"
3480
3504
:config =" scatterConfig"
3481
3505
>
3482
- <template #svg =" { svg } " >
3506
+ <template #svg =" { svg } " >
3483
3507
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3484
3508
</template >
3509
+ <template #legend =" { legend } " >
3510
+ {{ legend }}
3511
+ </template >
3485
3512
</VueDataUiTest >
3486
3513
</template >
3487
3514
<template #prod >
@@ -3521,9 +3548,12 @@ function testEmit2(data) {
3521
3548
:dataset =" verticalDataset"
3522
3549
:config =" verticalBarConfig"
3523
3550
>
3524
- <template #svg =" { svg } " >
3551
+ <template #svg =" { svg } " >
3525
3552
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3526
3553
</template >
3554
+ <template #legend =" { legend } " >
3555
+ {{ legend }}
3556
+ </template >
3527
3557
</VueDataUiTest >
3528
3558
</template >
3529
3559
<template #prod >
@@ -3563,9 +3593,12 @@ function testEmit2(data) {
3563
3593
:dataset =" onionDataset"
3564
3594
@selectLegend =" selectOnionLegend"
3565
3595
>
3566
- <template #svg =" { svg } " >
3596
+ <template #svg =" { svg } " >
3567
3597
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3568
3598
</template >
3599
+ <template #legend =" { legend } " >
3600
+ {{ legend }}
3601
+ </template >
3569
3602
</VueDataUiTest >
3570
3603
</template >
3571
3604
<template #prod >
@@ -3609,9 +3642,12 @@ function testEmit2(data) {
3609
3642
@selectSide =" selectSide"
3610
3643
@selectLegend =" selectQuadrantLegend"
3611
3644
>
3612
- <template #svg =" { svg } " >
3645
+ <template #svg =" { svg } " >
3613
3646
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3614
3647
</template >
3648
+ <template #legend =" { legend } " >
3649
+ {{ legend }}
3650
+ </template >
3615
3651
</VueDataUiTest >
3616
3652
</template >
3617
3653
<template #prod >
@@ -3654,9 +3690,12 @@ function testEmit2(data) {
3654
3690
:config =" radarConfig"
3655
3691
@selectLegend =" selectRadarLegend"
3656
3692
>
3657
- <template #svg =" { svg } " >
3693
+ <template #svg =" { svg } " >
3658
3694
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3659
3695
</template >
3696
+ <template #legend =" { legend } " >
3697
+ {{ legend }}
3698
+ </template >
3660
3699
</VueDataUiTest >
3661
3700
</template >
3662
3701
<template #prod >
@@ -3709,6 +3748,11 @@ function testEmit2(data) {
3709
3748
:strokeWidth =" 2"
3710
3749
/>
3711
3750
</template >
3751
+ <template #legend =" {legend } " >
3752
+ <div v-for =" item in legend" >
3753
+ {{ item.name }} {{ item.color }} {{ item.value }} {{ item.proportion }}
3754
+ </div >
3755
+ </template >
3712
3756
</VueDataUiTest >
3713
3757
</template >
3714
3758
<template #prod >
@@ -3868,9 +3912,12 @@ function testEmit2(data) {
3868
3912
@selectBranch =" selectBranch"
3869
3913
@selectNut =" selectNut"
3870
3914
>
3871
- <template #svg =" { svg } " >
3915
+ <template #svg =" { svg } " >
3872
3916
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3873
3917
</template >
3918
+ <template #legend =" { legend } " >
3919
+ {{ legend }}
3920
+ </template >
3874
3921
</VueDataUiTest >
3875
3922
</template >
3876
3923
<template #prod >
@@ -3911,9 +3958,12 @@ function testEmit2(data) {
3911
3958
:dataset =" pyramidDataset"
3912
3959
:config =" pyramidConfig"
3913
3960
>
3914
- <template #svg =" { svg } " >
3961
+ <template #svg =" { svg } " >
3915
3962
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3916
3963
</template >
3964
+ <template #legend =" { legend } " >
3965
+ {{ legend }}
3966
+ </template >
3917
3967
</VueDataUiTest >
3918
3968
</template >
3919
3969
<template #prod >
@@ -3953,9 +4003,14 @@ function testEmit2(data) {
3953
4003
:config =" waffleConfig"
3954
4004
@selectLegend =" selectLegendWaffle"
3955
4005
>
3956
- <template #svg =" { svg } " >
4006
+ <template #svg =" { svg } " >
3957
4007
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
3958
4008
</template >
4009
+ <template #legend =" { legend } " >
4010
+ <div v-for =" item in legend" >
4011
+ {{ legend }}
4012
+ </div >
4013
+ </template >
3959
4014
</VueDataUiTest >
3960
4015
</template >
3961
4016
<template #prod >
@@ -4153,9 +4208,12 @@ function testEmit2(data) {
4153
4208
ref =" gaugetest"
4154
4209
:dataset =" gaugeDataset"
4155
4210
>
4156
- <template #svg =" { svg } " >
4211
+ <template #svg =" { svg } " >
4157
4212
<circle :cx =" svg.width / 2" :cy =" svg.height / 2" :r =" 30" fill =" #FF000033" />
4158
4213
</template >
4214
+ <template #legend =" { legend } " >
4215
+ {{ legend }}
4216
+ </template >
4159
4217
</VueDataUiTest >
4160
4218
</template >
4161
4219
<template #prod >
0 commit comments