w-plot-vue 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +9 -0
- package/.eslintignore +3 -0
- package/.eslintrc.js +55 -0
- package/.jsdoc +25 -0
- package/LICENSE +21 -0
- package/README.md +89 -0
- package/SECURITY.md +5 -0
- package/babel.config.js +15 -0
- package/dist/w-geo-vue.umd.js +7 -0
- package/dist/w-geo-vue.umd.js.map +1 -0
- package/docs/examples/app.html +65 -0
- package/docs/examples/app.umd.js +7 -0
- package/docs/examples/app.umd.js.map +1 -0
- package/docs/examples/w-bar_horizontal_multi-set(color).html +492 -0
- package/docs/examples/w-bar_horizontal_multi-set(color, gradient).html +492 -0
- package/docs/examples/w-bar_horizontal_multi-set(series color).html +492 -0
- package/docs/examples/w-bar_horizontal_multi-set(series color, gradient).html +492 -0
- package/docs/examples/w-bar_horizontal_multi-set.html +492 -0
- package/docs/examples/w-bar_horizontal_multi-set__barDisplay(stackNormal).html +495 -0
- package/docs/examples/w-bar_horizontal_multi-set__barDisplay(stackPercent).html +496 -0
- package/docs/examples/w-bar_horizontal_multi-set__hide legned.html +492 -0
- package/docs/examples/w-bar_horizontal_multi-set__show labels.html +492 -0
- package/docs/examples/w-bar_horizontal_multi-set_barKpColor(gradient).html +508 -0
- package/docs/examples/w-bar_horizontal_multi-set_barKpColor.html +506 -0
- package/docs/examples/w-bar_horizontal_multi-set_barWidthRatio.html +493 -0
- package/docs/examples/w-bar_horizontal_multi-set_barWidthRatio_barGroupWidthRatio.html +498 -0
- package/docs/examples/w-bar_horizontal_one-set(color).html +490 -0
- package/docs/examples/w-bar_horizontal_one-set(color, gradient).html +490 -0
- package/docs/examples/w-bar_horizontal_one-set.html +490 -0
- package/docs/examples/w-bar_horizontal_one-set_barColor(gradient).html +491 -0
- package/docs/examples/w-bar_horizontal_one-set_barColor.html +491 -0
- package/docs/examples/w-bar_horizontal_one-set_barKpColor(gradient).html +500 -0
- package/docs/examples/w-bar_horizontal_one-set_barKpColor.html +498 -0
- package/docs/examples/w-bar_horizontal_one-set_barWidthRatio.html +491 -0
- package/docs/examples/w-bar_horizontal_one-set_barWidthRatio_barGroupWidthRatio.html +496 -0
- package/docs/examples/w-bar_horizontal_one-set_hide labels.html +491 -0
- package/docs/examples/w-bar_horizontal_one-set_marginLeft_marginRight.html +495 -0
- package/docs/examples/w-bar_horizontal_one-set_show legned.html +491 -0
- package/docs/examples/w-bar_multi-set(color).html +489 -0
- package/docs/examples/w-bar_multi-set(color, gradient).html +489 -0
- package/docs/examples/w-bar_multi-set(series color).html +489 -0
- package/docs/examples/w-bar_multi-set(series color, gradient).html +489 -0
- package/docs/examples/w-bar_multi-set.html +489 -0
- package/docs/examples/w-bar_multi-set__barDisplay(stackNormal).html +490 -0
- package/docs/examples/w-bar_multi-set__barDisplay(stackNormal)_.html +492 -0
- package/docs/examples/w-bar_multi-set__barDisplay(stackPercent).html +491 -0
- package/docs/examples/w-bar_multi-set__hide legned.html +489 -0
- package/docs/examples/w-bar_multi-set__show labels.html +489 -0
- package/docs/examples/w-bar_multi-set_barKpColor(gradient).html +503 -0
- package/docs/examples/w-bar_multi-set_barKpColor.html +503 -0
- package/docs/examples/w-bar_multi-set_barWidthRatio.html +490 -0
- package/docs/examples/w-bar_multi-set_barWidthRatio_barGroupWidthRatio_barBorderRadius.html +495 -0
- package/docs/examples/w-bar_one-set(color).html +487 -0
- package/docs/examples/w-bar_one-set(color, gradient).html +487 -0
- package/docs/examples/w-bar_one-set.html +487 -0
- package/docs/examples/w-bar_one-set_barColor(gradient).html +488 -0
- package/docs/examples/w-bar_one-set_barColor.html +488 -0
- package/docs/examples/w-bar_one-set_barKpColor(gradient).html +495 -0
- package/docs/examples/w-bar_one-set_barKpColor.html +495 -0
- package/docs/examples/w-bar_one-set_barWidthRatio.html +488 -0
- package/docs/examples/w-bar_one-set_barWidthRatio_barGroupWidthRatio_barBorderRadius.html +493 -0
- package/docs/examples/w-bar_one-set_hide labels.html +488 -0
- package/docs/examples/w-bar_one-set_marginLeft_marginRight_marginTop.html +493 -0
- package/docs/examples/w-bar_one-set_show legned.html +488 -0
- package/docs/examples/w-pie_one-set(color).html +251 -0
- package/docs/examples/w-pie_one-set(color, gradient).html +251 -0
- package/docs/examples/w-pie_one-set.html +251 -0
- package/docs/examples/w-pie_one-set_hide labels.html +252 -0
- package/docs/examples/w-pie_one-set_hide legned.html +252 -0
- package/docs/examples/w-pie_one-set_marginLeft_marginRight_marginTop.html +257 -0
- package/docs/examples/w-pie_one-set_pieBorderRadius.html +252 -0
- package/docs/examples/w-pie_one-set_pieBorderWidth_pieBorderRadius.html +253 -0
- package/docs/examples/w-pie_one-set_pieKpColor(gradient).html +259 -0
- package/docs/examples/w-pie_one-set_pieKpColor.html +259 -0
- package/docs/examples/w-pie_one-set_pieThicknessRatio.html +252 -0
- package/docs/examples/w-plot_default.html +174 -0
- package/docs/examples/w-rose_multi-set(color).html +489 -0
- package/docs/examples/w-rose_multi-set(color, gradient).html +489 -0
- package/docs/examples/w-rose_multi-set(series color).html +489 -0
- package/docs/examples/w-rose_multi-set(series color, gradient).html +489 -0
- package/docs/examples/w-rose_multi-set.html +489 -0
- package/docs/examples/w-rose_multi-set__hide legned.html +489 -0
- package/docs/examples/w-rose_multi-set__show labels.html +489 -0
- package/docs/examples/w-rose_multi-set_roseBorderWidth.html +490 -0
- package/docs/examples/w-rose_multi-set_roseKpColor(gradient).html +503 -0
- package/docs/examples/w-rose_multi-set_roseKpColor.html +503 -0
- package/docs/examples/w-rose_multi-set_roseWidthRatio.html +490 -0
- package/docs/examples/w-rose_one-set(color).html +487 -0
- package/docs/examples/w-rose_one-set(color, gradient).html +487 -0
- package/docs/examples/w-rose_one-set.html +487 -0
- package/docs/examples/w-rose_one-set_marginLeft_marginRight_marginTop.html +493 -0
- package/docs/examples/w-rose_one-set_roseBorderWidth.html +488 -0
- package/docs/examples/w-rose_one-set_roseKpColor(gradient).html +495 -0
- package/docs/examples/w-rose_one-set_roseKpColor.html +495 -0
- package/docs/examples/w-rose_one-set_roseShowLabels.html +488 -0
- package/docs/examples/w-rose_one-set_roseWidthRatio.html +488 -0
- package/docs/examples/w-rose_one-set_showLegend.html +488 -0
- package/docs/examples/w-rose_one-set_showLegend_legendPosition.html +489 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
- package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
- package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
- package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
- package/docs/getDefAxis.mjs.html +157 -0
- package/docs/getDefChart.mjs.html +123 -0
- package/docs/getDefLegend.mjs.html +115 -0
- package/docs/getDefOpt.mjs.html +137 -0
- package/docs/global.html +1088 -0
- package/docs/index.html +84 -0
- package/docs/module-WBar.html +216 -0
- package/docs/module-WPie.html +216 -0
- package/docs/module-WPlot.html +216 -0
- package/docs/module-WRose.html +216 -0
- package/docs/scripts/collapse.js +39 -0
- package/docs/scripts/commonNav.js +28 -0
- package/docs/scripts/linenumber.js +25 -0
- package/docs/scripts/nav.js +12 -0
- package/docs/scripts/polyfill.js +4 -0
- package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/docs/scripts/prettify/lang-css.js +2 -0
- package/docs/scripts/prettify/prettify.js +28 -0
- package/docs/scripts/search.js +99 -0
- package/docs/setLegendLoc.mjs.html +176 -0
- package/docs/styles/jsdoc.css +776 -0
- package/docs/styles/prettify.css +80 -0
- package/g.mjs +0 -0
- package/package.json +68 -0
- package/public/index.html +38 -0
- package/src/App.vue +118 -0
- package/src/AppZoneWBar.vue +1454 -0
- package/src/AppZoneWPie.vue +324 -0
- package/src/AppZoneWPlot.vue +78 -0
- package/src/AppZoneWRose.vue +735 -0
- package/src/components/WBar.vue +107 -0
- package/src/components/WGeoVue.vue +18 -0
- package/src/components/WPie.vue +107 -0
- package/src/components/WPlot.vue +86 -0
- package/src/components/WRose.vue +107 -0
- package/src/components/demolink.vue +105 -0
- package/src/js/genBarOpt.mjs +303 -0
- package/src/js/genPieOpt.mjs +233 -0
- package/src/js/genRoseOpt.mjs +297 -0
- package/src/js/getDefAxis.mjs +85 -0
- package/src/js/getDefChart.mjs +51 -0
- package/src/js/getDefLegend.mjs +43 -0
- package/src/js/getDefOpt.mjs +65 -0
- package/src/js/setLegendLoc.mjs +104 -0
- package/src/main.js +8 -0
- package/test/all.test.mjs +10 -0
- package/toolg/addVersion.mjs +4 -0
- package/toolg/cleanFolder.mjs +4 -0
- package/toolg/cvCasename.mjs +43 -0
- package/toolg/gDistApp.mjs +38 -0
- package/toolg/gDistRollupComps.mjs +21 -0
- package/toolg/gDocExams.mjs +47 -0
- package/toolg/gExtractHtml.mjs +263 -0
- package/toolg/gMergeComps.mjs +75 -0
- package/toolg/modifyReadme.mjs +4 -0
- package/vue.config.js +21 -0
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<div class="head1"><span style="cursor:pointer;" title="open for copy link to view component" onclick="window.open('//yuda-lyu.github.io/w-plot-vue/examples/app.html?cmp='+this.innerText,'_blank')">w-rose</span></div>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
<div style="padding:0px;">
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<div class="bk">
|
|
12
|
+
<demolink
|
|
13
|
+
:kbname="'w-rose'"
|
|
14
|
+
:casename="'one-set'"
|
|
15
|
+
></demolink>
|
|
16
|
+
|
|
17
|
+
<w-rose
|
|
18
|
+
:opt="{
|
|
19
|
+
...WRose.opt1a,
|
|
20
|
+
}"
|
|
21
|
+
></w-rose>
|
|
22
|
+
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
<div class="bk">
|
|
27
|
+
<demolink
|
|
28
|
+
:kbname="'w-rose'"
|
|
29
|
+
:casename="'one-set & marginLeft & marginRight & marginTop & marginBottom'"
|
|
30
|
+
></demolink>
|
|
31
|
+
|
|
32
|
+
<w-rose
|
|
33
|
+
:opt="{
|
|
34
|
+
...WRose.opt1a,
|
|
35
|
+
marginLeft: 50,
|
|
36
|
+
marginRight: 50,
|
|
37
|
+
marginTop: 50,
|
|
38
|
+
marginBottom: 50,
|
|
39
|
+
}"
|
|
40
|
+
></w-rose>
|
|
41
|
+
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
<div class="bk">
|
|
46
|
+
<demolink
|
|
47
|
+
:kbname="'w-rose'"
|
|
48
|
+
:casename="'one-set & roseBorderWidth'"
|
|
49
|
+
></demolink>
|
|
50
|
+
|
|
51
|
+
<w-rose
|
|
52
|
+
:opt="{
|
|
53
|
+
...WRose.opt1a,
|
|
54
|
+
roseBorderWidth:0,
|
|
55
|
+
}"
|
|
56
|
+
></w-rose>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<div class="bk">
|
|
62
|
+
<demolink
|
|
63
|
+
:kbname="'w-rose'"
|
|
64
|
+
:casename="'one-set & roseWidthRatio'"
|
|
65
|
+
></demolink>
|
|
66
|
+
|
|
67
|
+
<w-rose
|
|
68
|
+
:opt="{
|
|
69
|
+
...WRose.opt1a,
|
|
70
|
+
roseWidthRatio:0,
|
|
71
|
+
}"
|
|
72
|
+
></w-rose>
|
|
73
|
+
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
<div class="bk">
|
|
78
|
+
<demolink
|
|
79
|
+
:kbname="'w-rose'"
|
|
80
|
+
:casename="'one-set & showLegend'"
|
|
81
|
+
></demolink>
|
|
82
|
+
|
|
83
|
+
<w-rose
|
|
84
|
+
:opt="{
|
|
85
|
+
...WRose.opt1a,
|
|
86
|
+
showLegend:true,
|
|
87
|
+
}"
|
|
88
|
+
></w-rose>
|
|
89
|
+
|
|
90
|
+
</div>
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
<div class="bk">
|
|
94
|
+
<demolink
|
|
95
|
+
:kbname="'w-rose'"
|
|
96
|
+
:casename="'one-set & showLegend & legendPosition'"
|
|
97
|
+
></demolink>
|
|
98
|
+
|
|
99
|
+
<w-rose
|
|
100
|
+
:opt="{
|
|
101
|
+
...WRose.opt1a,
|
|
102
|
+
showLegend:true,
|
|
103
|
+
legendPosition:'topleft',
|
|
104
|
+
}"
|
|
105
|
+
></w-rose>
|
|
106
|
+
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
<div class="bk">
|
|
111
|
+
<demolink
|
|
112
|
+
:kbname="'w-rose'"
|
|
113
|
+
:casename="'one-set(color)'"
|
|
114
|
+
></demolink>
|
|
115
|
+
|
|
116
|
+
<w-rose
|
|
117
|
+
:opt="{
|
|
118
|
+
...WRose.opt1b,
|
|
119
|
+
}"
|
|
120
|
+
></w-rose>
|
|
121
|
+
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
<div class="bk">
|
|
126
|
+
<demolink
|
|
127
|
+
:kbname="'w-rose'"
|
|
128
|
+
:casename="'one-set(color, gradient)'"
|
|
129
|
+
></demolink>
|
|
130
|
+
|
|
131
|
+
<w-rose
|
|
132
|
+
:opt="{
|
|
133
|
+
...WRose.opt1c,
|
|
134
|
+
}"
|
|
135
|
+
></w-rose>
|
|
136
|
+
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
<div class="bk">
|
|
141
|
+
<demolink
|
|
142
|
+
:kbname="'w-rose'"
|
|
143
|
+
:casename="'one-set & roseKpColor'"
|
|
144
|
+
></demolink>
|
|
145
|
+
|
|
146
|
+
<w-rose
|
|
147
|
+
:opt="{
|
|
148
|
+
...WRose.opt1a,
|
|
149
|
+
roseKpColor:{
|
|
150
|
+
'USA':'#F44336',
|
|
151
|
+
'China':'#E91E63',
|
|
152
|
+
'Brazil':'#9C27B0',
|
|
153
|
+
'EU':'#673AB7',
|
|
154
|
+
'India':'#3F51B5',
|
|
155
|
+
'Russia':'#2196F3',
|
|
156
|
+
},
|
|
157
|
+
}"
|
|
158
|
+
></w-rose>
|
|
159
|
+
|
|
160
|
+
</div>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<div class="bk">
|
|
164
|
+
<demolink
|
|
165
|
+
:kbname="'w-rose'"
|
|
166
|
+
:casename="'one-set & roseKpColor(gradient)'"
|
|
167
|
+
></demolink>
|
|
168
|
+
|
|
169
|
+
<w-rose
|
|
170
|
+
:opt="{
|
|
171
|
+
...WRose.opt1a,
|
|
172
|
+
roseKpColor:{
|
|
173
|
+
'USA':['#EF9A9A','#F44336'],
|
|
174
|
+
'China':['#F48FB1','#E91E63'],
|
|
175
|
+
'Brazil':['#CE93D8','#9C27B0'],
|
|
176
|
+
'EU':['#B39DDB','#673AB7'],
|
|
177
|
+
'India':['#9FA8DA','#3F51B5'],
|
|
178
|
+
'Russia':['#90CAF9','#2196F3'],
|
|
179
|
+
},
|
|
180
|
+
}"
|
|
181
|
+
></w-rose>
|
|
182
|
+
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
<div class="bk">
|
|
187
|
+
<demolink
|
|
188
|
+
:kbname="'w-rose'"
|
|
189
|
+
:casename="'one-set & roseShowLabels'"
|
|
190
|
+
></demolink>
|
|
191
|
+
|
|
192
|
+
<w-rose
|
|
193
|
+
:opt="{
|
|
194
|
+
...WRose.opt1a,
|
|
195
|
+
roseShowLabels:true,
|
|
196
|
+
}"
|
|
197
|
+
></w-rose>
|
|
198
|
+
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
<div class="bk">
|
|
203
|
+
<demolink
|
|
204
|
+
:kbname="'w-rose'"
|
|
205
|
+
:casename="'multi-set'"
|
|
206
|
+
></demolink>
|
|
207
|
+
|
|
208
|
+
<w-rose
|
|
209
|
+
:opt="{
|
|
210
|
+
...WRose.opt2a,
|
|
211
|
+
roseShowLabels:false,
|
|
212
|
+
showLegend:true,
|
|
213
|
+
}"
|
|
214
|
+
></w-rose>
|
|
215
|
+
|
|
216
|
+
</div>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
<div class="bk">
|
|
220
|
+
<demolink
|
|
221
|
+
:kbname="'w-rose'"
|
|
222
|
+
:casename="'multi-set & roseBorderWidth'"
|
|
223
|
+
></demolink>
|
|
224
|
+
|
|
225
|
+
<w-rose
|
|
226
|
+
:opt="{
|
|
227
|
+
...WRose.opt2a,
|
|
228
|
+
roseShowLabels:false,
|
|
229
|
+
showLegend:true,
|
|
230
|
+
roseBorderWidth:0,
|
|
231
|
+
}"
|
|
232
|
+
></w-rose>
|
|
233
|
+
|
|
234
|
+
</div>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
<div class="bk">
|
|
238
|
+
<demolink
|
|
239
|
+
:kbname="'w-rose'"
|
|
240
|
+
:casename="'multi-set & roseWidthRatio'"
|
|
241
|
+
></demolink>
|
|
242
|
+
|
|
243
|
+
<w-rose
|
|
244
|
+
:opt="{
|
|
245
|
+
...WRose.opt2a,
|
|
246
|
+
roseShowLabels:false,
|
|
247
|
+
showLegend:true,
|
|
248
|
+
roseWidthRatio:0,
|
|
249
|
+
}"
|
|
250
|
+
></w-rose>
|
|
251
|
+
|
|
252
|
+
</div>
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
<div class="bk">
|
|
256
|
+
<demolink
|
|
257
|
+
:kbname="'w-rose'"
|
|
258
|
+
:casename="'multi-set(series color)'"
|
|
259
|
+
></demolink>
|
|
260
|
+
|
|
261
|
+
<w-rose
|
|
262
|
+
:opt="{
|
|
263
|
+
...WRose.opt2b,
|
|
264
|
+
roseShowLabels:false,
|
|
265
|
+
showLegend:true,
|
|
266
|
+
}"
|
|
267
|
+
></w-rose>
|
|
268
|
+
|
|
269
|
+
</div>
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
<div class="bk">
|
|
273
|
+
<demolink
|
|
274
|
+
:kbname="'w-rose'"
|
|
275
|
+
:casename="'multi-set(series color, gradient)'"
|
|
276
|
+
></demolink>
|
|
277
|
+
|
|
278
|
+
<w-rose
|
|
279
|
+
:opt="{
|
|
280
|
+
...WRose.opt2c,
|
|
281
|
+
roseShowLabels:false,
|
|
282
|
+
showLegend:true,
|
|
283
|
+
}"
|
|
284
|
+
></w-rose>
|
|
285
|
+
|
|
286
|
+
</div>
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
<div class="bk">
|
|
290
|
+
<demolink
|
|
291
|
+
:kbname="'w-rose'"
|
|
292
|
+
:casename="'multi-set(color)'"
|
|
293
|
+
></demolink>
|
|
294
|
+
|
|
295
|
+
<w-rose
|
|
296
|
+
:opt="{
|
|
297
|
+
...WRose.opt2d,
|
|
298
|
+
roseShowLabels:false,
|
|
299
|
+
showLegend:true,
|
|
300
|
+
}"
|
|
301
|
+
></w-rose>
|
|
302
|
+
|
|
303
|
+
</div>
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
<div class="bk">
|
|
307
|
+
<demolink
|
|
308
|
+
:kbname="'w-rose'"
|
|
309
|
+
:casename="'multi-set(color, gradient)'"
|
|
310
|
+
></demolink>
|
|
311
|
+
|
|
312
|
+
<w-rose
|
|
313
|
+
:opt="{
|
|
314
|
+
...WRose.opt2e,
|
|
315
|
+
roseShowLabels:false,
|
|
316
|
+
showLegend:true,
|
|
317
|
+
}"
|
|
318
|
+
></w-rose>
|
|
319
|
+
|
|
320
|
+
</div>
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
<div class="bk">
|
|
324
|
+
<demolink
|
|
325
|
+
:kbname="'w-rose'"
|
|
326
|
+
:casename="'multi-set & roseKpColor'"
|
|
327
|
+
></demolink>
|
|
328
|
+
|
|
329
|
+
<w-rose
|
|
330
|
+
:opt="{
|
|
331
|
+
...WRose.opt2a,
|
|
332
|
+
roseShowLabels:false,
|
|
333
|
+
showLegend:true,
|
|
334
|
+
roseKpColor:{
|
|
335
|
+
'0.USA':'#FF8A80',
|
|
336
|
+
'1.USA':'#F44336',
|
|
337
|
+
'0.China':'#FF80AB',
|
|
338
|
+
'1.China':'#E91E63',
|
|
339
|
+
'0.Brazil':'#EA80FC',
|
|
340
|
+
'1.Brazil':'#9C27B0',
|
|
341
|
+
'0.EU':'#B388FF',
|
|
342
|
+
'1.EU':'#673AB7',
|
|
343
|
+
'0.India':'#8C9EFF',
|
|
344
|
+
'1.India':'#3F51B5',
|
|
345
|
+
'0.Russia':'#82B1FF',
|
|
346
|
+
'1.Russia':'#2196F3',
|
|
347
|
+
},
|
|
348
|
+
}"
|
|
349
|
+
></w-rose>
|
|
350
|
+
|
|
351
|
+
</div>
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
<div class="bk">
|
|
355
|
+
<demolink
|
|
356
|
+
:kbname="'w-rose'"
|
|
357
|
+
:casename="'multi-set & roseKpColor(gradient)'"
|
|
358
|
+
></demolink>
|
|
359
|
+
|
|
360
|
+
<w-rose
|
|
361
|
+
:opt="{
|
|
362
|
+
...WRose.opt2a,
|
|
363
|
+
roseShowLabels:false,
|
|
364
|
+
showLegend:true,
|
|
365
|
+
roseKpColor:{
|
|
366
|
+
'0.USA':['rgb(255, 205, 210)', 'rgb(229, 115, 115)'],
|
|
367
|
+
'1.USA':['rgb(210, 205, 255)', 'rgb(115, 115, 229)'],
|
|
368
|
+
'0.China':['rgb(255, 185, 210)', 'rgb(229, 95, 115)'],
|
|
369
|
+
'1.China':['rgb(210, 185, 255)', 'rgb(115, 95, 229)'],
|
|
370
|
+
'0.Brazil':['rgb(255, 165, 210)', 'rgb(229, 75, 115)'],
|
|
371
|
+
'1.Brazil':['rgb(210, 165, 255)', 'rgb(115, 75, 229)'],
|
|
372
|
+
'0.EU':['rgb(255, 145, 210)', 'rgb(229, 55, 115)'],
|
|
373
|
+
'1.EU':['rgb(210, 145, 255)', 'rgb(115, 55, 229)'],
|
|
374
|
+
'0.India':['rgb(255, 125, 210)', 'rgb(229, 35, 115)'],
|
|
375
|
+
'1.India':['rgb(210, 125, 255)', 'rgb(115, 35, 229)'],
|
|
376
|
+
'0.Russia':['rgb(255, 105, 210)', 'rgb(229, 15, 115)'],
|
|
377
|
+
'1.Russia':['rgb(210, 105, 255)', 'rgb(115, 15, 229)'],
|
|
378
|
+
},
|
|
379
|
+
}"
|
|
380
|
+
></w-rose>
|
|
381
|
+
|
|
382
|
+
</div>
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
<div class="bk">
|
|
386
|
+
<demolink
|
|
387
|
+
:kbname="'w-rose'"
|
|
388
|
+
:casename="'multi-set && show labels'"
|
|
389
|
+
></demolink>
|
|
390
|
+
|
|
391
|
+
<w-rose
|
|
392
|
+
:opt="{
|
|
393
|
+
...WRose.opt2a,
|
|
394
|
+
roseShowLabels:true,
|
|
395
|
+
showLegend:true,
|
|
396
|
+
}"
|
|
397
|
+
></w-rose>
|
|
398
|
+
|
|
399
|
+
</div>
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
<div class="bk">
|
|
403
|
+
<demolink
|
|
404
|
+
:kbname="'w-rose'"
|
|
405
|
+
:casename="'multi-set && hide legned'"
|
|
406
|
+
></demolink>
|
|
407
|
+
|
|
408
|
+
<w-rose
|
|
409
|
+
:opt="{
|
|
410
|
+
...WRose.opt2a,
|
|
411
|
+
roseShowLabels:false,
|
|
412
|
+
showLegend:false,
|
|
413
|
+
}"
|
|
414
|
+
></w-rose>
|
|
415
|
+
|
|
416
|
+
</div>
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
</div>
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
</div>
|
|
423
|
+
</template>
|
|
424
|
+
|
|
425
|
+
<script>
|
|
426
|
+
import demolink from './components/demolink.vue'
|
|
427
|
+
import WRose from './components/WRose.vue'
|
|
428
|
+
|
|
429
|
+
export default {
|
|
430
|
+
components: {
|
|
431
|
+
demolink,
|
|
432
|
+
WRose,
|
|
433
|
+
},
|
|
434
|
+
props: {
|
|
435
|
+
},
|
|
436
|
+
data: function() {
|
|
437
|
+
let keys1 = ['USA', 'China', 'Brazil', 'EU', 'India', 'Russia']
|
|
438
|
+
let rds1a = [
|
|
439
|
+
{
|
|
440
|
+
name: 'Corn',
|
|
441
|
+
data: { USA: 406.292, China: 260.000, Brazil: 107.000, EU: 68.300, India: 27.500, Russia: 14.500 },
|
|
442
|
+
},
|
|
443
|
+
]
|
|
444
|
+
let rds1b = [
|
|
445
|
+
{
|
|
446
|
+
name: 'Corn',
|
|
447
|
+
data: {
|
|
448
|
+
USA: {
|
|
449
|
+
value: 406.292,
|
|
450
|
+
color: '#F44336',
|
|
451
|
+
},
|
|
452
|
+
China: {
|
|
453
|
+
value: 260.000,
|
|
454
|
+
color: '#E91E63',
|
|
455
|
+
},
|
|
456
|
+
Brazil: {
|
|
457
|
+
value: 107.000,
|
|
458
|
+
color: '#9C27B0',
|
|
459
|
+
},
|
|
460
|
+
EU: {
|
|
461
|
+
value: 68.300,
|
|
462
|
+
color: '#673AB7',
|
|
463
|
+
},
|
|
464
|
+
India: {
|
|
465
|
+
value: 27.500,
|
|
466
|
+
color: '#3F51B5',
|
|
467
|
+
},
|
|
468
|
+
Russia: {
|
|
469
|
+
value: 14.500,
|
|
470
|
+
color: '#2196F3',
|
|
471
|
+
},
|
|
472
|
+
},
|
|
473
|
+
},
|
|
474
|
+
]
|
|
475
|
+
let rds1c = [
|
|
476
|
+
{
|
|
477
|
+
name: 'Corn',
|
|
478
|
+
data: {
|
|
479
|
+
USA: {
|
|
480
|
+
value: 406.292,
|
|
481
|
+
color: ['#EF9A9A', '#F44336'],
|
|
482
|
+
},
|
|
483
|
+
China: {
|
|
484
|
+
value: 260.000,
|
|
485
|
+
color: ['#F48FB1', '#E91E63'],
|
|
486
|
+
},
|
|
487
|
+
Brazil: {
|
|
488
|
+
value: 107.000,
|
|
489
|
+
color: ['#CE93D8', '#9C27B0'],
|
|
490
|
+
},
|
|
491
|
+
EU: {
|
|
492
|
+
value: 68.300,
|
|
493
|
+
color: ['#B39DDB', '#673AB7'],
|
|
494
|
+
},
|
|
495
|
+
India: {
|
|
496
|
+
value: 27.500,
|
|
497
|
+
color: ['#9FA8DA', '#3F51B5'],
|
|
498
|
+
},
|
|
499
|
+
Russia: {
|
|
500
|
+
value: 14.500,
|
|
501
|
+
color: ['#90CAF9', '#2196F3'],
|
|
502
|
+
},
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
]
|
|
506
|
+
let rds2a = [
|
|
507
|
+
{
|
|
508
|
+
name: 'Corn',
|
|
509
|
+
data: { USA: 406.292, China: 260.000, Brazil: 107.000, EU: 68.300, India: 27.500, Russia: 14.500 },
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
name: 'Wheat',
|
|
513
|
+
data: { USA: 51.086, China: 136.000, Brazil: 5.500, EU: 141.000, India: 107.180, Russia: 77.000 },
|
|
514
|
+
},
|
|
515
|
+
]
|
|
516
|
+
let rds2b = [
|
|
517
|
+
{
|
|
518
|
+
name: 'Corn',
|
|
519
|
+
color: '#E91E63',
|
|
520
|
+
data: { USA: 406.292, China: 260.000, Brazil: 107.000, EU: 68.300, India: 27.500, Russia: 14.500 },
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
name: 'Wheat',
|
|
524
|
+
color: '#9C27B0',
|
|
525
|
+
data: { USA: 51.086, China: 136.000, Brazil: 5.500, EU: 141.000, India: 107.180, Russia: 77.000 },
|
|
526
|
+
},
|
|
527
|
+
]
|
|
528
|
+
let rds2c = [
|
|
529
|
+
{
|
|
530
|
+
name: 'Corn',
|
|
531
|
+
color: ['rgb(243, 150, 199)', 'rgb(233, 30, 99)'],
|
|
532
|
+
data: { USA: 406.292, China: 260.000, Brazil: 107.000, EU: 68.300, India: 27.500, Russia: 14.500 },
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
name: 'Wheat',
|
|
536
|
+
color: ['rgb(206, 159, 236)', 'rgb(156, 39, 176)'],
|
|
537
|
+
data: { USA: 51.086, China: 136.000, Brazil: 5.500, EU: 141.000, India: 107.180, Russia: 77.000 },
|
|
538
|
+
},
|
|
539
|
+
]
|
|
540
|
+
let rds2d = [
|
|
541
|
+
{
|
|
542
|
+
name: 'Corn',
|
|
543
|
+
data: {
|
|
544
|
+
USA: {
|
|
545
|
+
value: 406.292,
|
|
546
|
+
color: '#FF8A80',
|
|
547
|
+
},
|
|
548
|
+
China: {
|
|
549
|
+
value: 260.000,
|
|
550
|
+
color: '#FF80AB',
|
|
551
|
+
},
|
|
552
|
+
Brazil: {
|
|
553
|
+
value: 107.000,
|
|
554
|
+
color: '#EA80FC',
|
|
555
|
+
},
|
|
556
|
+
EU: {
|
|
557
|
+
value: 68.300,
|
|
558
|
+
color: '#B388FF',
|
|
559
|
+
},
|
|
560
|
+
India: {
|
|
561
|
+
value: 27.500,
|
|
562
|
+
color: '#8C9EFF',
|
|
563
|
+
},
|
|
564
|
+
Russia: {
|
|
565
|
+
value: 14.500,
|
|
566
|
+
color: '#82B1FF',
|
|
567
|
+
},
|
|
568
|
+
},
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
name: 'Wheat',
|
|
572
|
+
data: {
|
|
573
|
+
USA: {
|
|
574
|
+
value: 51.086,
|
|
575
|
+
color: '#F44336',
|
|
576
|
+
},
|
|
577
|
+
China: {
|
|
578
|
+
value: 136.000,
|
|
579
|
+
color: '#E91E63',
|
|
580
|
+
},
|
|
581
|
+
Brazil: {
|
|
582
|
+
value: 5.500,
|
|
583
|
+
color: '#9C27B0',
|
|
584
|
+
},
|
|
585
|
+
EU: {
|
|
586
|
+
value: 141.000,
|
|
587
|
+
color: '#673AB7',
|
|
588
|
+
},
|
|
589
|
+
India: {
|
|
590
|
+
value: 107.180,
|
|
591
|
+
color: '#3F51B5',
|
|
592
|
+
},
|
|
593
|
+
Russia: {
|
|
594
|
+
value: 77.000,
|
|
595
|
+
color: '#2196F3',
|
|
596
|
+
},
|
|
597
|
+
},
|
|
598
|
+
},
|
|
599
|
+
]
|
|
600
|
+
let rds2e = [
|
|
601
|
+
{
|
|
602
|
+
name: 'Corn',
|
|
603
|
+
data: {
|
|
604
|
+
USA: {
|
|
605
|
+
value: 406.292,
|
|
606
|
+
color: ['rgb(255, 205, 210)', 'rgb(229, 115, 115)'],
|
|
607
|
+
},
|
|
608
|
+
China: {
|
|
609
|
+
value: 260.000,
|
|
610
|
+
color: ['rgb(255, 185, 210)', 'rgb(229, 95, 115)'],
|
|
611
|
+
},
|
|
612
|
+
Brazil: {
|
|
613
|
+
value: 107.000,
|
|
614
|
+
color: ['rgb(255, 165, 210)', 'rgb(229, 75, 115)'],
|
|
615
|
+
},
|
|
616
|
+
EU: {
|
|
617
|
+
value: 68.300,
|
|
618
|
+
color: ['rgb(255, 145, 210)', 'rgb(229, 55, 115)'],
|
|
619
|
+
},
|
|
620
|
+
India: {
|
|
621
|
+
value: 27.500,
|
|
622
|
+
color: ['rgb(255, 125, 210)', 'rgb(229, 35, 115)'],
|
|
623
|
+
},
|
|
624
|
+
Russia: {
|
|
625
|
+
value: 14.500,
|
|
626
|
+
color: ['rgb(255, 105, 210)', 'rgb(229, 15, 115)'],
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
name: 'Wheat',
|
|
632
|
+
data: {
|
|
633
|
+
USA: {
|
|
634
|
+
value: 51.086,
|
|
635
|
+
color: ['rgb(210, 205, 255)', 'rgb(115, 115, 229)'],
|
|
636
|
+
},
|
|
637
|
+
China: {
|
|
638
|
+
value: 136.000,
|
|
639
|
+
color: ['rgb(210, 185, 255)', 'rgb(115, 95, 229)'],
|
|
640
|
+
},
|
|
641
|
+
Brazil: {
|
|
642
|
+
value: 5.500,
|
|
643
|
+
color: ['rgb(210, 165, 255)', 'rgb(115, 75, 229)'],
|
|
644
|
+
},
|
|
645
|
+
EU: {
|
|
646
|
+
value: 141.000,
|
|
647
|
+
color: ['rgb(210, 145, 255)', 'rgb(115, 55, 229)'],
|
|
648
|
+
},
|
|
649
|
+
India: {
|
|
650
|
+
value: 107.180,
|
|
651
|
+
color: ['rgb(210, 125, 255)', 'rgb(115, 35, 229)'],
|
|
652
|
+
},
|
|
653
|
+
Russia: {
|
|
654
|
+
value: 77.000,
|
|
655
|
+
color: ['rgb(210, 105, 255)', 'rgb(115, 15, 229)'],
|
|
656
|
+
},
|
|
657
|
+
},
|
|
658
|
+
},
|
|
659
|
+
]
|
|
660
|
+
return {
|
|
661
|
+
'WRose': {
|
|
662
|
+
'opt1a': {
|
|
663
|
+
width: 400,
|
|
664
|
+
height: 400,
|
|
665
|
+
keys: keys1,
|
|
666
|
+
rds: rds1a,
|
|
667
|
+
xTitle: 'Countries',
|
|
668
|
+
yTitle: 'Weight (MT)',
|
|
669
|
+
},
|
|
670
|
+
'opt1b': {
|
|
671
|
+
width: 400,
|
|
672
|
+
height: 400,
|
|
673
|
+
keys: keys1,
|
|
674
|
+
rds: rds1b,
|
|
675
|
+
xTitle: 'Countries',
|
|
676
|
+
yTitle: 'Weight (MT)',
|
|
677
|
+
},
|
|
678
|
+
'opt1c': {
|
|
679
|
+
width: 400,
|
|
680
|
+
height: 400,
|
|
681
|
+
keys: keys1,
|
|
682
|
+
rds: rds1c,
|
|
683
|
+
xTitle: 'Countries',
|
|
684
|
+
yTitle: 'Weight (MT)',
|
|
685
|
+
},
|
|
686
|
+
'opt2a': {
|
|
687
|
+
width: 400,
|
|
688
|
+
height: 400,
|
|
689
|
+
keys: keys1,
|
|
690
|
+
rds: rds2a,
|
|
691
|
+
xTitle: 'Countries',
|
|
692
|
+
yTitle: 'Weight (MT)',
|
|
693
|
+
},
|
|
694
|
+
'opt2b': {
|
|
695
|
+
width: 400,
|
|
696
|
+
height: 400,
|
|
697
|
+
keys: keys1,
|
|
698
|
+
rds: rds2b,
|
|
699
|
+
xTitle: 'Countries',
|
|
700
|
+
yTitle: 'Weight (MT)',
|
|
701
|
+
},
|
|
702
|
+
'opt2c': {
|
|
703
|
+
width: 400,
|
|
704
|
+
height: 400,
|
|
705
|
+
keys: keys1,
|
|
706
|
+
rds: rds2c,
|
|
707
|
+
xTitle: 'Countries',
|
|
708
|
+
yTitle: 'Weight (MT)',
|
|
709
|
+
},
|
|
710
|
+
'opt2d': {
|
|
711
|
+
width: 400,
|
|
712
|
+
height: 400,
|
|
713
|
+
keys: keys1,
|
|
714
|
+
rds: rds2d,
|
|
715
|
+
xTitle: 'Countries',
|
|
716
|
+
yTitle: 'Weight (MT)',
|
|
717
|
+
},
|
|
718
|
+
'opt2e': {
|
|
719
|
+
width: 400,
|
|
720
|
+
height: 400,
|
|
721
|
+
keys: keys1,
|
|
722
|
+
rds: rds2e,
|
|
723
|
+
xTitle: 'Countries',
|
|
724
|
+
yTitle: 'Weight (MT)',
|
|
725
|
+
},
|
|
726
|
+
},
|
|
727
|
+
}
|
|
728
|
+
},
|
|
729
|
+
methods: {
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
</script>
|
|
733
|
+
|
|
734
|
+
<style scoped>
|
|
735
|
+
</style>
|