w-plot-vue 1.0.0 → 1.0.2

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.
Files changed (140) hide show
  1. package/README.md +4 -4
  2. package/dist/w-plot-vue.umd.js +7 -0
  3. package/dist/w-plot-vue.umd.js.map +1 -0
  4. package/docs/examples/app.html +1 -1
  5. package/docs/examples/app.umd.js +2 -2
  6. package/docs/examples/app.umd.js.map +1 -1
  7. package/docs/examples/w-bar_horizontal_multi-set(color).html +10 -10
  8. package/docs/examples/w-bar_horizontal_multi-set(color, gradient).html +10 -10
  9. package/docs/examples/w-bar_horizontal_multi-set(series color).html +10 -10
  10. package/docs/examples/w-bar_horizontal_multi-set(series color, gradient).html +10 -10
  11. package/docs/examples/w-bar_horizontal_multi-set.html +10 -10
  12. package/docs/examples/w-bar_horizontal_multi-set__barDisplay(stackNormal).html +10 -10
  13. package/docs/examples/w-bar_horizontal_multi-set__barDisplay(stackPercent).html +10 -10
  14. package/docs/examples/w-bar_horizontal_multi-set__hide legned.html +10 -10
  15. package/docs/examples/w-bar_horizontal_multi-set__show labels.html +10 -10
  16. package/docs/examples/w-bar_horizontal_multi-set_barKpColor(gradient).html +10 -10
  17. package/docs/examples/w-bar_horizontal_multi-set_barKpColor.html +10 -10
  18. package/docs/examples/w-bar_horizontal_multi-set_barUseInnerLabelsForHorizontal_barGroupWidthRatio.html +496 -0
  19. package/docs/examples/w-bar_horizontal_multi-set_barWidthRatio.html +10 -10
  20. package/docs/examples/w-bar_horizontal_multi-set_barWidthRatio_barGroupWidthRatio.html +10 -10
  21. package/docs/examples/w-bar_horizontal_one-set(color).html +10 -10
  22. package/docs/examples/w-bar_horizontal_one-set(color, gradient).html +10 -10
  23. package/docs/examples/w-bar_horizontal_one-set.html +10 -10
  24. package/docs/examples/w-bar_horizontal_one-set_barColor(gradient).html +10 -10
  25. package/docs/examples/w-bar_horizontal_one-set_barColor.html +10 -10
  26. package/docs/examples/w-bar_horizontal_one-set_barKpColor(gradient).html +10 -10
  27. package/docs/examples/w-bar_horizontal_one-set_barKpColor.html +10 -10
  28. package/docs/examples/w-bar_horizontal_one-set_barUseInnerLabelsForHorizontal.html +493 -0
  29. package/docs/examples/w-bar_horizontal_one-set_barWidthRatio.html +10 -10
  30. package/docs/examples/w-bar_horizontal_one-set_barWidthRatio_barGroupWidthRatio.html +10 -10
  31. package/docs/examples/w-bar_horizontal_one-set_hide labels.html +10 -10
  32. package/docs/examples/w-bar_horizontal_one-set_marginLeft_marginRight.html +10 -10
  33. package/docs/examples/w-bar_horizontal_one-set_show legned.html +10 -10
  34. package/docs/examples/w-bar_multi-set(color).html +10 -10
  35. package/docs/examples/w-bar_multi-set(color, gradient).html +10 -10
  36. package/docs/examples/w-bar_multi-set(series color).html +10 -10
  37. package/docs/examples/w-bar_multi-set(series color, gradient).html +10 -10
  38. package/docs/examples/w-bar_multi-set.html +10 -10
  39. package/docs/examples/w-bar_multi-set__barDisplay(stackNormal).html +10 -10
  40. package/docs/examples/w-bar_multi-set__barDisplay(stackNormal)_.html +10 -10
  41. package/docs/examples/w-bar_multi-set__barDisplay(stackPercent).html +10 -10
  42. package/docs/examples/w-bar_multi-set__hide legned.html +10 -10
  43. package/docs/examples/w-bar_multi-set__show labels.html +10 -10
  44. package/docs/examples/w-bar_multi-set_barKpColor(gradient).html +10 -10
  45. package/docs/examples/w-bar_multi-set_barKpColor.html +10 -10
  46. package/docs/examples/w-bar_multi-set_barWidthRatio.html +10 -10
  47. package/docs/examples/w-bar_multi-set_barWidthRatio_barGroupWidthRatio_barBorderRadius.html +10 -10
  48. package/docs/examples/w-bar_one-set(color).html +10 -10
  49. package/docs/examples/w-bar_one-set(color, gradient).html +10 -10
  50. package/docs/examples/w-bar_one-set.html +10 -10
  51. package/docs/examples/w-bar_one-set_barColor(gradient).html +10 -10
  52. package/docs/examples/w-bar_one-set_barColor.html +10 -10
  53. package/docs/examples/w-bar_one-set_barKpColor(gradient).html +10 -10
  54. package/docs/examples/w-bar_one-set_barKpColor.html +10 -10
  55. package/docs/examples/w-bar_one-set_barWidthRatio.html +10 -10
  56. package/docs/examples/w-bar_one-set_barWidthRatio_barGroupWidthRatio_barBorderRadius.html +10 -10
  57. package/docs/examples/w-bar_one-set_hide labels.html +10 -10
  58. package/docs/examples/w-bar_one-set_marginLeft_marginRight_marginTop.html +10 -10
  59. package/docs/examples/w-bar_one-set_show legned.html +10 -10
  60. package/docs/examples/w-pie_one-set(color).html +5 -5
  61. package/docs/examples/w-pie_one-set(color, gradient).html +5 -5
  62. package/docs/examples/w-pie_one-set.html +5 -5
  63. package/docs/examples/w-pie_one-set_hide labels.html +5 -5
  64. package/docs/examples/w-pie_one-set_hide legned.html +5 -5
  65. package/docs/examples/w-pie_one-set_marginLeft_marginRight_marginTop.html +5 -5
  66. package/docs/examples/w-pie_one-set_pieBorderRadius.html +5 -5
  67. package/docs/examples/w-pie_one-set_pieBorderWidth_pieBorderRadius.html +5 -5
  68. package/docs/examples/w-pie_one-set_pieKpColor(gradient).html +5 -5
  69. package/docs/examples/w-pie_one-set_pieKpColor.html +5 -5
  70. package/docs/examples/w-pie_one-set_pieThicknessRatio.html +5 -5
  71. package/docs/examples/w-plot_default.html +1 -1
  72. package/docs/examples/w-rose_multi-set(color).html +10 -10
  73. package/docs/examples/w-rose_multi-set(color, gradient).html +10 -10
  74. package/docs/examples/w-rose_multi-set(series color).html +10 -10
  75. package/docs/examples/w-rose_multi-set(series color, gradient).html +10 -10
  76. package/docs/examples/w-rose_multi-set.html +10 -10
  77. package/docs/examples/w-rose_multi-set__hide legned.html +10 -10
  78. package/docs/examples/w-rose_multi-set__show labels.html +10 -10
  79. package/docs/examples/w-rose_multi-set_roseBorderWidth.html +10 -10
  80. package/docs/examples/w-rose_multi-set_roseKpColor(gradient).html +10 -10
  81. package/docs/examples/w-rose_multi-set_roseKpColor.html +10 -10
  82. package/docs/examples/w-rose_multi-set_roseWidthRatio.html +10 -10
  83. package/docs/examples/w-rose_one-set(color).html +10 -10
  84. package/docs/examples/w-rose_one-set(color, gradient).html +10 -10
  85. package/docs/examples/w-rose_one-set.html +10 -10
  86. package/docs/examples/w-rose_one-set_marginLeft_marginRight_marginTop.html +10 -10
  87. package/docs/examples/w-rose_one-set_roseBorderWidth.html +10 -10
  88. package/docs/examples/w-rose_one-set_roseKpColor(gradient).html +10 -10
  89. package/docs/examples/w-rose_one-set_roseKpColor.html +10 -10
  90. package/docs/examples/w-rose_one-set_roseShowLabels.html +10 -10
  91. package/docs/examples/w-rose_one-set_roseWidthRatio.html +10 -10
  92. package/docs/examples/w-rose_one-set_showLegend.html +10 -10
  93. package/docs/examples/w-rose_one-set_showLegend_legendPosition.html +10 -10
  94. package/docs/examples/w-set-multi_default.html +221 -0
  95. package/docs/examples/w-set-multi_hide labels.html +222 -0
  96. package/docs/examples/w-set-multi_hide legned.html +222 -0
  97. package/docs/examples/w-set-multi_keySelect.html +226 -0
  98. package/docs/examples/w-set-multi_slot head.html +225 -0
  99. package/docs/examples/w-set-multi_textPlotType_kpSelectText_widthSelect.html +233 -0
  100. package/docs/examples/w-set-one_default.html +192 -0
  101. package/docs/examples/w-set-one_hide labels.html +193 -0
  102. package/docs/examples/w-set-one_keySelect.html +197 -0
  103. package/docs/examples/w-set-one_show legned.html +193 -0
  104. package/docs/examples/w-set-one_slot head.html +196 -0
  105. package/docs/examples/w-set-one_textPlotType_kpSelectText_widthSelect.html +201 -0
  106. package/docs/getDefAxis.mjs.html +5 -5
  107. package/docs/getDefChart.mjs.html +3 -3
  108. package/docs/getDefLegend.mjs.html +2 -2
  109. package/docs/getDefOpt.mjs.html +2 -2
  110. package/docs/global.html +2 -2
  111. package/docs/index.html +2 -2
  112. package/docs/module-WBar.html +2 -2
  113. package/docs/module-WPie.html +2 -2
  114. package/docs/module-WPlot.html +2 -2
  115. package/docs/module-WRose.html +2 -2
  116. package/docs/module-WSetMulti.html +216 -0
  117. package/docs/module-WSetOne.html +216 -0
  118. package/docs/setLegendLoc.mjs.html +2 -2
  119. package/package.json +1 -1
  120. package/src/App.vue +224 -20
  121. package/src/AppZoneWBar.vue +50 -9
  122. package/src/AppZoneWPie.vue +4 -4
  123. package/src/AppZoneWRose.vue +9 -9
  124. package/src/AppZoneWSetMulti.vue +225 -0
  125. package/src/AppZoneWSetOne.vue +193 -0
  126. package/src/components/WBar.vue +128 -18
  127. package/src/components/WPie.vue +21 -18
  128. package/src/components/{WGeoVue.vue → WPlotVue.vue} +8 -4
  129. package/src/components/WRose.vue +21 -18
  130. package/src/components/WSetMulti.vue +423 -0
  131. package/src/components/WSetOne.vue +57 -0
  132. package/src/js/genBarOpt.mjs +54 -7
  133. package/src/js/genPieOpt.mjs +1 -1
  134. package/src/js/genRoseOpt.mjs +1 -1
  135. package/src/js/getDefAxis.mjs +3 -3
  136. package/src/js/getDefChart.mjs +1 -1
  137. package/toolg/gDistRollupComps.mjs +1 -1
  138. package/toolg/gMergeComps.mjs +4 -4
  139. package/dist/w-geo-vue.umd.js +0 -7
  140. package/dist/w-geo-vue.umd.js.map +0 -1
