@visactor/vchart-theme-demo-component 0.0.1-alpha.4 → 1.11.1

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 (55) hide show
  1. package/package.json +8 -5
  2. package/cjs/index.d.ts +0 -2
  3. package/cjs/index.js +0 -15
  4. package/cjs/index.js.map +0 -1
  5. package/cjs/interface.d.ts +0 -7
  6. package/cjs/interface.js +0 -6
  7. package/cjs/interface.js.map +0 -1
  8. package/cjs/vchart-chart-hub-theme/chart-list.d.ts +0 -2
  9. package/cjs/vchart-chart-hub-theme/chart-list.js +0 -52
  10. package/cjs/vchart-chart-hub-theme/chart-list.js.map +0 -1
  11. package/cjs/vchart-chart-hub-theme/chartSpec.d.ts +0 -757
  12. package/cjs/vchart-chart-hub-theme/chartSpec.js +0 -1776
  13. package/cjs/vchart-chart-hub-theme/chartSpec.js.map +0 -1
  14. package/cjs/vchart-chart-hub-theme/charts.d.ts +0 -3
  15. package/cjs/vchart-chart-hub-theme/charts.js +0 -40
  16. package/cjs/vchart-chart-hub-theme/charts.js.map +0 -1
  17. package/cjs/vchart-chart-hub-theme/frame.d.ts +0 -4
  18. package/cjs/vchart-chart-hub-theme/frame.js +0 -51
  19. package/cjs/vchart-chart-hub-theme/frame.js.map +0 -1
  20. package/cjs/vchart-chart-hub-theme/index.d.ts +0 -1
  21. package/cjs/vchart-chart-hub-theme/index.js +0 -31
  22. package/cjs/vchart-chart-hub-theme/index.js.map +0 -1
  23. package/cjs/vchart-chart-hub-theme/index.module.less +0 -129
  24. package/cjs/vchart-chart-hub-theme/style/style.css +0 -148
  25. package/cjs/vchart-chart-hub-theme/style/style.d.ts +0 -1
  26. package/cjs/vchart-chart-hub-theme/style/style.js +0 -6
  27. package/cjs/vchart-chart-hub-theme/style/style.js.map +0 -1
  28. package/cjs/vchart-chart-hub-theme/style/style.less +0 -113
  29. package/esm/index.d.ts +0 -2
  30. package/esm/index.js +0 -4
  31. package/esm/index.js.map +0 -1
  32. package/esm/interface.d.ts +0 -7
  33. package/esm/interface.js +0 -2
  34. package/esm/interface.js.map +0 -1
  35. package/esm/vchart-chart-hub-theme/chart-list.d.ts +0 -2
  36. package/esm/vchart-chart-hub-theme/chart-list.js +0 -46
  37. package/esm/vchart-chart-hub-theme/chart-list.js.map +0 -1
  38. package/esm/vchart-chart-hub-theme/chartSpec.d.ts +0 -757
  39. package/esm/vchart-chart-hub-theme/chartSpec.js +0 -1801
  40. package/esm/vchart-chart-hub-theme/chartSpec.js.map +0 -1
  41. package/esm/vchart-chart-hub-theme/charts.d.ts +0 -3
  42. package/esm/vchart-chart-hub-theme/charts.js +0 -43
  43. package/esm/vchart-chart-hub-theme/charts.js.map +0 -1
  44. package/esm/vchart-chart-hub-theme/frame.d.ts +0 -4
  45. package/esm/vchart-chart-hub-theme/frame.js +0 -45
  46. package/esm/vchart-chart-hub-theme/frame.js.map +0 -1
  47. package/esm/vchart-chart-hub-theme/index.d.ts +0 -1
  48. package/esm/vchart-chart-hub-theme/index.js +0 -4
  49. package/esm/vchart-chart-hub-theme/index.js.map +0 -1
  50. package/esm/vchart-chart-hub-theme/index.module.less +0 -129
  51. package/esm/vchart-chart-hub-theme/style/style.css +0 -148
  52. package/esm/vchart-chart-hub-theme/style/style.d.ts +0 -1
  53. package/esm/vchart-chart-hub-theme/style/style.js +0 -2
  54. package/esm/vchart-chart-hub-theme/style/style.js.map +0 -1
  55. package/esm/vchart-chart-hub-theme/style/style.less +0 -113
