w-echarts-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.
Files changed (81) hide show
  1. package/.editorconfig +9 -0
  2. package/.eslintignore +3 -0
  3. package/.eslintrc.js +55 -0
  4. package/.jsdoc +25 -0
  5. package/LICENSE +21 -0
  6. package/README.md +130 -0
  7. package/SECURITY.md +5 -0
  8. package/babel.config.js +16 -0
  9. package/dist/w-echarts-vue.umd.js +30 -0
  10. package/dist/w-echarts-vue.umd.js.map +1 -0
  11. package/docs/components_WEchartsVue.vue.html +420 -0
  12. package/docs/examples/app.html +62 -0
  13. package/docs/examples/app.umd.js +31 -0
  14. package/docs/examples/app.umd.js.map +1 -0
  15. package/docs/examples/w-echarts-vue_area.html +1733 -0
  16. package/docs/examples/w-echarts-vue_bar3D.html +1733 -0
  17. package/docs/examples/w-echarts-vue_continuous.html +1733 -0
  18. package/docs/examples/w-echarts-vue_heatmap.html +1733 -0
  19. package/docs/examples/w-echarts-vue_line.html +1733 -0
  20. package/docs/examples/w-echarts-vue_line3D.html +1733 -0
  21. package/docs/examples/w-echarts-vue_parallel.html +1733 -0
  22. package/docs/examples/w-echarts-vue_polar heatmap.html +1733 -0
  23. package/docs/examples/w-echarts-vue_polar.html +1733 -0
  24. package/docs/examples/w-echarts-vue_radar.html +1733 -0
  25. package/docs/examples/w-echarts-vue_resize.html +1746 -0
  26. package/docs/examples/w-echarts-vue_scatter.html +1733 -0
  27. package/docs/examples/w-echarts-vue_stack.html +1733 -0
  28. package/docs/examples/w-echarts-vue_surface.html +1733 -0
  29. package/docs/examples/w-echarts-vue_tree.html +1736 -0
  30. package/docs/examples/w-echarts-vue_treemap.html +1734 -0
  31. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  32. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  33. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  34. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  35. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  36. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  37. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  38. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  39. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  40. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  41. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  42. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  43. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  44. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  45. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  46. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  47. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  48. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  49. package/docs/global.html +281 -0
  50. package/docs/index.html +84 -0
  51. package/docs/js_iniEcharts.mjs.html +104 -0
  52. package/docs/module-WEchartsVue.html +1006 -0
  53. package/docs/scripts/collapse.js +39 -0
  54. package/docs/scripts/commonNav.js +28 -0
  55. package/docs/scripts/linenumber.js +25 -0
  56. package/docs/scripts/nav.js +12 -0
  57. package/docs/scripts/polyfill.js +4 -0
  58. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  59. package/docs/scripts/prettify/lang-css.js +2 -0
  60. package/docs/scripts/prettify/prettify.js +28 -0
  61. package/docs/scripts/search.js +99 -0
  62. package/docs/styles/jsdoc.css +776 -0
  63. package/docs/styles/prettify.css +80 -0
  64. package/package.json +70 -0
  65. package/public/index.html +31 -0
  66. package/script.txt +22 -0
  67. package/src/App.vue +180 -0
  68. package/src/AppZoneWEchartsVue.vue +1171 -0
  69. package/src/components/WEchartsVue.vue +348 -0
  70. package/src/js/iniEcharts.mjs +32 -0
  71. package/src/main.js +8 -0
  72. package/test/all.test.mjs +10 -0
  73. package/toolg/addVersion.mjs +4 -0
  74. package/toolg/cleanFolder.mjs +5 -0
  75. package/toolg/cvCasename.mjs +43 -0
  76. package/toolg/gDistApp.mjs +35 -0
  77. package/toolg/gDistRollupComps.mjs +24 -0
  78. package/toolg/gDocExams.mjs +47 -0
  79. package/toolg/gExtractHtml.mjs +285 -0
  80. package/toolg/modifyReadme.mjs +4 -0
  81. package/vue.config.js +27 -0