@@ -0,0 +1,496 @@
1
+ <!doctype html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-tw">
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
5
+ <meta
6
+ name="viewport"
7
+ content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"
8
+ />
9
+ <meta http-equiv="X-UA-Compatible" content="ie=edge" />
10
+ <title>w-plot-vue</title>
11
+
12
+ <!-- @babel/polyfill -->
13
+ <script
14
+ nomodule
15
+ src="https://cdn.jsdelivr.net/npm/@babel/polyfill/dist/polyfill.min.js"
16
+ ></script>
17
+
18
+ <!-- vue -->
19
+ <script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.min.js"></script>
20
+
21
+ <!-- extractHtml已自動添加@babel/polyfill與vue -->
22
+
23
+ <!-- fontawesome -->
24
+ <link
25
+ href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4.2/css/all.min.css"
26
+ rel="stylesheet"
27
+ />
28
+
29
+ <!-- mdi, 各組件使用mdi/js會於轉單頁時改為mdi icon, 故需引用mdi/css -->
30
+ <link
31
+ href="https://cdn.jsdelivr.net/npm/@mdi/font@7.2.96/css/materialdesignicons.min.css"
32
+ rel="stylesheet"
33
+ />
34
+
35
+ <!-- google, 各組件使用mdi/js故不需引用 -->
36
+ <link
37
+ _href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900"
38
+ rel="stylesheet"
39
+ />
40
+ <link
41
+ _href="https://fonts.googleapis.com/css?family=Material+Icons"
42
+ rel="stylesheet"
43
+ />
44
+
45
+ <!-- data -->
46
+ <script
47
+ src="https://cdn.jsdelivr.net/npm/w-demores@1.0.23/res/data/dataAAPL.js"
48
+ ></script>
49
+ <script
50
+ src="https://cdn.jsdelivr.net/npm/w-demores@1.0.23/res/data/dataUSD2EUR.js"
51
+ ></script>
52
+ <script
53
+ src="https://cdn.jsdelivr.net/npm/w-demores@1.0.23/res/data/dataTemperature.js"
54
+ ></script>
55
+ <script
56
+ src="https://cdn.jsdelivr.net/npm/w-demores@1.0.23/res/data/dataHousePriceArea.js"
57
+ ></script>
58
+ <script
59
+ src="https://cdn.jsdelivr.net/npm/w-demores@1.0.23/res/data/dataFlare.js"
60
+ ></script>
61
+ <script
62
+ src="https://cdn.jsdelivr.net/npm/w-demores@1.0.23/res/data/dataRain.js"
63
+ ></script>
64
+ <script
65
+ src="https://cdn.jsdelivr.net/npm/w-demores@1.0.23/res/data/dataRainClip.js"
66
+ ></script>
67
+
68
+ <!-- w-plot-vue -->
69
+ <script src="https://cdn.jsdelivr.net/npm/w-plot-vue@1.0.2/dist/w-plot-vue.umd.js"></script>
70
+
71
+ <style>
72
+ .v-application--wrap {
73
+ /* width與max-width fix for IE11, 其外不能使用padding或margin避免失效 */
74
+ width: 100vw;
75
+ max-width: 100vw;
76
+ font-family: inherit;
77
+ background: #fff;
78
+ }
79
+ .item {
80
+ /* 因item位於demolink, 提取各範例html後會刪除demolink, 故得額外補上 */
81
+ border-left: 3px solid #ffba75;
82
+ margin: 5px 5px 8px 0px;
83
+ padding: 3px 3px 5px 10px;
84
+ font-size: 0.9rem;
85
+ display: flex;
86
+ justify-content: flex-start;
87
+ align-items: center;
88
+ }
89
+ .head1 {
90
+ margin: 0px;
91
+ padding: 0px 0px 20px 0px;
92
+ font-size: 2.5rem;
93
+ }
94
+ .bk {
95
+ vertical-align: top;
96
+ padding: 10px 0px 60px 0px;
97
+ }
98
+ @media screen and (min-width: 1000px) {
99
+ /* 寬版 */
100
+ .bk {
101
+ display: inline-block;
102
+ margin: 0px 80px 0px 0px;
103
+ }
104
+ }
105
+ </style>
106
+ </head>
107
+ <body
108
+ style="font-family:'Microsoft JhengHei','Avenir','Helvetica'; padding:0px; margin:0px;"
109
+ >
110
+ <v-app id="app" style="font-family:inherit; padding:0px 30px;">
111
+ <div class="head1">
112
+ <span
113
+ style="cursor:pointer;"
114
+ title="open for copy link to view component"
115
+ onclick="window.open('//yuda-lyu.github.io/w-plot-vue/examples/app.html?cmp='+this.innerText,'_blank')"
116
+ >w-bar</span>
117
+ </div>
118
+ <div class="bk">
119
+ <div
120
+ class="item"
121
+ >horizontal &amp; multi-set &amp; barUseInnerLabelsForHorizontal &amp; barGroupWidthRatio</div>
122
+
123
+ <w-bar
124
+ :opt="{
125
+ ...WBar.opt2a,
126
+ direction:'horizontal',
127
+ marginLeft:80,
128
+ legendPosition:'bottomright',
129
+ barShowLabels:false,
130
+ showLegend:true,
131
+ barUseInnerLabelsForHorizontal:true,
132
+ barGroupWidthRatio:0.25,
133
+ }"
134
+ ></w-bar>
135
+ </div>
136
+ </v-app>
137
+
138
+ <script>
139
+ //install
140
+ Vue.use(window["w-plot-vue"]);
141
+
142
+ //initialize
143
+ new Vue({
144
+ el: "#app",
145
+
146
+ data: function() {
147
+ let keys = ["USA", "China", "Brazil", "EU", "India", "Russia"];
148
+ let rds1a = [
149
+ {
150
+ name: "Corn",
151
+ data: {
152
+ USA: 406.292,
153
+ China: 260.0,
154
+ Brazil: 107.0,
155
+ EU: 68.3,
156
+ India: 27.5,
157
+ Russia: 14.5
158
+ }
159
+ }
160
+ ];
161
+ let rds1b = [
162
+ {
163
+ name: "Corn",
164
+ data: {
165
+ USA: {
166
+ value: 406.292,
167
+ color: "#F44336"
168
+ },
169
+ China: {
170
+ value: 260.0,
171
+ color: "#E91E63"
172
+ },
173
+ Brazil: {
174
+ value: 107.0,
175
+ color: "#9C27B0"
176
+ },
177
+ EU: {
178
+ value: 68.3,
179
+ color: "#673AB7"
180
+ },
181
+ India: {
182
+ value: 27.5,
183
+ color: "#3F51B5"
184
+ },
185
+ Russia: {
186
+ value: 14.5,
187
+ color: "#2196F3"
188
+ }
189
+ }
190
+ }
191
+ ];
192
+ let rds1c = [
193
+ {
194
+ name: "Corn",
195
+ data: {
196
+ USA: {
197
+ value: 406.292,
198
+ color: ["#EF9A9A", "#F44336"]
199
+ },
200
+ China: {
201
+ value: 260.0,
202
+ color: ["#F48FB1", "#E91E63"]
203
+ },
204
+ Brazil: {
205
+ value: 107.0,
206
+ color: ["#CE93D8", "#9C27B0"]
207
+ },
208
+ EU: {
209
+ value: 68.3,
210
+ color: ["#B39DDB", "#673AB7"]
211
+ },
212
+ India: {
213
+ value: 27.5,
214
+ color: ["#9FA8DA", "#3F51B5"]
215
+ },
216
+ Russia: {
217
+ value: 14.5,
218
+ color: ["#90CAF9", "#2196F3"]
219
+ }
220
+ }
221
+ }
222
+ ];
223
+ let rds2a = [
224
+ {
225
+ name: "Corn",
226
+ data: {
227
+ USA: 406.292,
228
+ China: 260.0,
229
+ Brazil: 107.0,
230
+ EU: 68.3,
231
+ India: 27.5,
232
+ Russia: 14.5
233
+ }
234
+ },
235
+ {
236
+ name: "Wheat",
237
+ data: {
238
+ USA: 51.086,
239
+ China: 136.0,
240
+ Brazil: 5.5,
241
+ EU: 141.0,
242
+ India: 107.18,
243
+ Russia: 77.0
244
+ }
245
+ }
246
+ ];
247
+ let rds2b = [
248
+ {
249
+ name: "Corn",
250
+ color: "#E91E63",
251
+ data: {
252
+ USA: 406.292,
253
+ China: 260.0,
254
+ Brazil: 107.0,
255
+ EU: 68.3,
256
+ India: 27.5,
257
+ Russia: 14.5
258
+ }
259
+ },
260
+ {
261
+ name: "Wheat",
262
+ color: "#9C27B0",
263
+ data: {
264
+ USA: 51.086,
265
+ China: 136.0,
266
+ Brazil: 5.5,
267
+ EU: 141.0,
268
+ India: 107.18,
269
+ Russia: 77.0
270
+ }
271
+ }
272
+ ];
273
+ let rds2c = [
274
+ {
275
+ name: "Corn",
276
+ color: ["rgb(243, 150, 199)", "rgb(233, 30, 99)"],
277
+ data: {
278
+ USA: 406.292,
279
+ China: 260.0,
280
+ Brazil: 107.0,
281
+ EU: 68.3,
282
+ India: 27.5,
283
+ Russia: 14.5
284
+ }
285
+ },
286
+ {
287
+ name: "Wheat",
288
+ color: ["rgb(206, 159, 236)", "rgb(156, 39, 176)"],
289
+ data: {
290
+ USA: 51.086,
291
+ China: 136.0,
292
+ Brazil: 5.5,
293
+ EU: 141.0,
294
+ India: 107.18,
295
+ Russia: 77.0
296
+ }
297
+ }
298
+ ];
299
+ let rds2d = [
300
+ {
301
+ name: "Corn",
302
+ data: {
303
+ USA: {
304
+ value: 406.292,
305
+ color: "#FF8A80"
306
+ },
307
+ China: {
308
+ value: 260.0,
309
+ color: "#FF80AB"
310
+ },
311
+ Brazil: {
312
+ value: 107.0,
313
+ color: "#EA80FC"
314
+ },
315
+ EU: {
316
+ value: 68.3,
317
+ color: "#B388FF"
318
+ },
319
+ India: {
320
+ value: 27.5,
321
+ color: "#8C9EFF"
322
+ },
323
+ Russia: {
324
+ value: 14.5,
325
+ color: "#82B1FF"
326
+ }
327
+ }
328
+ },
329
+ {
330
+ name: "Wheat",
331
+ data: {
332
+ USA: {
333
+ value: 51.086,
334
+ color: "#F44336"
335
+ },
336
+ China: {
337
+ value: 136.0,
338
+ color: "#E91E63"
339
+ },
340
+ Brazil: {
341
+ value: 5.5,
342
+ color: "#9C27B0"
343
+ },
344
+ EU: {
345
+ value: 141.0,
346
+ color: "#673AB7"
347
+ },
348
+ India: {
349
+ value: 107.18,
350
+ color: "#3F51B5"
351
+ },
352
+ Russia: {
353
+ value: 77.0,
354
+ color: "#2196F3"
355
+ }
356
+ }
357
+ }
358
+ ];
359
+ let rds2e = [
360
+ {
361
+ name: "Corn",
362
+ data: {
363
+ USA: {
364
+ value: 406.292,
365
+ color: ["rgb(255, 205, 210)", "rgb(229, 115, 115)"]
366
+ },
367
+ China: {
368
+ value: 260.0,
369
+ color: ["rgb(255, 185, 210)", "rgb(229, 95, 115)"]
370
+ },
371
+ Brazil: {
372
+ value: 107.0,
373
+ color: ["rgb(255, 165, 210)", "rgb(229, 75, 115)"]
374
+ },
375
+ EU: {
376
+ value: 68.3,
377
+ color: ["rgb(255, 145, 210)", "rgb(229, 55, 115)"]
378
+ },
379
+ India: {
380
+ value: 27.5,
381
+ color: ["rgb(255, 125, 210)", "rgb(229, 35, 115)"]
382
+ },
383
+ Russia: {
384
+ value: 14.5,
385
+ color: ["rgb(255, 105, 210)", "rgb(229, 15, 115)"]
386
+ }
387
+ }
388
+ },
389
+ {
390
+ name: "Wheat",
391
+ data: {
392
+ USA: {
393
+ value: 51.086,
394
+ color: ["rgb(210, 205, 255)", "rgb(115, 115, 229)"]
395
+ },
396
+ China: {
397
+ value: 136.0,
398
+ color: ["rgb(210, 185, 255)", "rgb(115, 95, 229)"]
399
+ },
400
+ Brazil: {
401
+ value: 5.5,
402
+ color: ["rgb(210, 165, 255)", "rgb(115, 75, 229)"]
403
+ },
404
+ EU: {
405
+ value: 141.0,
406
+ color: ["rgb(210, 145, 255)", "rgb(115, 55, 229)"]
407
+ },
408
+ India: {
409
+ value: 107.18,
410
+ color: ["rgb(210, 125, 255)", "rgb(115, 35, 229)"]
411
+ },
412
+ Russia: {
413
+ value: 77.0,
414
+ color: ["rgb(210, 105, 255)", "rgb(115, 15, 229)"]
415
+ }
416
+ }
417
+ }
418
+ ];
419
+ return {
420
+ WBar: {
421
+ opt1a: {
422
+ width: 400,
423
+ height: 400,
424
+ keys,
425
+ rds: rds1a,
426
+ xTitle: "Countries",
427
+ yTitle: "Weight (MT)"
428
+ },
429
+ opt1b: {
430
+ width: 400,
431
+ height: 400,
432
+ keys,
433
+ rds: rds1b,
434
+ xTitle: "Countries",
435
+ yTitle: "Weight (MT)"
436
+ },
437
+ opt1c: {
438
+ width: 400,
439
+ height: 400,
440
+ keys,
441
+ rds: rds1c,
442
+ xTitle: "Countries",
443
+ yTitle: "Weight (MT)"
444
+ },
445
+ opt2a: {
446
+ width: 400,
447
+ height: 400,
448
+ keys,
449
+ rds: rds2a,
450
+ xTitle: "Countries",
451
+ yTitle: "Weight (MT)"
452
+ },
453
+ opt2b: {
454
+ width: 400,
455
+ height: 400,
456
+ keys,
457
+ rds: rds2b,
458
+ xTitle: "Countries",
459
+ yTitle: "Weight (MT)"
460
+ },
461
+ opt2c: {
462
+ width: 400,
463
+ height: 400,
464
+ keys,
465
+ rds: rds2c,
466
+ xTitle: "Countries",
467
+ yTitle: "Weight (MT)"
468
+ },
469
+ opt2d: {
470
+ width: 400,
471
+ height: 400,
472
+ keys,
473
+ rds: rds2d,
474
+ xTitle: "Countries",
475
+ yTitle: "Weight (MT)"
476
+ },
477
+ opt2e: {
478
+ width: 400,
479
+ height: 400,
480
+ keys,
481
+ rds: rds2e,
482
+ xTitle: "Countries",
483
+ yTitle: "Weight (MT)"
484
+ }
485
+ }
486
+ };
487
+ },
488
+ mounted: function() {
489
+ return {};
490
+ },
491
+ computed: {},
492
+ methods: {}
493
+ });
494
+ </script>
495
+ </body>
496
+ </html>
@@ -66,7 +66,7 @@
66
66
  ></script>