@@ -1,1801 +0,0 @@
1
- export const barSpec = {
2
- type: "bar",
3
- data: {
4
- values: [ {
5
- type: "Autocracies",
6
- year: "1930",
7
- value: 129
8
- }, {
9
- type: "Autocracies",
10
- year: "1940",
11
- value: 133
12
- }, {
13
- type: "Autocracies",
14
- year: "1950",
15
- value: 130
16
- }, {
17
- type: "Autocracies",
18
- year: "1960",
19
- value: 126
20
- }, {
21
- type: "Autocracies",
22
- year: "1970",
23
- value: 117
24
- }, {
25
- type: "Autocracies",
26
- year: "1980",
27
- value: 114
28
- }, {
29
- type: "Autocracies",
30
- year: "1990",
31
- value: 111
32
- }, {
33
- type: "Autocracies",
34
- year: "2000",
35
- value: 89
36
- }, {
37
- type: "Autocracies",
38
- year: "2010",
39
- value: 80
40
- }, {
41
- type: "Autocracies",
42
- year: "2018",
43
- value: 80
44
- } ]
45
- },
46
- height: 500,
47
- xField: [ "year", "type" ],
48
- yField: "value",
49
- seriesField: "type",
50
- axes: [ {
51
- orient: "bottom",
52
- visible: !0,
53
- domainLine: {
54
- visible: !0
55
- },
56
- tick: {
57
- visible: !0
58
- }
59
- }, {
60
- orient: "left",
61
- visible: !0,
62
- domainLine: {
63
- visible: !1
64
- },
65
- tick: {
66
- visible: !1
67
- }
68
- } ],
69
- legends: {
70
- visible: !0
71
- },
72
- indicator: {
73
- visible: !0
74
- }
75
- };
76
-
77
- export const barGroupSpec = {
78
- type: "bar",
79
- data: {
80
- values: [ {
81
- type: "Autocracies",
82
- year: "1930",
83
- value: 129
84
- }, {
85
- type: "Autocracies",
86
- year: "1940",
87
- value: 133
88
- }, {
89
- type: "Autocracies",
90
- year: "1950",
91
- value: 130
92
- }, {
93
- type: "Autocracies",
94
- year: "1960",
95
- value: 126
96
- }, {
97
- type: "Autocracies",
98
- year: "1970",
99
- value: 117
100
- }, {
101
- type: "Autocracies",
102
- year: "1980",
103
- value: 114
104
- }, {
105
- type: "Autocracies",
106
- year: "1990",
107
- value: 111
108
- }, {
109
- type: "Autocracies",
110
- year: "2000",
111
- value: 89
112
- }, {
113
- type: "Autocracies",
114
- year: "2010",
115
- value: 80
116
- }, {
117
- type: "Autocracies",
118
- year: "2018",
119
- value: 80
120
- }, {
121
- type: "Democracies",
122
- year: "1930",
123
- value: 22
124
- }, {
125
- type: "Democracies",
126
- year: "1940",
127
- value: 13
128
- }, {
129
- type: "Democracies",
130
- year: "1950",
131
- value: 25
132
- }, {
133
- type: "Democracies",
134
- year: "1960",
135
- value: 29
136
- }, {
137
- type: "Democracies",
138
- year: "1970",
139
- value: 38
140
- }, {
141
- type: "Democracies",
142
- year: "1980",
143
- value: 41
144
- }, {
145
- type: "Democracies",
146
- year: "1990",
147
- value: 57
148
- }, {
149
- type: "Democracies",
150
- year: "2000",
151
- value: 87
152
- }, {
153
- type: "Democracies",
154
- year: "2010",
155
- value: 98
156
- }, {
157
- type: "Democracies",
158
- year: "2018",
159
- value: 99
160
- }, {
161
- type: "Price",
162
- year: "1930",
163
- value: 56
164
- }, {
165
- type: "Price",
166
- year: "1940",
167
- value: 122
168
- }, {
169
- type: "Price",
170
- year: "1950",
171
- value: 72
172
- }, {
173
- type: "Price",
174
- year: "1960",
175
- value: 82
176
- }, {
177
- type: "Price",
178
- year: "1970",
179
- value: 67
180
- }, {
181
- type: "Price",
182
- year: "1980",
183
- value: 89
184
- }, {
185
- type: "Price",
186
- year: "1990",
187
- value: 60
188
- }, {
189
- type: "Price",
190
- year: "2000",
191
- value: 123
192
- }, {
193
- type: "Price",
194
- year: "2010",
195
- value: 111
196
- }, {
197
- type: "Price",
198
- year: "2018",
199
- value: 99
200
- } ]
201
- },
202
- height: 500,
203
- xField: [ "year", "type" ],
204
- yField: "value",
205
- seriesField: "type",
206
- axes: [ {
207
- orient: "bottom",
208
- visible: !0,
209
- domainLine: {
210
- visible: !0
211
- },
212
- tick: {
213
- visible: !0
214
- }
215
- }, {
216
- orient: "left",
217
- visible: !0,
218
- domainLine: {
219
- visible: !1
220
- },
221
- tick: {
222
- visible: !1
223
- }
224
- } ],
225
- legends: {
226
- visible: !0
227
- }
228
- };
229
-
230
- export const barGroupHorizontalSpec = {
231
- type: "bar",
232
- data: {
233
- values: [ {
234
- type: "Autocracies",
235
- year: "1930",
236
- value: 129
237
- }, {
238
- type: "Autocracies",
239
- year: "1940",
240
- value: 133
241
- }, {
242
- type: "Autocracies",
243
- year: "1950",
244
- value: 130
245
- }, {
246
- type: "Autocracies",
247
- year: "1960",
248
- value: 126
249
- }, {
250
- type: "Autocracies",
251
- year: "1970",
252
- value: 117
253
- }, {
254
- type: "Autocracies",
255
- year: "1980",
256
- value: 114
257
- }, {
258
- type: "Autocracies",
259
- year: "1990",
260
- value: 111
261
- }, {
262
- type: "Democracies",
263
- year: "1930",
264
- value: 22
265
- }, {
266
- type: "Democracies",
267
- year: "1940",
268
- value: 13
269
- }, {
270
- type: "Democracies",
271
- year: "1950",
272
- value: 25
273
- }, {
274
- type: "Democracies",
275
- year: "1960",
276
- value: 29
277
- }, {
278
- type: "Democracies",
279
- year: "1970",
280
- value: 38
281
- }, {
282
- type: "Democracies",
283
- year: "1980",
284
- value: 41
285
- }, {
286
- type: "Democracies",
287
- year: "1990",
288
- value: 57
289
- } ]
290
- },
291
- height: 500,
292
- direction: "horizontal",
293
- xField: "value",
294
- yField: [ "year", "type" ],
295
- seriesField: "type",
296
- axes: [ {
297
- orient: "left",
298
- visible: !0,
299
- domainLine: {
300
- visible: !0
301
- },
302
- tick: {
303
- visible: !0
304
- }
305
- }, {
306
- orient: "bottom",
307
- visible: !0,
308
- domainLine: {
309
- visible: !1
310
- },
311
- tick: {
312
- visible: !1
313
- }
314
- } ],
315
- legends: {
316
- visible: !0
317
- }
318
- };
319
-
320
- export const barStackedSpec = {
321
- type: "bar",
322
- data: {
323
- values: [ {
324
- type: "Autocracies",
325
- year: "1930",
326
- value: 129
327
- }, {
328
- type: "Autocracies",
329
- year: "1940",
330
- value: 133
331
- }, {
332
- type: "Autocracies",
333
- year: "1950",
334
- value: 130
335
- }, {
336
- type: "Autocracies",
337
- year: "1960",
338
- value: 126
339
- }, {
340
- type: "Autocracies",
341
- year: "1970",
342
- value: 117
343
- }, {
344
- type: "Autocracies",
345
- year: "1980",
346
- value: 114
347
- }, {
348
- type: "Autocracies",
349
- year: "1990",
350
- value: 111
351
- }, {
352
- type: "Autocracies",
353
- year: "2000",
354
- value: 89
355
- }, {
356
- type: "Autocracies",
357
- year: "2010",
358
- value: 80
359
- }, {
360
- type: "Autocracies",
361
- year: "2018",
362
- value: 80
363
- }, {
364
- type: "Democracies",
365
- year: "1930",
366
- value: 22
367
- }, {
368
- type: "Democracies",
369
- year: "1940",
370
- value: 13
371
- }, {
372
- type: "Democracies",
373
- year: "1950",
374
- value: 25
375
- }, {
376
- type: "Democracies",
377
- year: "1960",
378
- value: 29
379
- }, {
380
- type: "Democracies",
381
- year: "1970",
382
- value: 38
383
- }, {
384
- type: "Democracies",
385
- year: "1980",
386
- value: 41
387
- }, {
388
- type: "Democracies",
389
- year: "1990",
390
- value: 57
391
- }, {
392
- type: "Democracies",
393
- year: "2000",
394
- value: 87
395
- }, {
396
- type: "Democracies",
397
- year: "2010",
398
- value: 98
399
- }, {
400
- type: "Democracies",
401
- year: "2018",
402
- value: 99
403
- }, {
404
- type: "Price",
405
- year: "1930",
406
- value: 56
407
- }, {
408
- type: "Price",
409
- year: "1940",
410
- value: 122
411
- }, {
412
- type: "Price",
413
- year: "1950",
414
- value: 72
415
- }, {
416
- type: "Price",
417
- year: "1960",
418
- value: 82
419
- }, {
420
- type: "Price",
421
- year: "1970",
422
- value: 67
423
- }, {
424
- type: "Price",
425
- year: "1980",
426
- value: 89
427
- }, {
428
- type: "Price",
429
- year: "1990",
430
- value: 60
431
- }, {
432
- type: "Price",
433
- year: "2000",
434
- value: 123
435
- }, {
436
- type: "Price",
437
- year: "2010",
438
- value: 111
439
- }, {
440
- type: "Price",
441
- year: "2018",
442
- value: 99
443
- } ]
444
- },
445
- height: 500,
446
- xField: "year",
447
- yField: "value",
448
- seriesField: "type",
449
- axes: [ {
450
- orient: "bottom",
451
- visible: !0,
452
- domainLine: {
453
- visible: !0
454
- },
455
- tick: {
456
- visible: !0
457
- }
458
- }, {
459
- orient: "left",
460
- visible: !0,
461
- domainLine: {
462
- visible: !1
463
- },
464
- tick: {
465
- visible: !1
466
- }
467
- } ],
468
- legends: {
469
- visible: !0
470
- },
471
- indicator: {
472
- visible: !0
473
- }
474
- };
475
-
476
- export const barStackedHorizontalSpec = {
477
- type: "bar",
478
- data: {
479
- values: [ {
480
- type: "Autocracies",
481
- year: "1930",
482
- value: 129
483
- }, {
484
- type: "Autocracies",
485
- year: "1940",
486
- value: 133
487
- }, {
488
- type: "Autocracies",
489
- year: "1950",
490
- value: 130
491
- }, {
492
- type: "Autocracies",
493
- year: "1960",
494
- value: 126
495
- }, {
496
- type: "Autocracies",
497
- year: "1970",
498
- value: 117
499
- }, {
500
- type: "Autocracies",
501
- year: "1980",
502
- value: 114
503
- }, {
504
- type: "Autocracies",
505
- year: "1990",
506
- value: 111
507
- }, {
508
- type: "Democracies",
509
- year: "1930",
510
- value: 22
511
- }, {
512
- type: "Democracies",
513
- year: "1940",
514
- value: 13
515
- }, {
516
- type: "Democracies",
517
- year: "1950",
518
- value: 25
519
- }, {
520
- type: "Democracies",
521
- year: "1960",
522
- value: 29
523
- }, {
524
- type: "Democracies",
525
- year: "1970",
526
- value: 38
527
- }, {
528
- type: "Democracies",
529
- year: "1980",
530
- value: 41
531
- }, {
532
- type: "Democracies",
533
- year: "1990",
534
- value: 57
535
- }, {
536
- type: "Price",
537
- year: "1930",
538
- value: 56
539
- }, {
540
- type: "Price",
541
- year: "1940",
542
- value: 122
543
- }, {
544
- type: "Price",
545
- year: "1950",
546
- value: 72
547
- }, {
548
- type: "Price",
549
- year: "1960",
550
- value: 82
551
- }, {
552
- type: "Price",
553
- year: "1970",
554
- value: 67
555
- }, {
556
- type: "Price",
557
- year: "1980",
558
- value: 89
559
- }, {
560
- type: "Price",
561
- year: "1990",
562
- value: 60
563
- }, {
564
- type: "D",
565
- year: "1930",
566
- value: 56
567
- }, {
568
- type: "D",
569
- year: "1940",
570
- value: 122
571
- }, {
572
- type: "D",
573
- year: "1950",
574
- value: 72
575
- }, {
576
- type: "D",
577
- year: "1960",
578
- value: 82
579
- }, {
580
- type: "D",
581
- year: "1970",
582
- value: 67
583
- }, {
584
- type: "D",
585
- year: "1980",
586
- value: 89
587
- }, {
588
- type: "D",
589
- year: "1990",
590
- value: 60
591
- }, {
592
- type: "E",
593
- year: "1930",
594
- value: 56
595
- }, {
596
- type: "E",
597
- year: "1940",
598
- value: 122
599
- }, {
600
- type: "E",
601
- year: "1950",
602
- value: 72
603
- }, {
604
- type: "E",
605
- year: "1960",
606
- value: 82
607
- }, {
608
- type: "E",
609
- year: "1970",
610
- value: 67
611
- }, {
612
- type: "E",
613
- year: "1980",
614
- value: 89
615
- }, {
616
- type: "E",
617
- year: "1990",
618
- value: 60
619
- } ]
620
- },
621
- height: 500,
622
- direction: "horizontal",
623
- xField: "value",
624
- yField: "year",
625
- seriesField: "type",
626
- axes: [ {
627
- orient: "left",
628
- visible: !0,
629
- domainLine: {
630
- visible: !0
631
- },
632
- tick: {
633
- visible: !0
634
- }
635
- }, {
636
- orient: "bottom",
637
- visible: !0,
638
- domainLine: {
639
- visible: !1
640
- },
641
- tick: {
642
- visible: !1
643
- }
644
- } ],
645
- legends: {
646
- visible: !0
647
- },
648
- indicator: {
649
- visible: !0
650
- }
651
- };
652
-
653
- export const barStackedPercentSpec = {
654
- type: "bar",
655
- stack: !0,
656
- percent: !0,
657
- data: {
658
- values: [ {
659
- type: "Autocracies",
660
- year: "1930",
661
- value: 129
662
- }, {
663
- type: "Autocracies",
664
- year: "1940",
665
- value: 133
666
- }, {
667
- type: "Autocracies",
668
- year: "1950",
669
- value: 130
670
- }, {
671
- type: "Autocracies",
672
- year: "1960",
673
- value: 126
674
- }, {
675
- type: "Autocracies",
676
- year: "1970",
677
- value: 117
678
- }, {
679
- type: "Autocracies",
680
- year: "1980",
681
- value: 114
682
- }, {
683
- type: "Autocracies",
684
- year: "1990",
685
- value: 111
686
- }, {
687
- type: "Autocracies",
688
- year: "2000",
689
- value: 89
690
- }, {
691
- type: "Autocracies",
692
- year: "2010",
693
- value: 80
694
- }, {
695
- type: "Autocracies",
696
- year: "2018",
697
- value: 80
698
- }, {
699
- type: "Democracies",
700
- year: "1930",
701
- value: 22
702
- }, {
703
- type: "Democracies",
704
- year: "1940",
705
- value: 13
706
- }, {
707
- type: "Democracies",
708
- year: "1950",
709
- value: 25
710
- }, {
711
- type: "Democracies",
712
- year: "1960",
713
- value: 29
714
- }, {
715
- type: "Democracies",
716
- year: "1970",
717
- value: 38
718
- }, {
719
- type: "Democracies",
720
- year: "1980",
721
- value: 41
722
- }, {
723
- type: "Democracies",
724
- year: "1990",
725
- value: 57
726
- }, {
727
- type: "Democracies",
728
- year: "2000",
729
- value: 87
730
- }, {
731
- type: "Democracies",
732
- year: "2010",
733
- value: 98
734
- }, {
735
- type: "Democracies",
736
- year: "2018",
737
- value: 99
738
- }, {
739
- type: "Price",
740
- year: "1930",
741
- value: 56
742
- }, {
743
- type: "Price",
744
- year: "1940",
745
- value: 122
746
- }, {
747
- type: "Price",
748
- year: "1950",
749
- value: 72
750
- }, {
751
- type: "Price",
752
- year: "1960",
753
- value: 82
754
- }, {
755
- type: "Price",
756
- year: "1970",
757
- value: 67
758
- }, {
759
- type: "Price",
760
- year: "1980",
761
- value: 89
762
- }, {
763
- type: "Price",
764
- year: "1990",
765
- value: 60
766
- }, {
767
- type: "Price",
768
- year: "2000",
769
- value: 123
770
- }, {
771
- type: "Price",
772
- year: "2010",
773
- value: 111
774
- }, {
775
- type: "Price",
776
- year: "2018",
777
- value: 99
778
- } ]
779
- },
780
- height: 500,
781
- xField: "year",
782
- yField: "value",
783
- seriesField: "type",
784
- axes: [ {
785
- orient: "bottom",
786
- visible: !0,
787
- domainLine: {
788
- visible: !0
789
- },
790
- tick: {
791
- visible: !0
792
- }
793
- }, {
794
- orient: "left",
795
- visible: !0,
796
- domainLine: {
797
- visible: !1
798
- },
799
- tick: {
800
- visible: !1
801
- }
802
- } ],
803
- legends: {
804
- visible: !0
805
- },
806
- label: {
807
- visible: !1
808
- }
809
- };
810
-
811
- export const lineSpec = {
812
- type: "line",
813
- data: {
814
- values: [ {
815
- type: "Nail polish",
816
- country: "Africa",
817
- value: 4229
818
- }, {
819
- type: "Nail polish",
820
- country: "China",
821
- value: 3054
822
- }, {
823
- type: "Nail polish",
824
- country: "USA",
825
- value: 12814
826
- }, {
827
- type: "Eyebrow pencil",
828
- country: "Africa",
829
- value: 3932
830
- }, {
831
- type: "Eyebrow pencil",
832
- country: "China",
833
- value: 5067
834
- }, {
835
- type: "Eyebrow pencil",
836
- country: "USA",
837
- value: 13012
838
- }, {
839
- type: "Rouge",
840
- country: "Africa",
841
- value: 5221
842
- }, {
843
- type: "Rouge",
844
- country: "China",
845
- value: 7004
846
- }, {
847
- type: "Rouge",
848
- country: "USA",
849
- value: 11624
850
- }, {
851
- type: "Lipstick",
852
- country: "Africa",
853
- value: 9256
854
- }, {
855
- type: "Lipstick",
856
- country: "China",
857
- value: 9054
858
- }, {
859
- type: "Lipstick",
860
- country: "USA",
861
- value: 8814
862
- }, {
863
- type: "Eyeshadows",
864
- country: "Africa",
865
- value: 3308
866
- }, {
867
- type: "Eyeshadows",
868
- country: "China",
869
- value: 12043
870
- }, {
871
- type: "Eyeshadows",
872
- country: "USA",
873
- value: 12998
874
- }, {
875
- type: "Eyeliner",
876
- country: "Africa",
877
- value: 5432
878
- }, {
879
- type: "Eyeliner",
880
- country: "China",
881
- value: 15067
882
- }, {
883
- type: "Eyeliner",
884
- country: "USA",
885
- value: 12321
886
- }, {
887
- type: "Foundation",
888
- country: "Africa",
889
- value: 13701
890
- }, {
891
- type: "Foundation",
892
- country: "China",
893
- value: 10119
894
- }, {
895
- type: "Foundation",
896
- country: "USA",
897
- value: 10342
898
- }, {
899
- type: "Lip gloss",
900
- country: "Africa",
901
- value: 4008
902
- }, {
903
- type: "Lip gloss",
904
- country: "China",
905
- value: 12043
906
- }, {
907
- type: "Lip gloss",
908
- country: "USA",
909
- value: 22998
910
- }, {
911
- type: "Mascara",
912
- country: "Africa",
913
- value: 18712
914
- }, {
915
- type: "Mascara",
916
- country: "China",
917
- value: 10419
918
- }, {
919
- type: "Mascara",
920
- country: "USA",
921
- value: 11261
922
- } ]
923
- },
924
- height: 600,
925
- xField: [ "type" ],
926
- yField: "value",
927
- seriesField: "country",
928
- legends: {
929
- visible: !0
930
- },
931
- point: {
932
- state: {
933
- dimension_hover: {
934
- visible: !0,
935
- size: 12
936
- }
937
- }
938
- },
939
- line: {
940
- state: {
941
- active: {
942
- lineWidth: 3
943
- }
944
- }
945
- },
946
- interactions: [ {
947
- type: "element-active-by-legend",
948
- state: "active"
949
- } ],
950
- crosshair: {
951
- xField: {
952
- line: {
953
- type: "line",
954
- style: {
955
- lineWidth: 1
956
- }
957
- }
958
- }
959
- }
960
- };
961
-
962
- export const ringSpec = {
963
- type: "pie",
964
- data: [ {
965
- id: "id0",
966
- values: [ {
967
- type: "Category 1",
968
- value: "0.38"
969
- }, {
970
- type: "Category 2",
971
- value: "0.26"
972
- }, {
973
- type: "Category 3",
974
- value: "0.36"
975
- } ]
976
- } ],
977
- valueField: "value",
978
- categoryField: "type",
979
- legends: {
980
- visible: !0,
981
- orient: "bottom"
982
- },
983
- interactions: [ {
984
- type: "element-active-by-legend",
985
- state: "active"
986
- } ],
987
- pie: {
988
- state: {
989
- active: {
990
- lineWidth: 0
991
- }
992
- }
993
- },
994
- label: {
995
- formatMethod: (value, data) => ({
996
- type: "rich",
997
- text: [ {
998
- text: `${data.value}\n`,
999
- fontSize: 18,
1000
- fontWeight: "bold",
1001
- fill: "black"
1002
- }, {
1003
- text: data.type,
1004
- fill: "#595959"
1005
- } ]
1006
- })
1007
- },
1008
- indicator: {
1009
- visible: !0,
1010
- trigger: "none",
1011
- title: {
1012
- visible: !0,
1013
- style: {
1014
- text: "饼图",
1015
- fontSize: 30
1016
- }
1017
- }
1018
- }
1019
- };
1020
-
1021
- export const pieSpec = {
1022
- type: "pie",
1023
- innerRadius: 0,
1024
- data: [ {
1025
- id: "id0",
1026
- values: [ {
1027
- type: "Category 1",
1028
- value: "0.38"
1029
- }, {
1030
- type: "Category 2",
1031
- value: "0.26"
1032
- }, {
1033
- type: "Category 3",
1034
- value: "0.36"
1035
- } ]
1036
- } ],
1037
- valueField: "value",
1038
- categoryField: "type",
1039
- legends: {
1040
- visible: !0,
1041
- orient: "bottom"
1042
- },
1043
- interactions: [ {
1044
- type: "element-active-by-legend",
1045
- state: "active"
1046
- } ],
1047
- pie: {
1048
- state: {
1049
- active: {
1050
- lineWidth: 0
1051
- }
1052
- }
1053
- },
1054
- label: {
1055
- formatMethod: (value, data) => ({
1056
- type: "rich",
1057
- text: [ {
1058
- text: `${data.value}\n`,
1059
- fontSize: 18,
1060
- fontWeight: "bold",
1061
- fill: "black"
1062
- }, {
1063
- text: data.type,
1064
- fill: "#595959"
1065
- } ]
1066
- })
1067
- }
1068
- };
1069
-
1070
- export const radarSpec = {
1071
- type: "radar",
1072
- data: [ {
1073
- id: "radarData",
1074
- values: [ {
1075
- key: "Strength",
1076
- value: 6,
1077
- type: "Risk"
1078
- }, {
1079
- key: "Speed",
1080
- value: 5,
1081
- type: "Risk"
1082
- }, {
1083
- key: "Shooting",
1084
- value: 3,
1085
- type: "Risk"
1086
- }, {
1087
- key: "Endurance",
1088
- value: 4,
1089
- type: "Risk"
1090
- }, {
1091
- key: "Precision",
1092
- value: 5,
1093
- type: "Risk"
1094
- }, {
1095
- key: "Strength",
1096
- value: 5,
1097
- type: "Average risk"
1098
- }, {
1099
- key: "Speed",
1100
- value: 5,
1101
- type: "Average risk"
1102
- }, {
1103
- key: "Shooting",
1104
- value: 5,
1105
- type: "Average risk"
1106
- }, {
1107
- key: "Endurance",
1108
- value: 5,
1109
- type: "Average risk"
1110
- }, {
1111
- key: "Precision",
1112
- value: 5,
1113
- type: "Average risk"
1114
- } ]
1115
- } ],
1116
- categoryField: "key",
1117
- valueField: "value",
1118
- seriesField: "type",
1119
- point: {
1120
- state: {
1121
- dimension_hover: {
1122
- visible: !0,
1123
- size: 6
1124
- }
1125
- }
1126
- },
1127
- line: {
1128
- state: {
1129
- active: {
1130
- lineWidth: 2
1131
- }
1132
- }
1133
- },
1134
- area: {
1135
- visible: !0,
1136
- state: {
1137
- active: {
1138
- fillOpacity: 0
1139
- }
1140
- }
1141
- },
1142
- crosshair: {
1143
- categoryField: {
1144
- line: {
1145
- style: {
1146
- lineWidth: 1
1147
- }
1148
- }
1149
- }
1150
- },
1151
- legends: {
1152
- visible: !0
1153
- },
1154
- outerRadius: .8,
1155
- interactions: [ {
1156
- type: "element-active-by-legend",
1157
- state: "active"
1158
- } ],
1159
- axes: [ {
1160
- orient: "radius",
1161
- zIndex: 100,
1162
- min: 0,
1163
- max: 8,
1164
- grid: {
1165
- smooth: !1
1166
- },
1167
- label: {
1168
- visible: !0
1169
- }
1170
- }, {
1171
- orient: "angle",
1172
- zIndex: 50,
1173
- grid: {
1174
- smooth: !1
1175
- },
1176
- domainLine: {
1177
- visible: !1
1178
- }
1179
- } ]
1180
- };
1181
-
1182
- export const funnelSpec = {
1183
- type: "funnel",
1184
- categoryField: "name",
1185
- valueField: "value",
1186
- data: [ {
1187
- id: "funnel",
1188
- values: [ {
1189
- value: 100,
1190
- name: "Step1"
1191
- }, {
1192
- value: 80,
1193
- name: "Step2"
1194
- }, {
1195
- value: 60,
1196
- name: "Step3"
1197
- }, {
1198
- value: 40,
1199
- name: "Step4"
1200
- }, {
1201
- value: 20,
1202
- name: "Step5"
1203
- } ]
1204
- } ],
1205
- label: {
1206
- visible: !0
1207
- },
1208
- legends: {
1209
- visible: !0,
1210
- orient: "bottom"
1211
- }
1212
- };
1213
-
1214
- export const areaSpec = {
1215
- type: "area",
1216
- seriesMark: "line",
1217
- data: {
1218
- values: [ {
1219
- type: "Nail polish",
1220
- country: "Africa",
1221
- value: 4229
1222
- }, {
1223
- type: "Nail polish",
1224
- country: "China",
1225
- value: 3054
1226
- }, {
1227
- type: "Nail polish",
1228
- country: "USA",
1229
- value: 12814
1230
- }, {
1231
- type: "Eyebrow pencil",
1232
- country: "Africa",
1233
- value: 3932
1234
- }, {
1235
- type: "Eyebrow pencil",
1236
- country: "China",
1237
- value: 5067
1238
- }, {
1239
- type: "Eyebrow pencil",
1240
- country: "USA",
1241
- value: 13012
1242
- }, {
1243
- type: "Rouge",
1244
- country: "Africa",
1245
- value: 5221
1246
- }, {
1247
- type: "Rouge",
1248
- country: "China",
1249
- value: 7004
1250
- }, {
1251
- type: "Rouge",
1252
- country: "USA",
1253
- value: 11624
1254
- }, {
1255
- type: "Lipstick",
1256
- country: "Africa",
1257
- value: 9256
1258
- }, {
1259
- type: "Lipstick",
1260
- country: "China",
1261
- value: 9054
1262
- }, {
1263
- type: "Lipstick",
1264
- country: "USA",
1265
- value: 8814
1266
- }, {
1267
- type: "Eyeshadows",
1268
- country: "Africa",
1269
- value: 3308
1270
- }, {
1271
- type: "Eyeshadows",
1272
- country: "China",
1273
- value: 12043
1274
- }, {
1275
- type: "Eyeshadows",
1276
- country: "USA",
1277
- value: 12998
1278
- }, {
1279
- type: "Eyeliner",
1280
- country: "Africa",
1281
- value: 5432
1282
- }, {
1283
- type: "Eyeliner",
1284
- country: "China",
1285
- value: 15067
1286
- }, {
1287
- type: "Eyeliner",
1288
- country: "USA",
1289
- value: 12321
1290
- }, {
1291
- type: "Foundation",
1292
- country: "Africa",
1293
- value: 13701
1294
- }, {
1295
- type: "Foundation",
1296
- country: "China",
1297
- value: 10119
1298
- }, {
1299
- type: "Foundation",
1300
- country: "USA",
1301
- value: 10342
1302
- }, {
1303
- type: "Lip gloss",
1304
- country: "Africa",
1305
- value: 4008
1306
- }, {
1307
- type: "Lip gloss",
1308
- country: "China",
1309
- value: 12043
1310
- }, {
1311
- type: "Lip gloss",
1312
- country: "USA",
1313
- value: 22998
1314
- }, {
1315
- type: "Mascara",
1316
- country: "Africa",
1317
- value: 18712
1318
- }, {
1319
- type: "Mascara",
1320
- country: "China",
1321
- value: 10419
1322
- }, {
1323
- type: "Mascara",
1324
- country: "USA",
1325
- value: 11261
1326
- } ]
1327
- },
1328
- height: 600,
1329
- xField: [ "type" ],
1330
- yField: "value",
1331
- seriesField: "country",
1332
- legends: {
1333
- visible: !0
1334
- },
1335
- line: {
1336
- style: {
1337
- curveType: "linear"
1338
- }
1339
- },
1340
- point: {
1341
- state: {
1342
- dimension_hover: {
1343
- visible: !0,
1344
- size: 12
1345
- }
1346
- }
1347
- },
1348
- crosshair: {
1349
- xField: {
1350
- line: {
1351
- type: "line",
1352
- style: {
1353
- lineWidth: 1
1354
- }
1355
- }
1356
- }
1357
- },
1358
- stack: !1
1359
- };
1360
-
1361
- export const gaugeSpec = {
1362
- type: "gauge",
1363
- data: [ {
1364
- id: "id0",
1365
- values: [ {
1366
- type: "目标A",
1367
- value: 45
1368
- } ]
1369
- } ],
1370
- categoryField: "type",
1371
- valueField: "value",
1372
- outerRadius: .8,
1373
- innerRadius: .7,
1374
- startAngle: -180,
1375
- endAngle: 0,
1376
- indicator: [ {
1377
- visible: !0,
1378
- title: {
1379
- style: {
1380
- text: "45",
1381
- fontSize: 60,
1382
- fontWeight: 800
1383
- }
1384
- }
1385
- } ],
1386
- axes: [ {
1387
- type: "linear",
1388
- orient: "angle",
1389
- min: 0,
1390
- max: 50,
1391
- offset: 20,
1392
- radius: .81,
1393
- grid: {
1394
- visible: !1
1395
- },
1396
- tick: {
1397
- visible: !0,
1398
- tickSize: 5,
1399
- style: {
1400
- lineWidth: 1
1401
- }
1402
- },
1403
- subTick: {
1404
- visible: !0,
1405
- tickSize: 3,
1406
- style: {
1407
- lineWidth: 1
1408
- }
1409
- },
1410
- label: {
1411
- visible: !0,
1412
- style: {
1413
- fill: "black",
1414
- fontSize: 12
1415
- }
1416
- }
1417
- } ]
1418
- };
1419
-
1420
- export const horizontalBarSpec = {
1421
- type: "bar",
1422
- data: [ {
1423
- id: "barData",
1424
- values: [ {
1425
- province: "北京",
1426
- value: 3080,
1427
- type: "top1"
1428
- }, {
1429
- province: "天津",
1430
- value: 2880,
1431
- type: "top2"
1432
- }, {
1433
- province: "重庆",
1434
- value: 880,
1435
- type: "top3"
1436
- }, {
1437
- province: "深圳",
1438
- value: 780,
1439
- type: "common"
1440
- }, {
1441
- province: "广州",
1442
- value: 680,
1443
- type: "common"
1444
- }, {
1445
- province: "山东",
1446
- value: 580,
1447
- type: "common"
1448
- }, {
1449
- province: "浙江",
1450
- value: 480,
1451
- type: "common"
1452
- }, {
1453
- province: "福建",
1454
- value: 100,
1455
- type: "common"
1456
- }, {
1457
- province: "石家庄",
1458
- value: 100,
1459
- type: "common"
1460
- }, {
1461
- province: "广西壮族自治区",
1462
- value: 100,
1463
- type: "common"
1464
- } ]
1465
- } ],
1466
- direction: "horizontal",
1467
- xField: "value",
1468
- yField: "province",
1469
- seriesField: "province",
1470
- padding: {
1471
- right: 50,
1472
- left: 10
1473
- },
1474
- axes: [ {
1475
- orient: "bottom",
1476
- visible: !1,
1477
- nice: !1
1478
- }, {
1479
- orient: "left",
1480
- maxWidth: 65,
1481
- label: {
1482
- autoLimit: !0
1483
- },
1484
- domainLine: {
1485
- visible: !1
1486
- },
1487
- tick: {
1488
- visible: !1
1489
- }
1490
- } ],
1491
- stackCornerRadius: 0,
1492
- bar: {
1493
- style: {
1494
- cornerRadius: [ 5, 5, 5, 5 ],
1495
- height: 10
1496
- }
1497
- },
1498
- barBackground: {
1499
- visible: !0,
1500
- style: {
1501
- cornerRadius: [ 5, 5, 5, 5 ],
1502
- height: 10
1503
- },
1504
- state: {
1505
- hover: {
1506
- stroke: "#D9D9D9",
1507
- lineWidth: 1
1508
- }
1509
- }
1510
- },
1511
- extensionMark: [ {
1512
- type: "text",
1513
- dataId: "barData",
1514
- visible: !0,
1515
- style: {
1516
- text: datum => datum.value,
1517
- fontSize: 12,
1518
- x: (datum, ctx) => ctx.getRegion().getLayoutRect().width + 10,
1519
- y: (datum, ctx) => ctx.valueToY([ datum.province ]) + ctx.yBandwidth() / 2,
1520
- textBaseline: "middle",
1521
- textAlign: "left",
1522
- fill: "#595959",
1523
- size: 20
1524
- }
1525
- } ],
1526
- crosshair: {
1527
- yField: {
1528
- visible: !1
1529
- }
1530
- },
1531
- tooltip: {
1532
- mark: {
1533
- title: {
1534
- visible: !1
1535
- }
1536
- },
1537
- dimension: {
1538
- title: {
1539
- visible: !1
1540
- }
1541
- },
1542
- style: {
1543
- shape: {
1544
- shapeType: "circle"
1545
- }
1546
- }
1547
- }
1548
- };
1549
-
1550
- export const scatterSpec = {
1551
- type: "scatter",
1552
- data: [ {
1553
- id: "barData",
1554
- values: [ {
1555
- gender: "female",
1556
- height: 156.5,
1557
- weight: 51.6,
1558
- age: 26
1559
- }, {
1560
- gender: "female",
1561
- height: 158,
1562
- weight: 59,
1563
- age: 22
1564
- }, {
1565
- gender: "female",
1566
- height: 159,
1567
- weight: 49.2,
1568
- age: 23
1569
- }, {
1570
- gender: "female",
1571
- height: 160,
1572
- weight: 63,
1573
- age: 31
1574
- }, {
1575
- gender: "female",
1576
- height: 162,
1577
- weight: 53.6,
1578
- age: 30
1579
- }, {
1580
- gender: "female",
1581
- height: 163,
1582
- weight: 59,
1583
- age: 17
1584
- }, {
1585
- gender: "female",
1586
- height: 168,
1587
- weight: 47.6,
1588
- age: 18
1589
- }, {
1590
- gender: "female",
1591
- height: 170,
1592
- weight: 69.8,
1593
- age: 26
1594
- }, {
1595
- gender: "female",
1596
- height: 170.2,
1597
- weight: 66.8,
1598
- age: 25
1599
- }, {
1600
- gender: "female",
1601
- height: 171,
1602
- weight: 75.2,
1603
- age: 27
1604
- }, {
1605
- gender: "male",
1606
- height: 171.5,
1607
- weight: 65.6,
1608
- age: 29
1609
- }, {
1610
- gender: "male",
1611
- height: 172,
1612
- weight: 71.8,
1613
- age: 15
1614
- }, {
1615
- gender: "male",
1616
- height: 175,
1617
- weight: 80.7,
1618
- age: 18
1619
- }, {
1620
- gender: "male",
1621
- height: 178,
1622
- weight: 72.6,
1623
- age: 19
1624
- }, {
1625
- gender: "male",
1626
- height: 180,
1627
- weight: 78.8,
1628
- age: 21
1629
- }, {
1630
- gender: "male",
1631
- height: 183,
1632
- weight: 74.8,
1633
- age: 25
1634
- }, {
1635
- gender: "male",
1636
- height: 184,
1637
- weight: 86.4,
1638
- age: 27
1639
- }, {
1640
- gender: "male",
1641
- height: 184,
1642
- weight: 78.4,
1643
- age: 23
1644
- }, {
1645
- gender: "male",
1646
- height: 185,
1647
- weight: 62,
1648
- age: 28
1649
- }, {
1650
- gender: "male",
1651
- height: 187,
1652
- weight: 91.6,
1653
- age: 50
1654
- } ]
1655
- } ],
1656
- xField: "height",
1657
- yField: "weight",
1658
- seriesField: "gender",
1659
- legends: {
1660
- visible: !0
1661
- },
1662
- crosshair: {
1663
- xField: {
1664
- visible: !1
1665
- }
1666
- },
1667
- interactions: [ {
1668
- type: "element-active-by-legend",
1669
- state: "active"
1670
- } ],
1671
- tooltip: {
1672
- dimension: {
1673
- visible: !1
1674
- }
1675
- },
1676
- point: {
1677
- state: {
1678
- active: {
1679
- size: 10,
1680
- fillOpacity: .6,
1681
- strokeOpacity: .6,
1682
- outerBorder: {
1683
- lineWidth: 1,
1684
- strokeOpacity: .2,
1685
- distance: 2
1686
- }
1687
- }
1688
- }
1689
- },
1690
- axes: [ {
1691
- orient: "bottom",
1692
- type: "linear",
1693
- zero: !1,
1694
- domainLine: {
1695
- visible: !0
1696
- },
1697
- grid: {
1698
- visible: !1
1699
- }
1700
- } ]
1701
- };
1702
-
1703
- export const indicatorSankeySpec = {
1704
- type: "sankey",
1705
- data: [ {
1706
- id: "sankeyData",
1707
- values: [ {
1708
- links: [ {
1709
- source: "Opportunity Audience",
1710
- target: "High Potential Users",
1711
- value: 199999
1712
- }, {
1713
- source: "High Potential User 0",
1714
- target: "High Potential Users",
1715
- value: 299999
1716
- }, {
1717
- source: "First Course New Order",
1718
- target: "High Potential Users",
1719
- value: 399999
1720
- }, {
1721
- source: "First Course New Order",
1722
- target: "Repeat Loyalty",
1723
- value: 499999
1724
- }, {
1725
- source: "Deputy Purchase Loyalty",
1726
- target: "High Potential Users",
1727
- value: 599999
1728
- }, {
1729
- source: "Others",
1730
- value: 199999
1731
- }, {
1732
- target: "First Order New Customer",
1733
- value: 999
1734
- } ]
1735
- } ]
1736
- } ],
1737
- dataId: "sankeyData",
1738
- categoryField: "name",
1739
- valueField: "value",
1740
- sourceField: "source",
1741
- targetField: "target",
1742
- dropIsolatedNode: !1,
1743
- nodeGap: 2,
1744
- nodeWidth: 200,
1745
- equalNodeHeight: !0,
1746
- linkOverlap: "center",
1747
- label: {
1748
- visible: !1,
1749
- style: {
1750
- fontSize: 10
1751
- }
1752
- },
1753
- node: {
1754
- state: {
1755
- hover: {
1756
- stroke: "#333333"
1757
- },
1758
- selected: {
1759
- lineWidth: 1,
1760
- brighter: 1,
1761
- fillOpacity: .1
1762
- }
1763
- },
1764
- style: {
1765
- fill: "#1664FF",
1766
- fillOpacity: 0,
1767
- lineWidth: 1,
1768
- stroke: "#1664FF",
1769
- html: (datum, a, c) => {
1770
- const hasSource = datum.targetLinks && datum.targetLinks.length;
1771
- return {
1772
- style: ({width: width, height: height}) => ({
1773
- "border-right": "8px solid #1664FF",
1774
- width: `${width}px`,
1775
- height: `${height}px`,
1776
- background: hasSource ? "#1664FF" : "transparent"
1777
- }),
1778
- dom: `<div style="margin: 10px 0 0 10px;">\n <p style="\n margin:0;\n font-weight:500;\n line-height: 18px;\n font-size:12px;\n color:${hasSource ? "#fff" : "#646475"};\n ">${datum.key}</p>\n <p style="margin:0;font-weight: 700;\n font-size: 20px;\n line-height: 28px;\n color: ${hasSource ? "#fff" : "#1d1d2e"};">${datum.value}</p>\n </div>`
1779
- };
1780
- }
1781
- }
1782
- },
1783
- link: {
1784
- style: {
1785
- fill: "#1664FF"
1786
- },
1787
- state: {
1788
- hover: {
1789
- fillOpacity: 1
1790
- },
1791
- selected: {
1792
- fill: "#1664FF",
1793
- stroke: "",
1794
- lineWidth: 1,
1795
- brighter: 1,
1796
- fillOpacity: .2
1797
- }
1798
- }
1799
- }
1800
- };
1801
- //# sourceMappingURL=chartSpec.js.map