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
@@ -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 {
@@ -136,7 +136,7 @@
136
136
  el: "#app",
137
137
 
138
138
  data: function() {
139
- let keys1 = ["USA", "China", "Brazil", "EU", "India", "Russia"];
139
+ let keys = ["USA", "China", "Brazil", "EU", "India", "Russia"];
140
140
  let rds1a = [
141
141
  {
142
142
  name: "Corn",
@@ -413,7 +413,7 @@
413
413
  opt1a: {
414
414
  width: 400,
415
415
  height: 400,
416
- keys: keys1,
416
+ keys,
417
417
  rds: rds1a,
418
418
  xTitle: "Countries",
419
419
  yTitle: "Weight (MT)"
@@ -421,7 +421,7 @@
421
421
  opt1b: {
422
422
  width: 400,
423
423
  height: 400,
424
- keys: keys1,
424
+ keys,
425
425
  rds: rds1b,
426
426
  xTitle: "Countries",
427
427
  yTitle: "Weight (MT)"
@@ -429,7 +429,7 @@
429
429
  opt1c: {
430
430
  width: 400,
431
431
  height: 400,
432
- keys: keys1,
432
+ keys,
433
433
  rds: rds1c,
434
434
  xTitle: "Countries",
435
435
  yTitle: "Weight (MT)"
@@ -437,7 +437,7 @@
437
437
  opt2a: {
438
438
  width: 400,
439
439
  height: 400,
440
- keys: keys1,
440
+ keys,
441
441
  rds: rds2a,
442
442
  xTitle: "Countries",
443
443
  yTitle: "Weight (MT)"
@@ -445,7 +445,7 @@
445
445
  opt2b: {
446
446
  width: 400,
447
447
  height: 400,
448
- keys: keys1,
448
+ keys,
449
449
  rds: rds2b,
450
450
  xTitle: "Countries",
451
451
  yTitle: "Weight (MT)"
@@ -453,7 +453,7 @@
453
453
  opt2c: {
454
454
  width: 400,
455
455
  height: 400,
456
- keys: keys1,
456
+ keys,
457
457
  rds: rds2c,
458
458
  xTitle: "Countries",
459
459
  yTitle: "Weight (MT)"
@@ -461,7 +461,7 @@
461
461
  opt2d: {
462
462
  width: 400,
463
463
  height: 400,
464
- keys: keys1,
464
+ keys,
465
465
  rds: rds2d,
466
466
  xTitle: "Countries",
467
467
  yTitle: "Weight (MT)"
@@ -469,7 +469,7 @@
469
469
  opt2e: {
470
470
  width: 400,
471
471
  height: 400,
472
- keys: keys1,
472
+ keys,
473
473
  rds: rds2e,
474
474
  xTitle: "Countries",
475
475
  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 {
@@ -137,7 +137,7 @@
137
137
  el: "#app",
138
138
 
139
139
  data: function() {
140
- let keys1 = ["USA", "China", "Brazil", "EU", "India", "Russia"];
140
+ let keys = ["USA", "China", "Brazil", "EU", "India", "Russia"];
141
141
  let rds1a = [
142
142
  {
143
143
  name: "Corn",
@@ -414,7 +414,7 @@
414
414
  opt1a: {
415
415
  width: 400,
416
416
  height: 400,
417
- keys: keys1,
417
+ keys,
418
418
  rds: rds1a,
419
419
  xTitle: "Countries",
420
420
  yTitle: "Weight (MT)"
@@ -422,7 +422,7 @@
422
422
  opt1b: {
423
423
  width: 400,
424
424
  height: 400,
425
- keys: keys1,
425
+ keys,
426
426
  rds: rds1b,
427
427
  xTitle: "Countries",
428
428
  yTitle: "Weight (MT)"
@@ -430,7 +430,7 @@
430
430
  opt1c: {
431
431
  width: 400,
432
432
  height: 400,
433
- keys: keys1,
433
+ keys,
434
434
  rds: rds1c,
435
435
  xTitle: "Countries",
436
436
  yTitle: "Weight (MT)"
@@ -438,7 +438,7 @@
438
438
  opt2a: {
439
439
  width: 400,
440
440
  height: 400,
441
- keys: keys1,
441
+ keys,
442
442
  rds: rds2a,
443
443
  xTitle: "Countries",
444
444
  yTitle: "Weight (MT)"
@@ -446,7 +446,7 @@
446
446
  opt2b: {
447
447
  width: 400,
448
448
  height: 400,
449
- keys: keys1,
449
+ keys,
450
450
  rds: rds2b,
451
451
  xTitle: "Countries",
452
452
  yTitle: "Weight (MT)"
@@ -454,7 +454,7 @@
454
454
  opt2c: {
455
455
  width: 400,
456
456
  height: 400,
457
- keys: keys1,
457
+ keys,
458
458
  rds: rds2c,
459
459
  xTitle: "Countries",
460
460
  yTitle: "Weight (MT)"
@@ -462,7 +462,7 @@
462
462
  opt2d: {
463
463
  width: 400,
464
464
  height: 400,
465
- keys: keys1,
465
+ keys,
466
466
  rds: rds2d,
467
467
  xTitle: "Countries",
468
468
  yTitle: "Weight (MT)"
@@ -470,7 +470,7 @@
470
470
  opt2e: {
471
471
  width: 400,
472
472
  height: 400,
473
- keys: keys1,
473
+ keys,
474
474
  rds: rds2e,
475
475
  xTitle: "Countries",
476
476
  yTitle: "Weight (MT)"
@@ -0,0 +1,221 @@
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-set-multi</span>
117
+ </div>
118
+ <div class="bk">
119
+ <div class="item">default</div>
120
+
121
+ <w-set-multi
122
+ :opt="{
123
+ ...WSetMulti.opt2e,
124
+ }"
125
+ ></w-set-multi>
126
+ </div>
127
+ </v-app>
128
+
129
+ <script>
130
+ //install
131
+ Vue.use(window["w-plot-vue"]);
132
+
133
+ //initialize
134
+ new Vue({
135
+ el: "#app",
136
+
137
+ data: function() {
138
+ let keys = ["USA", "China", "Brazil", "EU", "India", "Russia"];
139
+ let rds2e = [
140
+ {
141
+ name: "Corn",
142
+ data: {
143
+ USA: {
144
+ value: 406.292,
145
+ color: ["rgb(255, 205, 210)", "rgb(229, 115, 115)"]
146
+ },
147
+ China: {
148
+ value: 260.0,
149
+ color: ["rgb(255, 185, 210)", "rgb(229, 95, 115)"]
150
+ },
151
+ Brazil: {
152
+ value: 107.0,
153
+ color: ["rgb(255, 165, 210)", "rgb(229, 75, 115)"]
154
+ },
155
+ EU: {
156
+ value: 68.3,
157
+ color: ["rgb(255, 145, 210)", "rgb(229, 55, 115)"]
158
+ },
159
+ India: {
160
+ value: 27.5,
161
+ color: ["rgb(255, 125, 210)", "rgb(229, 35, 115)"]
162
+ },
163
+ Russia: {
164
+ value: 14.5,
165
+ color: ["rgb(255, 105, 210)", "rgb(229, 15, 115)"]
166
+ }
167
+ }
168
+ },
169
+ {
170
+ name: "Wheat",
171
+ data: {
172
+ USA: {
173
+ value: 51.086,
174
+ color: ["rgb(210, 205, 255)", "rgb(115, 115, 229)"]
175
+ },
176
+ China: {
177
+ value: 136.0,
178
+ color: ["rgb(210, 185, 255)", "rgb(115, 95, 229)"]
179
+ },
180
+ Brazil: {
181
+ value: 5.5,
182
+ color: ["rgb(210, 165, 255)", "rgb(115, 75, 229)"]
183
+ },
184
+ EU: {
185
+ value: 141.0,
186
+ color: ["rgb(210, 145, 255)", "rgb(115, 55, 229)"]
187
+ },
188
+ India: {
189
+ value: 107.18,
190
+ color: ["rgb(210, 125, 255)", "rgb(115, 35, 229)"]
191
+ },
192
+ Russia: {
193
+ value: 77.0,
194
+ color: ["rgb(210, 105, 255)", "rgb(115, 15, 229)"]
195
+ }
196
+ }
197
+ }
198
+ ];
199
+ return {
200
+ WSetMulti: {
201
+ keySelect: "bar-v-normal",
202
+ opt2e: {
203
+ width: 400,
204
+ height: 400,
205
+ keys,
206
+ rds: rds2e,
207
+ xTitle: "Countries",
208
+ yTitle: "Weight (MT)"
209
+ }
210
+ }
211
+ };
212
+ },
213
+ mounted: function() {
214
+ return {};
215
+ },
216
+ computed: {},
217
+ methods: {}
218
+ });
219
+ </script>
220
+ </body>
221
+ </html>
@@ -0,0 +1,222 @@
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-set-multi</span>
117
+ </div>
118
+ <div class="bk">
119
+ <div class="item">hide labels</div>
120
+
121
+ <w-set-multi
122
+ :opt="{
123
+ ...WSetMulti.opt2e,
124
+ showLabels:false,
125
+ }"
126
+ ></w-set-multi>
127
+ </div>
128
+ </v-app>
129
+
130
+ <script>
131
+ //install
132
+ Vue.use(window["w-plot-vue"]);
133
+
134
+ //initialize
135
+ new Vue({
136
+ el: "#app",
137
+
138
+ data: function() {
139
+ let keys = ["USA", "China", "Brazil", "EU", "India", "Russia"];
140
+ let rds2e = [
141
+ {
142
+ name: "Corn",
143
+ data: {
144
+ USA: {
145
+ value: 406.292,
146
+ color: ["rgb(255, 205, 210)", "rgb(229, 115, 115)"]
147
+ },
148
+ China: {
149
+ value: 260.0,
150
+ color: ["rgb(255, 185, 210)", "rgb(229, 95, 115)"]
151
+ },
152
+ Brazil: {
153
+ value: 107.0,
154
+ color: ["rgb(255, 165, 210)", "rgb(229, 75, 115)"]
155
+ },
156
+ EU: {
157
+ value: 68.3,
158
+ color: ["rgb(255, 145, 210)", "rgb(229, 55, 115)"]
159
+ },
160
+ India: {
161
+ value: 27.5,
162
+ color: ["rgb(255, 125, 210)", "rgb(229, 35, 115)"]
163
+ },
164
+ Russia: {
165
+ value: 14.5,
166
+ color: ["rgb(255, 105, 210)", "rgb(229, 15, 115)"]
167
+ }
168
+ }
169
+ },
170
+ {
171
+ name: "Wheat",
172
+ data: {
173
+ USA: {
174
+ value: 51.086,
175
+ color: ["rgb(210, 205, 255)", "rgb(115, 115, 229)"]
176
+ },
177
+ China: {
178
+ value: 136.0,
179
+ color: ["rgb(210, 185, 255)", "rgb(115, 95, 229)"]
180
+ },
181
+ Brazil: {
182
+ value: 5.5,
183
+ color: ["rgb(210, 165, 255)", "rgb(115, 75, 229)"]
184
+ },
185
+ EU: {
186
+ value: 141.0,
187
+ color: ["rgb(210, 145, 255)", "rgb(115, 55, 229)"]
188
+ },
189
+ India: {
190
+ value: 107.18,
191
+ color: ["rgb(210, 125, 255)", "rgb(115, 35, 229)"]
192
+ },
193
+ Russia: {
194
+ value: 77.0,
195
+ color: ["rgb(210, 105, 255)", "rgb(115, 15, 229)"]
196
+ }
197
+ }
198
+ }
199
+ ];
200
+ return {
201
+ WSetMulti: {
202
+ keySelect: "bar-v-normal",
203
+ opt2e: {
204
+ width: 400,
205
+ height: 400,
206
+ keys,
207
+ rds: rds2e,
208
+ xTitle: "Countries",
209
+ yTitle: "Weight (MT)"
210
+ }
211
+ }
212
+ };
213
+ },
214
+ mounted: function() {
215
+ return {};
216
+ },
217
+ computed: {},
218
+ methods: {}
219
+ });
220
+ </script>
221
+ </body>
222
+ </html>