67
67
 
68
68
  <!-- w-plot-vue -->
69
- <script src="https://cdn.jsdelivr.net/npm/w-plot-vue@1.0.0/dist/w-plot-vue.umd.js"></script>
69
+ <script src="https://cdn.jsdelivr.net/npm/w-plot-vue@1.0.2/dist/w-plot-vue.umd.js"></script>
70
70
 
71
71
  <style>
72
72
  .v-application--wrap {
@@ -141,7 +141,7 @@
141
141
  el: "#app",
142
142
 
143
143
  data: function() {
144
- let keys1 = ["USA", "China", "Brazil", "EU", "India", "Russia"];
144
+ let keys = ["USA", "China", "Brazil", "EU", "India", "Russia"];
145
145
  let rds1a = [
146
146
  {
147
147
  name: "Corn",
@@ -418,7 +418,7 @@
418
418
  opt1a: {
419
419
  width: 400,
420
420
  height: 400,
421
- keys: keys1,
421
+ keys,
422
422
  rds: rds1a,
423
423
  xTitle: "Countries",
424
424
  yTitle: "Weight (MT)"
@@ -426,7 +426,7 @@
426
426
  opt1b: {
427
427
  width: 400,
428
428
  height: 400,
429
- keys: keys1,
429
+ keys,
430
430
  rds: rds1b,
431
431
  xTitle: "Countries",
432
432
  yTitle: "Weight (MT)"
@@ -434,7 +434,7 @@
434
434
  opt1c: {
435
435
  width: 400,
436
436
  height: 400,
437
- keys: keys1,
437
+ keys,
438
438
  rds: rds1c,
439
439
  xTitle: "Countries",
440
440
  yTitle: "Weight (MT)"
@@ -442,7 +442,7 @@
442
442
  opt2a: {
443
443
  width: 400,
444
444
  height: 400,
445
- keys: keys1,
445
+ keys,
446
446
  rds: rds2a,
447
447
  xTitle: "Countries",
448
448
  yTitle: "Weight (MT)"
@@ -450,7 +450,7 @@
450
450
  opt2b: {
451
451
  width: 400,
452
452
  height: 400,
453
- keys: keys1,
453
+ keys,
454
454
  rds: rds2b,
455
455
  xTitle: "Countries",
456
456
  yTitle: "Weight (MT)"
@@ -458,7 +458,7 @@
458
458
  opt2c: {
459
459
  width: 400,
460
460
  height: 400,
461
- keys: keys1,
461
+ keys,
462
462
  rds: rds2c,
463
463
  xTitle: "Countries",
464
464
  yTitle: "Weight (MT)"
@@ -466,7 +466,7 @@
466
466
  opt2d: {
467
467
  width: 400,
468
468
  height: 400,
469
- keys: keys1,
469
+ keys,
470
470
  rds: rds2d,
471
471
  xTitle: "Countries",
472
472
  yTitle: "Weight (MT)"
@@ -474,7 +474,7 @@
474
474
  opt2e: {
475
475
  width: 400,
476
476
  height: 400,
477
- keys: keys1,
477
+ keys,
478
478
  rds: rds2e,
479
479
  xTitle: "Countries",
480
480
  yTitle: "Weight (MT)"
@@ -66,7 +66,7 @@
66
66
  ></script>
67
67
 
68
68
  <!-- w-plot-vue -->
69
- <script src="https://cdn.jsdelivr.net/npm/w-plot-vue@1.0.0/dist/w-plot-vue.umd.js"></script>
69
+ <script src="https://cdn.jsdelivr.net/npm/w-plot-vue@1.0.2/dist/w-plot-vue.umd.js"></script>
70
70
 
71
71
  <style>
72
72
  .v-application--wrap {
@@ -146,7 +146,7 @@
146
146
  el: "#app",
147
147
 
148
148
  data: function() {
149
- let keys1 = ["USA", "China", "Brazil", "EU", "India", "Russia"];
149
+ let keys = ["USA", "China", "Brazil", "EU", "India", "Russia"];
150
150
  let rds1a = [
151
151
  {
152
152
  name: "Corn",
@@ -423,7 +423,7 @@
423
423
  opt1a: {
424
424
  width: 400,
425
425
  height: 400,
426
- keys: keys1,
426
+ keys,
427
427
  rds: rds1a,
428
428
  xTitle: "Countries",
429
429
  yTitle: "Weight (MT)"
@@ -431,7 +431,7 @@
431
431
  opt1b: {
432
432
  width: 400,
433
433
  height: 400,
434
- keys: keys1,
434
+ keys,
435
435
  rds: rds1b,
436
436
  xTitle: "Countries",
437
437
  yTitle: "Weight (MT)"
@@ -439,7 +439,7 @@
439
439
  opt1c: {
440
440
  width: 400,
441
441
  height: 400,
442
- keys: keys1,
442
+ keys,
443
443
  rds: rds1c,
444
444
  xTitle: "Countries",
445
445
  yTitle: "Weight (MT)"
@@ -447,7 +447,7 @@
447
447
  opt2a: {
448
448
  width: 400,
449
449
  height: 400,
450
- keys: keys1,
450
+ keys,
451
451
  rds: rds2a,
452
452
  xTitle: "Countries",
453
453
  yTitle: "Weight (MT)"
@@ -455,7 +455,7 @@
455
455
  opt2b: {
456
456
  width: 400,
457
457
  height: 400,
458
- keys: keys1,
458
+ keys,
459
459
  rds: rds2b,
460
460
  xTitle: "Countries",
461
461
  yTitle: "Weight (MT)"
@@ -463,7 +463,7 @@
463
463
  opt2c: {
464
464
  width: 400,
465
465
  height: 400,
466
- keys: keys1,
466
+ keys,
467
467
  rds: rds2c,
468
468
  xTitle: "Countries",
469
469
  yTitle: "Weight (MT)"
@@ -471,7 +471,7 @@
471
471
  opt2d: {
472
472
  width: 400,
473
473
  height: 400,
474
- keys: keys1,
474
+ keys,
475
475
  rds: rds2d,
476
476
  xTitle: "Countries",
477
477
  yTitle: "Weight (MT)"
@@ -479,7 +479,7 @@
479
479
  opt2e: {
480
480
  width: 400,
481
481
  height: 400,
482
- keys: keys1,
482
+ keys,
483
483
  rds: rds2e,
484
484
  xTitle: "Countries",
485
485
  yTitle: "Weight (MT)"