@@ -0,0 +1,1171 @@
1
+ <template>
2
+ <div class="bkh">
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-echarts-vue/examples/app.html?cmp='+this.innerText,'_blank')">w-echarts-vue</span></div>
6
+
7
+
8
+ <div style="font-size:0.9rem; margin-bottom:10px;">
9
+ <span style="margin-right:10px;">Links:</span>
10
+ <a href="//github.com/apache/echarts" target="_blank" rel="noreferrer noopener">echarts</a>
11
+ <span style="margin:0px 10px">|</span>
12
+ <a href="//echarts.apache.org/examples/zh/index.html" target="_blank" rel="noreferrer noopener">echarts examples</a>
13
+ <span style="margin:0px 10px">|</span>
14
+ <a href="//github.com/ecomfe/echarts-gl" target="_blank" rel="noreferrer noopener">echarts-gl</a>
15
+ </div>
16
+
17
+
18
+ <div>
19
+
20
+
21
+ <div class="bk">
22
+ <demolink
23
+ :pkgname="'w-echarts-vue'"
24
+ :kbname="'w-echarts-vue'"
25
+ :casename="'line'"
26
+ ></demolink>
27
+
28
+ <w-echarts-vue
29
+ style="width:620px; height:300px;"
30
+ :options="WEchartsVue.options1"
31
+ ></w-echarts-vue>
32
+
33
+ </div>
34
+
35
+
36
+ <div class="bk">
37
+ <demolink
38
+ :pkgname="'w-echarts-vue'"
39
+ :kbname="'w-echarts-vue'"
40
+ :casename="'resize'"
41
+ ></demolink>
42
+
43
+ <div style="padding-bottom:10px;">
44
+ <span class="cpitem cpitem-white" style="display:inline-block; margin:0px 10px 5px 0px; border:1px solid #ddd; border-radius:4px; font-size:0.9rem;" @click="WEchartsVue.widthOptions1=620">620px(default)</span>
45
+ <span class="cpitem cpitem-white" style="display:inline-block; margin:0px 10px 5px 0px; border:1px solid #ddd; border-radius:4px; font-size:0.9rem;" @click="WEchartsVue.widthOptions1=310">310px</span>
46
+ </div>
47
+
48
+ <w-echarts-vue
49
+ :style="`width:${WEchartsVue.widthOptions1}px; height:300px;`"
50
+ :options="WEchartsVue.options1"
51
+ ></w-echarts-vue>
52
+
53
+ </div>
54
+
55
+
56
+ <div class="bk">
57
+ <demolink
58
+ :pkgname="'w-echarts-vue'"
59
+ :kbname="'w-echarts-vue'"
60
+ :casename="'area'"
61
+ ></demolink>
62
+
63
+ <w-echarts-vue
64
+ style="width:620px; height:300px;"
65
+ :options="WEchartsVue.options2"
66
+ ></w-echarts-vue>
67
+
68
+ </div>
69
+
70
+
71
+ <div class="bk">
72
+ <demolink
73
+ :pkgname="'w-echarts-vue'"
74
+ :kbname="'w-echarts-vue'"
75
+ :casename="'stack'"
76
+ ></demolink>
77
+
78
+ <w-echarts-vue
79
+ style="width:620px; height:300px;"
80
+ :options="WEchartsVue.options3"
81
+ ></w-echarts-vue>
82
+
83
+ </div>
84
+
85
+
86
+ <div class="bk">
87
+ <demolink
88
+ :pkgname="'w-echarts-vue'"
89
+ :kbname="'w-echarts-vue'"
90
+ :casename="'radar'"
91
+ ></demolink>
92
+
93
+ <w-echarts-vue
94
+ style="width:620px; height:300px;"
95
+ :options="WEchartsVue.options4"
96
+ ></w-echarts-vue>
97
+
98
+ </div>
99
+
100
+
101
+ <div class="bk">
102
+ <demolink
103
+ :pkgname="'w-echarts-vue'"
104
+ :kbname="'w-echarts-vue'"
105
+ :casename="'polar'"
106
+ ></demolink>
107
+
108
+ <w-echarts-vue
109
+ style="width:620px; height:300px;"
110
+ :options="WEchartsVue.options5"
111
+ ></w-echarts-vue>
112
+
113
+ </div>
114
+
115
+
116
+ <div class="bk">
117
+ <demolink
118
+ :pkgname="'w-echarts-vue'"
119
+ :kbname="'w-echarts-vue'"
120
+ :casename="'heatmap'"
121
+ ></demolink>
122
+
123
+ <w-echarts-vue
124
+ style="width:620px; height:300px;"
125
+ :options="WEchartsVue.options6"
126
+ ></w-echarts-vue>
127
+
128
+ </div>
129
+
130
+
131
+ <div class="bk">
132
+ <demolink
133
+ :pkgname="'w-echarts-vue'"
134
+ :kbname="'w-echarts-vue'"
135
+ :casename="'scatter'"
136
+ ></demolink>
137
+
138
+ <w-echarts-vue
139
+ style="width:620px; height:300px;"
140
+ :options="WEchartsVue.options7"
141
+ ></w-echarts-vue>
142
+
143
+ </div>
144
+
145
+
146
+ <div class="bk">
147
+ <demolink
148
+ :pkgname="'w-echarts-vue'"
149
+ :kbname="'w-echarts-vue'"
150
+ :casename="'parallel'"
151
+ ></demolink>
152
+
153
+ <w-echarts-vue
154
+ style="width:620px; height:300px;"
155
+ :options="WEchartsVue.options8"
156
+ ></w-echarts-vue>
157
+
158
+ </div>
159
+
160
+
161
+ <div class="bk" style="display:block;">
162
+ <demolink
163
+ :pkgname="'w-echarts-vue'"
164
+ :kbname="'w-echarts-vue'"
165
+ :casename="'tree'"
166
+ ></demolink>
167
+
168
+ <div :style="'overflow-y:auto; height:300px;'">
169
+ <!-- echarts要給寬度否則無法撐開 -->
170
+ <w-echarts-vue
171
+ style="width:100%; height:2300px;"
172
+ :options="WEchartsVue.options9"
173
+ ></w-echarts-vue>
174
+ </div>
175
+
176
+ </div>
177
+
178
+
179
+ <div class="bk" style="display:block;">
180
+ <demolink
181
+ :pkgname="'w-echarts-vue'"
182
+ :kbname="'w-echarts-vue'"
183
+ :casename="'treemap'"
184
+ ></demolink>
185
+
186
+ <!-- echarts要給寬度否則無法撐開 -->
187
+ <w-echarts-vue
188
+ style="width:100%; height:500px;"
189
+ :options="WEchartsVue.options10"
190
+ ></w-echarts-vue>
191
+
192
+ </div>
193
+
194
+
195
+ <div class="bk">
196
+ <demolink
197
+ :pkgname="'w-echarts-vue'"
198
+ :kbname="'w-echarts-vue'"
199
+ :casename="'continuous'"
200
+ ></demolink>
201
+
202
+ <w-echarts-vue
203
+ style="width:620px; height:400px;"
204
+ :options="WEchartsVue.options11"
205
+ ></w-echarts-vue>
206
+
207
+ </div>
208
+
209
+
210
+ <div class="bk">
211
+ <demolink
212
+ :pkgname="'w-echarts-vue'"
213
+ :kbname="'w-echarts-vue'"
214
+ :casename="'polar heatmap'"
215
+ ></demolink>
216
+
217
+ <w-echarts-vue
218
+ style="width:620px; height:400px;"
219
+ :options="WEchartsVue.options12"
220
+ ></w-echarts-vue>
221
+
222
+ </div>
223
+
224
+
225
+ <div class="bk">
226
+ <demolink
227
+ :pkgname="'w-echarts-vue'"
228
+ :kbname="'w-echarts-vue'"
229
+ :casename="'bar3D'"
230
+ ></demolink>
231
+
232
+ <w-echarts-vue
233
+ style="width:620px; height:400px;"
234
+ :options="WEchartsVue.options13"
235
+ ></w-echarts-vue>
236
+
237
+ </div>
238
+
239
+
240
+ <div class="bk">
241
+ <demolink
242
+ :pkgname="'w-echarts-vue'"
243
+ :kbname="'w-echarts-vue'"
244
+ :casename="'line3D'"
245
+ ></demolink>
246
+
247
+ <w-echarts-vue
248
+ style="width:620px; height:400px;"
249
+ :options="WEchartsVue.options14"
250
+ ></w-echarts-vue>
251
+
252
+ </div>
253
+
254
+
255
+ <div class="bk">
256
+ <demolink
257
+ :pkgname="'w-echarts-vue'"
258
+ :kbname="'w-echarts-vue'"
259
+ :casename="'surface'"
260
+ ></demolink>
261
+
262
+ <w-echarts-vue
263
+ style="width:620px; height:400px;"
264
+ :options="WEchartsVue.options15"
265
+ ></w-echarts-vue>
266
+
267
+ </div>
268
+
269
+
270
+ </div>
271
+
272
+
273
+ </div>
274
+ </template>
275
+
276
+ <script>
277
+ import demolink from 'w-component-vue/src/components/demolink.vue'
278
+ import WEchartsVue from './components/WEchartsVue.vue'
279
+
280
+
281
+ export default {
282
+ components: {
283
+ demolink,
284
+ WEchartsVue,
285
+ },
286
+ props: {
287
+ },
288
+ data: function() {
289
+ let df = function(d) {
290
+ let date = []
291
+ let data = []
292
+ for (let i = 0; i < d.length; i++) {
293
+ let v = d[i]
294
+ let now = new Date(v[0])
295
+ let t = [now.getFullYear(), now.getMonth() + 1, now.getDate()].join('-')
296
+ date.push(t)
297
+ data.push(v[1])
298
+ }
299
+ return {
300
+ date,
301
+ data,
302
+ }
303
+ }
304
+ let rDataAAPL = df(window.dataAAPL)
305
+ let rDataUSD2EUR = df(window.dataUSD2EUR)
306
+ return {
307
+ 'WEchartsVue': {
308
+ 'widthOptions1': 620,
309
+ 'options1': {
310
+ tooltip: {
311
+ trigger: 'axis',
312
+ position: function (pt) {
313
+ return [pt[0], '10%']
314
+ }
315
+ },
316
+ title: {
317
+ left: 'center',
318
+ text: 'AAPL Stock Price',
319
+ },
320
+ toolbox: {
321
+ feature: {
322
+ dataZoom: {
323
+ yAxisIndex: 'none',
324
+ title: {
325
+ zoom: 'Zoom',
326
+ back: 'Zoom Reset'
327
+ }
328
+ },
329
+ restore: {
330
+ title: 'Restore',
331
+ },
332
+ saveAsImage: {
333
+ title: 'Download',
334
+ }
335
+ }
336
+ },
337
+ xAxis: {
338
+ type: 'category',
339
+ boundaryGap: false,
340
+ data: rDataAAPL.date
341
+ },
342
+ yAxis: {
343
+ type: 'value',
344
+ boundaryGap: [0, '100%']
345
+ },
346
+ dataZoom: [{
347
+ type: 'inside',
348
+ start: 0,
349
+ end: 100
350
+ }, {
351
+ start: 0,
352
+ end: 10,
353
+ handleIcon: 'path://M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
354
+ handleSize: '80%',
355
+ handleStyle: {
356
+ color: '#fff',
357
+ shadowBlur: 3,
358
+ shadowColor: 'rgba(0, 0, 0, 0.6)',
359
+ shadowOffsetX: 2,
360
+ shadowOffsetY: 2
361
+ }
362
+ }],
363
+ series: [
364
+ {
365
+ name: 'Price',
366
+ type: 'line',
367
+ itemStyle: {
368
+ color: 'rgba(20, 20, 200, 0.5)'
369
+ },
370
+ data: rDataAAPL.data
371
+ }
372
+ ]
373
+ },
374
+ 'options2': {
375
+ tooltip: {
376
+ trigger: 'axis',
377
+ position: function (pt) {
378
+ return [pt[0], '10%']
379
+ }
380
+ },
381
+ title: {
382
+ left: 'center',
383
+ text: 'USD to EUR exchange rate over time',
384
+ },
385
+ toolbox: {
386
+ feature: {
387
+ dataZoom: {
388
+ yAxisIndex: 'none',
389
+ title: {
390
+ zoom: 'Zoom',
391
+ back: 'Zoom Reset'
392
+ }
393
+ },
394
+ restore: {
395
+ title: 'Restore',
396
+ },
397
+ saveAsImage: {
398
+ title: 'Download',
399
+ }
400
+ }
401
+ },
402
+ xAxis: {
403
+ type: 'category',
404
+ boundaryGap: false,
405
+ data: rDataUSD2EUR.date
406
+ },
407
+ yAxis: {
408
+ type: 'value',
409
+ boundaryGap: [0, '100%']
410
+ },
411
+ dataZoom: [{
412
+ type: 'inside',
413
+ start: 0,
414
+ end: 100
415
+ }, {
416
+ start: 0,
417
+ end: 10,
418
+ handleIcon: 'path://M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z',
419
+ handleSize: '80%',
420
+ handleStyle: {
421
+ color: '#fff',
422
+ shadowBlur: 3,
423
+ shadowColor: 'rgba(0, 0, 0, 0.6)',
424
+ shadowOffsetX: 2,
425
+ shadowOffsetY: 2
426
+ }
427
+ }],
428
+ series: [
429
+ {
430
+ name: 'USD to EUR',
431
+ type: 'line',
432
+ itemStyle: {
433
+ color: 'rgba(200,200,255,1)'
434
+ },
435
+ areaStyle: {
436
+ color: {
437
+ type: 'linear',
438
+ x0: 0,
439
+ y0: 0,
440
+ x2: 0,
441
+ y2: 1,
442
+ colorStops: [{
443
+ offset: 0,
444
+ color: 'rgba(200,200,255,1)'
445
+ }, {
446
+ offset: 1,
447
+ color: 'rgba(200,200,255,0.1)',
448
+ }],
449
+ globalCoord: false
450
+ },
451
+ },
452
+ data: rDataUSD2EUR.data
453
+ }
454
+ ]
455
+ },
456
+ 'options3': {
457
+ title: {
458
+ left: 'center',
459
+ text: '堆叠区域图'
460
+ },
461
+ tooltip: {
462
+ trigger: 'axis',
463
+ axisPointer: {
464
+ type: 'cross',
465
+ label: {
466
+ backgroundColor: '#6a7985'
467
+ }
468
+ }
469
+ },
470
+ legend: {
471
+ y: 30,
472
+ data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']
473
+ },
474
+ grid: {
475
+ left: '3%',
476
+ right: '4%',
477
+ bottom: '3%',
478
+ containLabel: true
479
+ },
480
+ xAxis: [
481
+ {
482
+ type: 'category',
483
+ boundaryGap: false,
484
+ data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
485
+ }
486
+ ],
487
+ yAxis: [
488
+ {
489
+ type: 'value'
490
+ }
491
+ ],
492
+ series: [
493
+ {
494
+ name: '邮件营销',
495
+ type: 'line',
496
+ stack: '总量',
497
+ areaStyle: {},
498
+ data: [120, 132, 101, 134, 90, 230, 210]
499
+ },
500
+ {
501
+ name: '联盟广告',
502
+ type: 'line',
503
+ stack: '总量',
504
+ areaStyle: {},
505
+ data: [220, 182, 191, 234, 290, 330, 310]
506
+ },
507
+ {
508
+ name: '视频广告',
509
+ type: 'line',
510
+ stack: '总量',
511
+ areaStyle: {},
512
+ data: [150, 232, 201, 154, 190, 330, 410]
513
+ },
514
+ {
515
+ name: '直接访问',
516
+ type: 'line',
517
+ stack: '总量',
518
+ areaStyle: {},
519
+ data: [320, 332, 301, 334, 390, 330, 320]
520
+ },
521
+ {
522
+ name: '搜索引擎',
523
+ type: 'line',
524
+ stack: '总量',
525
+ label: {
526
+ show: true,
527
+ position: 'top'
528
+ },
529
+ areaStyle: {},
530
+ data: [820, 932, 901, 934, 1290, 1330, 1320]
531
+ }
532
+ ]
533
+ },
534
+ 'options4': {
535
+ title: {
536
+ left: 'center',
537
+ text: '基础雷达图'
538
+ },
539
+ tooltip: {},
540
+ legend: {
541
+ y: 30,
542
+ data: ['预算分配(Allocated Budget)', '实际开销(Actual Spending)']
543
+ },
544
+ radar: {
545
+ center: ['50%', '60%'],
546
+ radius: '60%',
547
+ axisName: {
548
+ color: '#fff',
549
+ backgroundColor: '#999',
550
+ borderRadius: 3,
551
+ padding: [3, 5]
552
+ },
553
+ indicator: [
554
+ { name: '销售(sales)', max: 6500 },
555
+ { name: '管理(Administration)', max: 16000 },
556
+ { name: '信息技术(Information Techology)', max: 30000 },
557
+ { name: '客服(Customer Support)', max: 38000 },
558
+ { name: '研发(Development)', max: 52000 },
559
+ { name: '市场(Marketing)', max: 25000 }
560
+ ]
561
+ },
562
+ series: [{
563
+ name: '预算 vs 开销(Budget vs spending)',
564
+ type: 'radar',
565
+ data: [
566
+ {
567
+ value: [4300, 10000, 28000, 35000, 50000, 19000],
568
+ name: '预算分配(Allocated Budget)'
569
+ },
570
+ {
571
+ value: [5000, 14000, 28000, 31000, 42000, 21000],
572
+ name: '实际开销(Actual Spending)'
573
+ }
574
+ ]
575
+ }]
576
+ },
577
+ 'options5': {
578
+ title: {
579
+ text: '极坐标双数值轴'
580
+ },
581
+ legend: {
582
+ data: ['line']
583
+ },
584
+ polar: {
585
+ center: ['50%', '52%'],
586
+ radius: '72%',
587
+ },
588
+ tooltip: {
589
+ trigger: 'axis',
590
+ axisPointer: {
591
+ type: 'cross'
592
+ }
593
+ },
594
+ angleAxis: {
595
+ type: 'value',
596
+ startAngle: 0
597
+ },
598
+ radiusAxis: {
599
+ },
600
+ series: [{
601
+ coordinateSystem: 'polar',
602
+ name: 'line',
603
+ type: 'line',
604
+ data: (function() {
605
+ let data = []
606
+ for (let i = 0; i <= 100; i++) {
607
+ let theta = i / 100 * 360
608
+ let r = 5 * (1 + Math.sin(theta / 180 * Math.PI))
609
+ data.push([r, theta])
610
+ }
611
+ return data
612
+ })()
613
+ }]
614
+ },
615
+ 'options6': {
616
+ tooltip: {
617
+ position: 'top'
618
+ },
619
+ grid: {
620
+ height: '70%',
621
+ top: '2%'
622
+ },
623
+ xAxis: {
624
+ type: 'category',
625
+ data: ['12a', '1a', '2a', '3a', '4a', '5a', '6a',
626
+ '7a', '8a', '9a', '10a', '11a',
627
+ '12p', '1p', '2p', '3p', '4p', '5p',
628
+ '6p', '7p', '8p', '9p', '10p', '11p'],
629
+ splitArea: {
630
+ show: true
631
+ }
632
+ },
633
+ yAxis: {
634
+ type: 'category',
635
+ data: ['Saturday', 'Friday', 'Thursday',
636
+ 'Wednesday', 'Tuesday', 'Monday', 'Sunday'],
637
+ splitArea: {
638
+ show: true
639
+ }
640
+ },
641
+ visualMap: {
642
+ min: 0,
643
+ max: 10,
644
+ calculable: true,
645
+ orient: 'horizontal',
646
+ left: 'center',
647
+ bottom: '2%'
648
+ },
649
+ series: [{
650
+ name: 'Punch Card',
651
+ type: 'heatmap',
652
+ data: [[0, 0, 5], [0, 1, 1], [0, 2, 0], [0, 3, 0], [0, 4, 0], [0, 5, 0], [0, 6, 0], [0, 7, 0], [0, 8, 0], [0, 9, 0], [0, 10, 0], [0, 11, 2], [0, 12, 4], [0, 13, 1], [0, 14, 1], [0, 15, 3], [0, 16, 4], [0, 17, 6], [0, 18, 4], [0, 19, 4], [0, 20, 3], [0, 21, 3], [0, 22, 2], [0, 23, 5], [1, 0, 7], [1, 1, 0], [1, 2, 0], [1, 3, 0], [1, 4, 0], [1, 5, 0], [1, 6, 0], [1, 7, 0], [1, 8, 0], [1, 9, 0], [1, 10, 5], [1, 11, 2], [1, 12, 2], [1, 13, 6], [1, 14, 9], [1, 15, 11], [1, 16, 6], [1, 17, 7], [1, 18, 8], [1, 19, 12], [1, 20, 5], [1, 21, 5], [1, 22, 7], [1, 23, 2], [2, 0, 1], [2, 1, 1], [2, 2, 0], [2, 3, 0], [2, 4, 0], [2, 5, 0], [2, 6, 0], [2, 7, 0], [2, 8, 0], [2, 9, 0], [2, 10, 3], [2, 11, 2], [2, 12, 1], [2, 13, 9], [2, 14, 8], [2, 15, 10], [2, 16, 6], [2, 17, 5], [2, 18, 5], [2, 19, 5], [2, 20, 7], [2, 21, 4], [2, 22, 2], [2, 23, 4], [3, 0, 7], [3, 1, 3], [3, 2, 0], [3, 3, 0], [3, 4, 0], [3, 5, 0], [3, 6, 0], [3, 7, 0], [3, 8, 1], [3, 9, 0], [3, 10, 5], [3, 11, 4], [3, 12, 7], [3, 13, 14], [3, 14, 13], [3, 15, 12], [3, 16, 9], [3, 17, 5], [3, 18, 5], [3, 19, 10], [3, 20, 6], [3, 21, 4], [3, 22, 4], [3, 23, 1], [4, 0, 1], [4, 1, 3], [4, 2, 0], [4, 3, 0], [4, 4, 0], [4, 5, 1], [4, 6, 0], [4, 7, 0], [4, 8, 0], [4, 9, 2], [4, 10, 4], [4, 11, 4], [4, 12, 2], [4, 13, 4], [4, 14, 4], [4, 15, 14], [4, 16, 12], [4, 17, 1], [4, 18, 8], [4, 19, 5], [4, 20, 3], [4, 21, 7], [4, 22, 3], [4, 23, 0], [5, 0, 2], [5, 1, 1], [5, 2, 0], [5, 3, 3], [5, 4, 0], [5, 5, 0], [5, 6, 0], [5, 7, 0], [5, 8, 2], [5, 9, 0], [5, 10, 4], [5, 11, 1], [5, 12, 5], [5, 13, 10], [5, 14, 5], [5, 15, 7], [5, 16, 11], [5, 17, 6], [5, 18, 0], [5, 19, 5], [5, 20, 3], [5, 21, 4], [5, 22, 2], [5, 23, 0], [6, 0, 1], [6, 1, 0], [6, 2, 0], [6, 3, 0], [6, 4, 0], [6, 5, 0], [6, 6, 0], [6, 7, 0], [6, 8, 0], [6, 9, 0], [6, 10, 1], [6, 11, 0], [6, 12, 2], [6, 13, 1], [6, 14, 3], [6, 15, 4], [6, 16, 0], [6, 17, 0], [6, 18, 0], [6, 19, 0], [6, 20, 1], [6, 21, 2], [6, 22, 2], [6, 23, 6]].map(function (item) {
653
+ return [item[1], item[0], item[2] || '-']
654
+ }),
655
+ label: {
656
+ show: true
657
+ },
658
+ emphasis: {
659
+ itemStyle: {
660
+ shadowBlur: 10,
661
+ shadowColor: 'rgba(0, 0, 0, 0.5)'
662
+ }
663
+ }
664
+ }]
665
+ },
666
+ 'options7': {
667
+ title: {
668
+ left: 'center',
669
+ text: 'Dispersion of house price based on the area',
670
+ },
671
+ grid: {
672
+ top: '10%',
673
+ left: '0%',
674
+ right: '10%',
675
+ bottom: '0%',
676
+ containLabel: true
677
+ },
678
+ visualMap: {
679
+ min: 15202,
680
+ max: 159980,
681
+ dimension: 1,
682
+ orient: 'vertical',
683
+ right: 10,
684
+ top: 'center',
685
+ text: ['HIGH', 'LOW'],
686
+ calculable: true,
687
+ inRange: {
688
+ color: ['#f2c31a', '#24b7f2']
689
+ }
690
+ },
691
+ tooltip: {
692
+ trigger: 'item',
693
+ axisPointer: {
694
+ type: 'cross'
695
+ }
696
+ },
697
+ xAxis: [{
698
+ type: 'value'
699
+ }],
700
+ yAxis: [{
701
+ type: 'value'
702
+ }],
703
+ series: [{
704
+ name: 'price-area',
705
+ type: 'scatter',
706
+ symbolSize: 5,
707
+ itemStyle: {
708
+ borderWidth: 0.2,
709
+ borderColor: '#fff'
710
+ },
711
+ data: window.dataHousePriceArea
712
+ }]
713
+ },
714
+ 'options8': {
715
+ parallelAxis: [
716
+ { dim: 0, name: 'Price' },
717
+ { dim: 1, name: 'Net Weight' },
718
+ { dim: 2, name: 'Amount' },
719
+ {
720
+ dim: 3,
721
+ name: 'Score',
722
+ type: 'category',
723
+ data: ['Excellent', 'Good', 'OK', 'Bad']
724
+ }
725
+ ],
726
+ parallel: {
727
+ left: '5%',
728
+ right: '10%',
729
+ bottom: '5%',
730
+ top: '5%',
731
+ },
732
+ series: {
733
+ type: 'parallel',
734
+ lineStyle: {
735
+ width: 4
736
+ },
737
+ data: [
738
+ [12.99, 100, 82, 'Good'],
739
+ [9.99, 80, 77, 'OK'],
740
+ [20, 120, 60, 'Excellent']
741
+ ]
742
+ }
743
+ },
744
+ 'options9': {
745
+ tooltip: {
746
+ trigger: 'item',
747
+ triggerOn: 'mousemove'
748
+ },
749
+ toolbox: {
750
+ feature: {
751
+ restore: {
752
+ title: 'Restore',
753
+ },
754
+ saveAsImage: {
755
+ title: 'Download',
756
+ },
757
+ },
758
+ },
759
+ series: [
760
+ {
761
+ type: 'tree',
762
+ data: [window.dataFlare],
763
+ top: '1%',
764
+ left: '4%',
765
+ bottom: '1%',
766
+ right: '14%',
767
+ symbolSize: 12,
768
+ initialTreeDepth: undefined, //展開全部
769
+ label: {
770
+ position: 'left',
771
+ verticalAlign: 'middle',
772
+ align: 'right',
773
+ fontSize: 12,
774
+ formatter: function(p) {
775
+ if (p.value) {
776
+ return p.name + ': ' + p.value
777
+ }
778
+ return p.name
779
+ },
780
+ },
781
+ leaves: {
782
+ label: {
783
+ position: 'right',
784
+ verticalAlign: 'middle',
785
+ align: 'left',
786
+ }
787
+ },
788
+ animationDuration: 500,
789
+ animationDurationUpdate: 500
790
+ }
791
+ ]
792
+ },
793
+ 'options10': {
794
+ tooltip: {
795
+ trigger: 'item',
796
+ triggerOn: 'mousemove'
797
+ },
798
+ toolbox: {
799
+ feature: {
800
+ restore: {
801
+ title: 'Restore',
802
+ },
803
+ saveAsImage: {
804
+ title: 'Download',
805
+ },
806
+ },
807
+ },
808
+ series: [
809
+ {
810
+ type: 'treemap',
811
+ name: window.dataFlare.name,
812
+ data: window.dataFlare.children,
813
+ upperLabel: {
814
+ show: true,
815
+ height: 24,
816
+ padding: 5,
817
+ },
818
+ label: {
819
+ formatter: function(p) {
820
+ if (p.value) {
821
+ return p.name + '\n' + '(' + p.value + ')'
822
+ }
823
+ return p.name
824
+ },
825
+ fontSize: 11,
826
+ },
827
+ levels: [
828
+ {
829
+ itemStyle: {
830
+ borderWidth: 2,
831
+ gapWidth: 2,
832
+ borderColor: '#444',
833
+ }
834
+ },
835
+ {
836
+ itemStyle: {
837
+ borderWidth: 2,
838
+ gapWidth: 2,
839
+ borderColor: '#666',
840
+ }
841
+ },
842
+ {
843
+ itemStyle: {
844
+ borderWidth: 2,
845
+ gapWidth: 2,
846
+ borderColor: '#888',
847
+ }
848
+ },
849
+ {
850
+ itemStyle: {
851
+ borderWidth: 2,
852
+ gapWidth: 2,
853
+ borderColor: '#aaa',
854
+ }
855
+ }
856
+ ]
857
+ }
858
+ ]
859
+ },
860
+ 'options11': {
861
+ tooltip: {
862
+ },
863
+ visualMap: {
864
+ type: 'continuous',
865
+ min: 0,
866
+ max: 10,
867
+ inRange: {
868
+ color: ['#2D5F73', '#538EA6', '#F2D1B3', '#F2B8A2', '#F28C8C']
869
+ },
870
+ orient: 'vertical',
871
+ top: 'center',
872
+ },
873
+ series: {
874
+ type: 'sunburst',
875
+ data: [{
876
+ name: 'Grandpa',
877
+ children: [{
878
+ name: 'Uncle Leo',
879
+ value: 15,
880
+ children: [{
881
+ name: 'Cousin Jack',
882
+ value: 2
883
+ }, {
884
+ name: 'Cousin Mary',
885
+ value: 5,
886
+ children: [{
887
+ name: 'Jackson',
888
+ value: 2
889
+ }]
890
+ }, {
891
+ name: 'Cousin Ben',
892
+ value: 4
893
+ }]
894
+ }, {
895
+ name: 'Aunt Jane',
896
+ children: [{
897
+ name: 'Cousin Kate',
898
+ value: 4
899
+ }]
900
+ }, {
901
+ name: 'Father',
902
+ value: 10,
903
+ children: [{
904
+ name: 'Me',
905
+ value: 5,
906
+ itemStyle: {
907
+ color: 'red'
908
+ }
909
+ }, {
910
+ name: 'Brother Peter',
911
+ value: 1
912
+ }]
913
+ }]
914
+ }, {
915
+ name: 'Mike',
916
+ children: [{
917
+ name: 'Uncle Dan',
918
+ children: [{
919
+ name: 'Cousin Lucy',
920
+ value: 3
921
+ }, {
922
+ name: 'Cousin Luck',
923
+ value: 4,
924
+ children: [{
925
+ name: 'Nephew',
926
+ value: 2
927
+ }]
928
+ }]
929
+ }]
930
+ }, {
931
+ name: 'Nancy',
932
+ children: [{
933
+ name: 'Uncle Nike',
934
+ children: [{
935
+ name: 'Cousin Betty',
936
+ value: 1
937
+ }, {
938
+ name: 'Cousin Jenny',
939
+ value: 2
940
+ }]
941
+ }]
942
+ }],
943
+ radius: [0, '90%'],
944
+ label: {
945
+ rotate: 'radial'
946
+ }
947
+ }
948
+ },
949
+ 'options12': {
950
+ legend: {
951
+ data: ['Punch Card']
952
+ },
953
+ polar: {},
954
+ tooltip: {
955
+ },
956
+ visualMap: {
957
+ type: 'continuous',
958
+ min: 0,
959
+ max: 14,
960
+ top: 'middle',
961
+ dimension: 2,
962
+ calculable: true
963
+ },
964
+ angleAxis: {
965
+ type: 'category',
966
+ data: ['12a', '1a', '2a', '3a', '4a', '5a', '6a', '7a', '8a', '9a', '10a', '11a', '12p', '1p', '2p', '3p', '4p', '5p', '6p', '7p', '8p', '9p', '10p', '11p'],
967
+ boundaryGap: false,
968
+ splitLine: {
969
+ show: true,
970
+ lineStyle: {
971
+ color: '#ddd',
972
+ type: 'dashed'
973
+ }
974
+ },
975
+ axisLine: {
976
+ show: false
977
+ }
978
+ },
979
+ radiusAxis: {
980
+ type: 'category',
981
+ data: ['Saturday', 'Friday', 'Thursday', 'Wednesday', 'Tuesday', 'Monday', 'Sunday'],
982
+ z: 100
983
+ },
984
+ series: [{
985
+ name: 'Punch Card',
986
+ type: 'custom',
987
+ coordinateSystem: 'polar',
988
+ itemStyle: {
989
+ color: '#d14a61'
990
+ },
991
+ renderItem: function (params, api) {
992
+ let values = [api.value(0), api.value(1)]
993
+ let coord = api.coord(values)
994
+ let size = api.size([1, 1], values)
995
+ return {
996
+ type: 'sector',
997
+ shape: {
998
+ cx: params.coordSys.cx,
999
+ cy: params.coordSys.cy,
1000
+ r0: coord[2] - size[0] / 2,
1001
+ r: coord[2] + size[0] / 2,
1002
+ startAngle: -(coord[3] + size[1] / 2),
1003
+ endAngle: -(coord[3] - size[1] / 2)
1004
+ },
1005
+ style: api.style({
1006
+ fill: api.visual('color')
1007
+ })
1008
+ }
1009
+ },
1010
+ data: [[0, 0, 5], [0, 1, 1], [0, 2, 0], [0, 3, 0], [0, 4, 0], [0, 5, 0], [0, 6, 0], [0, 7, 0], [0, 8, 0], [0, 9, 0], [0, 10, 0], [0, 11, 2], [0, 12, 4], [0, 13, 1], [0, 14, 1], [0, 15, 3], [0, 16, 4], [0, 17, 6], [0, 18, 4], [0, 19, 4], [0, 20, 3], [0, 21, 3], [0, 22, 2], [0, 23, 5], [1, 0, 7], [1, 1, 0], [1, 2, 0], [1, 3, 0], [1, 4, 0], [1, 5, 0], [1, 6, 0], [1, 7, 0], [1, 8, 0], [1, 9, 0], [1, 10, 5], [1, 11, 2], [1, 12, 2], [1, 13, 6], [1, 14, 9], [1, 15, 11], [1, 16, 6], [1, 17, 7], [1, 18, 8], [1, 19, 12], [1, 20, 5], [1, 21, 5], [1, 22, 7], [1, 23, 2], [2, 0, 1], [2, 1, 1], [2, 2, 0], [2, 3, 0], [2, 4, 0], [2, 5, 0], [2, 6, 0], [2, 7, 0], [2, 8, 0], [2, 9, 0], [2, 10, 3], [2, 11, 2], [2, 12, 1], [2, 13, 9], [2, 14, 8], [2, 15, 10], [2, 16, 6], [2, 17, 5], [2, 18, 5], [2, 19, 5], [2, 20, 7], [2, 21, 4], [2, 22, 2], [2, 23, 4], [3, 0, 7], [3, 1, 3], [3, 2, 0], [3, 3, 0], [3, 4, 0], [3, 5, 0], [3, 6, 0], [3, 7, 0], [3, 8, 1], [3, 9, 0], [3, 10, 5], [3, 11, 4], [3, 12, 7], [3, 13, 14], [3, 14, 13], [3, 15, 12], [3, 16, 9], [3, 17, 5], [3, 18, 5], [3, 19, 10], [3, 20, 6], [3, 21, 4], [3, 22, 4], [3, 23, 1], [4, 0, 1], [4, 1, 3], [4, 2, 0], [4, 3, 0], [4, 4, 0], [4, 5, 1], [4, 6, 0], [4, 7, 0], [4, 8, 0], [4, 9, 2], [4, 10, 4], [4, 11, 4], [4, 12, 2], [4, 13, 4], [4, 14, 4], [4, 15, 14], [4, 16, 12], [4, 17, 1], [4, 18, 8], [4, 19, 5], [4, 20, 3], [4, 21, 7], [4, 22, 3], [4, 23, 0], [5, 0, 2], [5, 1, 1], [5, 2, 0], [5, 3, 3], [5, 4, 0], [5, 5, 0], [5, 6, 0], [5, 7, 0], [5, 8, 2], [5, 9, 0], [5, 10, 4], [5, 11, 1], [5, 12, 5], [5, 13, 10], [5, 14, 5], [5, 15, 7], [5, 16, 11], [5, 17, 6], [5, 18, 0], [5, 19, 5], [5, 20, 3], [5, 21, 4], [5, 22, 2], [5, 23, 0], [6, 0, 1], [6, 1, 0], [6, 2, 0], [6, 3, 0], [6, 4, 0], [6, 5, 0], [6, 6, 0], [6, 7, 0], [6, 8, 0], [6, 9, 0], [6, 10, 1], [6, 11, 0], [6, 12, 2], [6, 13, 1], [6, 14, 3], [6, 15, 4], [6, 16, 0], [6, 17, 0], [6, 18, 0], [6, 19, 0], [6, 20, 1], [6, 21, 2], [6, 22, 2], [6, 23, 6]]
1011
+ }]
1012
+ },
1013
+ 'options13': {
1014
+ tooltip: {},
1015
+ visualMap: {
1016
+ max: 20,
1017
+ inRange: {
1018
+ color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']
1019
+ }
1020
+ },
1021
+ xAxis3D: {
1022
+ type: 'category',
1023
+ data: ['12a', '1a', '2a', '3a', '4a', '5a', '6a',
1024
+ '7a', '8a', '9a', '10a', '11a',
1025
+ '12p', '1p', '2p', '3p', '4p', '5p',
1026
+ '6p', '7p', '8p', '9p', '10p', '11p']
1027
+ },
1028
+ yAxis3D: {
1029
+ type: 'category',
1030
+ data: ['Saturday', 'Friday', 'Thursday',
1031
+ 'Wednesday', 'Tuesday', 'Monday', 'Sunday']
1032
+ },
1033
+ zAxis3D: {
1034
+ type: 'value'
1035
+ },
1036
+ grid3D: {
1037
+ boxWidth: 200,
1038
+ boxDepth: 80,
1039
+ light: {
1040
+ main: {
1041
+ intensity: 1.2
1042
+ },
1043
+ ambient: {
1044
+ intensity: 0.3
1045
+ }
1046
+ }
1047
+ },
1048
+ series: [{
1049
+ type: 'bar3D',
1050
+ data: [[0, 0, 5], [0, 1, 1], [0, 2, 0], [0, 3, 0], [0, 4, 0], [0, 5, 0], [0, 6, 0], [0, 7, 0], [0, 8, 0], [0, 9, 0], [0, 10, 0], [0, 11, 2], [0, 12, 4], [0, 13, 1], [0, 14, 1], [0, 15, 3], [0, 16, 4], [0, 17, 6], [0, 18, 4], [0, 19, 4], [0, 20, 3], [0, 21, 3], [0, 22, 2], [0, 23, 5], [1, 0, 7], [1, 1, 0], [1, 2, 0], [1, 3, 0], [1, 4, 0], [1, 5, 0], [1, 6, 0], [1, 7, 0], [1, 8, 0], [1, 9, 0], [1, 10, 5], [1, 11, 2], [1, 12, 2], [1, 13, 6], [1, 14, 9], [1, 15, 11], [1, 16, 6], [1, 17, 7], [1, 18, 8], [1, 19, 12], [1, 20, 5], [1, 21, 5], [1, 22, 7], [1, 23, 2], [2, 0, 1], [2, 1, 1], [2, 2, 0], [2, 3, 0], [2, 4, 0], [2, 5, 0], [2, 6, 0], [2, 7, 0], [2, 8, 0], [2, 9, 0], [2, 10, 3], [2, 11, 2], [2, 12, 1], [2, 13, 9], [2, 14, 8], [2, 15, 10], [2, 16, 6], [2, 17, 5], [2, 18, 5], [2, 19, 5], [2, 20, 7], [2, 21, 4], [2, 22, 2], [2, 23, 4], [3, 0, 7], [3, 1, 3], [3, 2, 0], [3, 3, 0], [3, 4, 0], [3, 5, 0], [3, 6, 0], [3, 7, 0], [3, 8, 1], [3, 9, 0], [3, 10, 5], [3, 11, 4], [3, 12, 7], [3, 13, 14], [3, 14, 13], [3, 15, 12], [3, 16, 9], [3, 17, 5], [3, 18, 5], [3, 19, 10], [3, 20, 6], [3, 21, 4], [3, 22, 4], [3, 23, 1], [4, 0, 1], [4, 1, 3], [4, 2, 0], [4, 3, 0], [4, 4, 0], [4, 5, 1], [4, 6, 0], [4, 7, 0], [4, 8, 0], [4, 9, 2], [4, 10, 4], [4, 11, 4], [4, 12, 2], [4, 13, 4], [4, 14, 4], [4, 15, 14], [4, 16, 12], [4, 17, 1], [4, 18, 8], [4, 19, 5], [4, 20, 3], [4, 21, 7], [4, 22, 3], [4, 23, 0], [5, 0, 2], [5, 1, 1], [5, 2, 0], [5, 3, 3], [5, 4, 0], [5, 5, 0], [5, 6, 0], [5, 7, 0], [5, 8, 2], [5, 9, 0], [5, 10, 4], [5, 11, 1], [5, 12, 5], [5, 13, 10], [5, 14, 5], [5, 15, 7], [5, 16, 11], [5, 17, 6], [5, 18, 0], [5, 19, 5], [5, 20, 3], [5, 21, 4], [5, 22, 2], [5, 23, 0], [6, 0, 1], [6, 1, 0], [6, 2, 0], [6, 3, 0], [6, 4, 0], [6, 5, 0], [6, 6, 0], [6, 7, 0], [6, 8, 0], [6, 9, 0], [6, 10, 1], [6, 11, 0], [6, 12, 2], [6, 13, 1], [6, 14, 3], [6, 15, 4], [6, 16, 0], [6, 17, 0], [6, 18, 0], [6, 19, 0], [6, 20, 1], [6, 21, 2], [6, 22, 2], [6, 23, 6]].map(function (item) {
1051
+ return {
1052
+ value: [item[1], item[0], item[2]]
1053
+ }
1054
+ }),
1055
+ shading: 'color',
1056
+ label: {
1057
+ show: false,
1058
+ fontSize: 16,
1059
+ borderWidth: 1
1060
+ },
1061
+ itemStyle: {
1062
+ opacity: 0.4
1063
+ },
1064
+ emphasis: {
1065
+ label: {
1066
+ fontSize: 20,
1067
+ color: '#900'
1068
+ },
1069
+ itemStyle: {
1070
+ color: '#900'
1071
+ }
1072
+ }
1073
+ }]
1074
+ },
1075
+ 'options14': {
1076
+ tooltip: {},
1077
+ backgroundColor: '#fff',
1078
+ visualMap: {
1079
+ show: false,
1080
+ dimension: 2,
1081
+ min: 0,
1082
+ max: 30,
1083
+ inRange: {
1084
+ color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']
1085
+ }
1086
+ },
1087
+ xAxis3D: {
1088
+ type: 'value'
1089
+ },
1090
+ yAxis3D: {
1091
+ type: 'value'
1092
+ },
1093
+ zAxis3D: {
1094
+ type: 'value'
1095
+ },
1096
+ grid3D: {
1097
+ viewControl: {
1098
+ projection: 'orthographic'
1099
+ }
1100
+ },
1101
+ series: [{
1102
+ type: 'line3D',
1103
+ data: (function() {
1104
+ let data = []
1105
+ // Parametric curve
1106
+ for (let t = 0; t < 25; t += 0.001) {
1107
+ let x = (1 + 0.25 * Math.cos(75 * t)) * Math.cos(t)
1108
+ let y = (1 + 0.25 * Math.cos(75 * t)) * Math.sin(t)
1109
+ let z = t + 2.0 * Math.sin(75 * t)
1110
+ data.push([x, y, z])
1111
+ }
1112
+ return data
1113
+ })(),
1114
+ lineStyle: {
1115
+ width: 4
1116
+ }
1117
+ }]
1118
+ },
1119
+ 'options15': {
1120
+ tooltip: {},
1121
+ backgroundColor: '#fff',
1122
+ visualMap: {
1123
+ show: false,
1124
+ dimension: 2,
1125
+ min: -1,
1126
+ max: 1,
1127
+ inRange: {
1128
+ color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']
1129
+ }
1130
+ },
1131
+ xAxis3D: {
1132
+ type: 'value'
1133
+ },
1134
+ yAxis3D: {
1135
+ type: 'value'
1136
+ },
1137
+ zAxis3D: {
1138
+ type: 'value'
1139
+ },
1140
+ grid3D: {
1141
+ },
1142
+ series: [{
1143
+ type: 'surface',
1144
+ wireframe: {
1145
+ },
1146
+ equation: {
1147
+ x: {
1148
+ step: 0.05
1149
+ },
1150
+ y: {
1151
+ step: 0.05
1152
+ },
1153
+ z: function (x, y) {
1154
+ if (Math.abs(x) < 0.1 && Math.abs(y) < 0.1) {
1155
+ return '-'
1156
+ }
1157
+ return Math.sin(x * Math.PI) * Math.sin(y * Math.PI)
1158
+ }
1159
+ }
1160
+ }]
1161
+ },
1162
+ },
1163
+ 'actions': [
1164
+ ],
1165
+ }
1166
+ },
1167
+ }
1168
+ </script>
1169
+
1170
+ <style scoped>
1171
+ </style>