@visactor/vchart-theme-demo-component 0.0.1-alpha.5 → 1.11.2-alpha.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 (107) hide show
  1. package/cjs/spec/area.d.ts +42 -0
  2. package/cjs/spec/area.js +151 -0
  3. package/cjs/spec/area.js.map +1 -0
  4. package/cjs/spec/bar.d.ts +30 -0
  5. package/cjs/spec/bar.js +80 -0
  6. package/cjs/spec/bar.js.map +1 -0
  7. package/cjs/spec/barGroup.d.ts +27 -0
  8. package/cjs/spec/barGroup.js +157 -0
  9. package/cjs/spec/barGroup.js.map +1 -0
  10. package/cjs/spec/barGroupHorizontal.d.ts +28 -0
  11. package/cjs/spec/barGroupHorizontal.js +94 -0
  12. package/cjs/spec/barGroupHorizontal.js.map +1 -0
  13. package/cjs/spec/barStacked.d.ts +30 -0
  14. package/cjs/spec/barStacked.js +160 -0
  15. package/cjs/spec/barStacked.js.map +1 -0
  16. package/cjs/spec/barStackedHorizontal.d.ts +31 -0
  17. package/cjs/spec/barStackedHorizontal.js +181 -0
  18. package/cjs/spec/barStackedHorizontal.js.map +1 -0
  19. package/cjs/spec/barStackedPercent.d.ts +32 -0
  20. package/cjs/spec/barStackedPercent.js +162 -0
  21. package/cjs/spec/barStackedPercent.js.map +1 -0
  22. package/cjs/spec/funnel.d.ts +19 -0
  23. package/cjs/spec/funnel.js +36 -0
  24. package/cjs/spec/funnel.js.map +1 -0
  25. package/cjs/spec/gauge.d.ts +58 -0
  26. package/cjs/spec/gauge.js +63 -0
  27. package/cjs/spec/gauge.js.map +1 -0
  28. package/cjs/spec/horizontalBar.d.ts +99 -0
  29. package/cjs/spec/horizontalBar.js +134 -0
  30. package/cjs/spec/horizontalBar.js.map +1 -0
  31. package/cjs/spec/indicatorSankey.d.ts +81 -0
  32. package/cjs/spec/indicatorSankey.js +103 -0
  33. package/cjs/spec/indicatorSankey.js.map +1 -0
  34. package/cjs/spec/line.d.ts +46 -0
  35. package/cjs/spec/line.js +154 -0
  36. package/cjs/spec/line.js.map +1 -0
  37. package/cjs/spec/pie.d.ts +44 -0
  38. package/cjs/spec/pie.js +53 -0
  39. package/cjs/spec/pie.js.map +1 -0
  40. package/cjs/spec/radar.d.ts +79 -0
  41. package/cjs/spec/radar.js +116 -0
  42. package/cjs/spec/radar.js.map +1 -0
  43. package/cjs/spec/ring.d.ts +54 -0
  44. package/cjs/spec/ring.js +63 -0
  45. package/cjs/spec/ring.js.map +1 -0
  46. package/cjs/spec/scatter.d.ts +57 -0
  47. package/cjs/spec/scatter.js +157 -0
  48. package/cjs/spec/scatter.js.map +1 -0
  49. package/cjs/vchart-chart-hub-theme/chart-list.js +14 -14
  50. package/cjs/vchart-chart-hub-theme/chart-list.js.map +1 -1
  51. package/esm/spec/area.d.ts +42 -0
  52. package/esm/spec/area.js +147 -0
  53. package/esm/spec/area.js.map +1 -0
  54. package/esm/spec/bar.d.ts +30 -0
  55. package/esm/spec/bar.js +76 -0
  56. package/esm/spec/bar.js.map +1 -0
  57. package/esm/spec/barGroup.d.ts +27 -0
  58. package/esm/spec/barGroup.js +153 -0
  59. package/esm/spec/barGroup.js.map +1 -0
  60. package/esm/spec/barGroupHorizontal.d.ts +28 -0
  61. package/esm/spec/barGroupHorizontal.js +90 -0
  62. package/esm/spec/barGroupHorizontal.js.map +1 -0
  63. package/esm/spec/barStacked.d.ts +30 -0
  64. package/esm/spec/barStacked.js +156 -0
  65. package/esm/spec/barStacked.js.map +1 -0
  66. package/esm/spec/barStackedHorizontal.d.ts +31 -0
  67. package/esm/spec/barStackedHorizontal.js +177 -0
  68. package/esm/spec/barStackedHorizontal.js.map +1 -0
  69. package/esm/spec/barStackedPercent.d.ts +32 -0
  70. package/esm/spec/barStackedPercent.js +158 -0
  71. package/esm/spec/barStackedPercent.js.map +1 -0
  72. package/esm/spec/funnel.d.ts +19 -0
  73. package/esm/spec/funnel.js +32 -0
  74. package/esm/spec/funnel.js.map +1 -0
  75. package/esm/spec/gauge.d.ts +58 -0
  76. package/esm/spec/gauge.js +59 -0
  77. package/esm/spec/gauge.js.map +1 -0
  78. package/esm/spec/horizontalBar.d.ts +99 -0
  79. package/esm/spec/horizontalBar.js +130 -0
  80. package/esm/spec/horizontalBar.js.map +1 -0
  81. package/esm/spec/indicatorSankey.d.ts +81 -0
  82. package/esm/spec/indicatorSankey.js +99 -0
  83. package/esm/spec/indicatorSankey.js.map +1 -0
  84. package/esm/spec/line.d.ts +46 -0
  85. package/esm/spec/line.js +150 -0
  86. package/esm/spec/line.js.map +1 -0
  87. package/esm/spec/pie.d.ts +44 -0
  88. package/esm/spec/pie.js +49 -0
  89. package/esm/spec/pie.js.map +1 -0
  90. package/esm/spec/radar.d.ts +79 -0
  91. package/esm/spec/radar.js +112 -0
  92. package/esm/spec/radar.js.map +1 -0
  93. package/esm/spec/ring.d.ts +54 -0
  94. package/esm/spec/ring.js +59 -0
  95. package/esm/spec/ring.js.map +1 -0
  96. package/esm/spec/scatter.d.ts +57 -0
  97. package/esm/spec/scatter.js +153 -0
  98. package/esm/spec/scatter.js.map +1 -0
  99. package/esm/vchart-chart-hub-theme/chart-list.js +25 -1
  100. package/esm/vchart-chart-hub-theme/chart-list.js.map +1 -1
  101. package/package.json +16 -14
  102. package/cjs/vchart-chart-hub-theme/chartSpec.d.ts +0 -757
  103. package/cjs/vchart-chart-hub-theme/chartSpec.js +0 -1776
  104. package/cjs/vchart-chart-hub-theme/chartSpec.js.map +0 -1
  105. package/esm/vchart-chart-hub-theme/chartSpec.d.ts +0 -757
  106. package/esm/vchart-chart-hub-theme/chartSpec.js +0 -1801
  107. package/esm/vchart-chart-hub-theme/chartSpec.js.map +0 -1
@@ -0,0 +1,153 @@
1
+ export const barGroupSpec = {
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
+ type: "Democracies",
46
+ year: "1930",
47
+ value: 22
48
+ }, {
49
+ type: "Democracies",
50
+ year: "1940",
51
+ value: 13
52
+ }, {
53
+ type: "Democracies",
54
+ year: "1950",
55
+ value: 25
56
+ }, {
57
+ type: "Democracies",
58
+ year: "1960",
59
+ value: 29
60
+ }, {
61
+ type: "Democracies",
62
+ year: "1970",
63
+ value: 38
64
+ }, {
65
+ type: "Democracies",
66
+ year: "1980",
67
+ value: 41
68
+ }, {
69
+ type: "Democracies",
70
+ year: "1990",
71
+ value: 57
72
+ }, {
73
+ type: "Democracies",
74
+ year: "2000",
75
+ value: 87
76
+ }, {
77
+ type: "Democracies",
78
+ year: "2010",
79
+ value: 98
80
+ }, {
81
+ type: "Democracies",
82
+ year: "2018",
83
+ value: 99
84
+ }, {
85
+ type: "Price",
86
+ year: "1930",
87
+ value: 56
88
+ }, {
89
+ type: "Price",
90
+ year: "1940",
91
+ value: 122
92
+ }, {
93
+ type: "Price",
94
+ year: "1950",
95
+ value: 72
96
+ }, {
97
+ type: "Price",
98
+ year: "1960",
99
+ value: 82
100
+ }, {
101
+ type: "Price",
102
+ year: "1970",
103
+ value: 67
104
+ }, {
105
+ type: "Price",
106
+ year: "1980",
107
+ value: 89
108
+ }, {
109
+ type: "Price",
110
+ year: "1990",
111
+ value: 60
112
+ }, {
113
+ type: "Price",
114
+ year: "2000",
115
+ value: 123
116
+ }, {
117
+ type: "Price",
118
+ year: "2010",
119
+ value: 111
120
+ }, {
121
+ type: "Price",
122
+ year: "2018",
123
+ value: 99
124
+ } ]
125
+ },
126
+ height: 500,
127
+ xField: [ "year", "type" ],
128
+ yField: "value",
129
+ seriesField: "type",
130
+ axes: [ {
131
+ orient: "bottom",
132
+ visible: !0,
133
+ domainLine: {
134
+ visible: !0
135
+ },
136
+ tick: {
137
+ visible: !0
138
+ }
139
+ }, {
140
+ orient: "left",
141
+ visible: !0,
142
+ domainLine: {
143
+ visible: !1
144
+ },
145
+ tick: {
146
+ visible: !1
147
+ }
148
+ } ],
149
+ legends: {
150
+ visible: !0
151
+ }
152
+ };
153
+ //# sourceMappingURL=barGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/spec/barGroup.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,KAAK;IACX,IAAI,EAAE;QACJ,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE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","sourcesContent":["export const barGroupSpec = {\n type: 'bar',\n data: {\n values: [\n { type: 'Autocracies', year: '1930', value: 129 },\n { type: 'Autocracies', year: '1940', value: 133 },\n { type: 'Autocracies', year: '1950', value: 130 },\n { type: 'Autocracies', year: '1960', value: 126 },\n { type: 'Autocracies', year: '1970', value: 117 },\n { type: 'Autocracies', year: '1980', value: 114 },\n { type: 'Autocracies', year: '1990', value: 111 },\n { type: 'Autocracies', year: '2000', value: 89 },\n { type: 'Autocracies', year: '2010', value: 80 },\n { type: 'Autocracies', year: '2018', value: 80 },\n { type: 'Democracies', year: '1930', value: 22 },\n { type: 'Democracies', year: '1940', value: 13 },\n { type: 'Democracies', year: '1950', value: 25 },\n { type: 'Democracies', year: '1960', value: 29 },\n { type: 'Democracies', year: '1970', value: 38 },\n { type: 'Democracies', year: '1980', value: 41 },\n { type: 'Democracies', year: '1990', value: 57 },\n { type: 'Democracies', year: '2000', value: 87 },\n { type: 'Democracies', year: '2010', value: 98 },\n { type: 'Democracies', year: '2018', value: 99 },\n { type: 'Price', year: '1930', value: 56 },\n { type: 'Price', year: '1940', value: 122 },\n { type: 'Price', year: '1950', value: 72 },\n { type: 'Price', year: '1960', value: 82 },\n { type: 'Price', year: '1970', value: 67 },\n { type: 'Price', year: '1980', value: 89 },\n { type: 'Price', year: '1990', value: 60 },\n { type: 'Price', year: '2000', value: 123 },\n { type: 'Price', year: '2010', value: 111 },\n { type: 'Price', year: '2018', value: 99 }\n ]\n },\n height: 500,\n xField: ['year', 'type'],\n yField: 'value',\n seriesField: 'type',\n axes: [\n {\n orient: 'bottom',\n visible: true,\n domainLine: { visible: true },\n tick: { visible: true }\n },\n {\n orient: 'left',\n visible: true,\n domainLine: { visible: false },\n tick: { visible: false }\n }\n ],\n legends: {\n visible: true\n }\n};\n"]}
@@ -0,0 +1,28 @@
1
+ export declare const barGroupHorizontalSpec: {
2
+ type: string;
3
+ data: {
4
+ values: {
5
+ type: string;
6
+ year: string;
7
+ value: number;
8
+ }[];
9
+ };
10
+ height: number;
11
+ direction: string;
12
+ xField: string;
13
+ yField: string[];
14
+ seriesField: string;
15
+ axes: {
16
+ orient: string;
17
+ visible: boolean;
18
+ domainLine: {
19
+ visible: boolean;
20
+ };
21
+ tick: {
22
+ visible: boolean;
23
+ };
24
+ }[];
25
+ legends: {
26
+ visible: boolean;
27
+ };
28
+ };
@@ -0,0 +1,90 @@
1
+ export const barGroupHorizontalSpec = {
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: "Democracies",
34
+ year: "1930",
35
+ value: 22
36
+ }, {
37
+ type: "Democracies",
38
+ year: "1940",
39
+ value: 13
40
+ }, {
41
+ type: "Democracies",
42
+ year: "1950",
43
+ value: 25
44
+ }, {
45
+ type: "Democracies",
46
+ year: "1960",
47
+ value: 29
48
+ }, {
49
+ type: "Democracies",
50
+ year: "1970",
51
+ value: 38
52
+ }, {
53
+ type: "Democracies",
54
+ year: "1980",
55
+ value: 41
56
+ }, {
57
+ type: "Democracies",
58
+ year: "1990",
59
+ value: 57
60
+ } ]
61
+ },
62
+ height: 500,
63
+ direction: "horizontal",
64
+ xField: "value",
65
+ yField: [ "year", "type" ],
66
+ seriesField: "type",
67
+ axes: [ {
68
+ orient: "left",
69
+ visible: !0,
70
+ domainLine: {
71
+ visible: !0
72
+ },
73
+ tick: {
74
+ visible: !0
75
+ }
76
+ }, {
77
+ orient: "bottom",
78
+ visible: !0,
79
+ domainLine: {
80
+ visible: !1
81
+ },
82
+ tick: {
83
+ visible: !1
84
+ }
85
+ } ],
86
+ legends: {
87
+ visible: !0
88
+ }
89
+ };
90
+ //# sourceMappingURL=barGroupHorizontal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/spec/barGroupHorizontal.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,KAAK;IACX,IAAI,EAAE;QACJ,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YACjD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;YAChD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;YAChD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;YAChD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;YAChD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;YAChD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;YAChD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;SACjD;KACF;IACD,MAAM,EAAE,GAAG;IACX,SAAS,EAAE,YAAY;IACvB,MAAM,EAAE,OAAO;IACf,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM;IACnB,IAAI,EAAE;QACJ;YACE,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;YAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SACxB;QACD;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;YAC9B,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;SACzB;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE,IAAI;KACd;CACF,CAAC","file":"barGroupHorizontal.js","sourcesContent":["export const barGroupHorizontalSpec = {\n type: 'bar',\n data: {\n values: [\n { type: 'Autocracies', year: '1930', value: 129 },\n { type: 'Autocracies', year: '1940', value: 133 },\n { type: 'Autocracies', year: '1950', value: 130 },\n { type: 'Autocracies', year: '1960', value: 126 },\n { type: 'Autocracies', year: '1970', value: 117 },\n { type: 'Autocracies', year: '1980', value: 114 },\n { type: 'Autocracies', year: '1990', value: 111 },\n { type: 'Democracies', year: '1930', value: 22 },\n { type: 'Democracies', year: '1940', value: 13 },\n { type: 'Democracies', year: '1950', value: 25 },\n { type: 'Democracies', year: '1960', value: 29 },\n { type: 'Democracies', year: '1970', value: 38 },\n { type: 'Democracies', year: '1980', value: 41 },\n { type: 'Democracies', year: '1990', value: 57 }\n ]\n },\n height: 500,\n direction: 'horizontal',\n xField: 'value',\n yField: ['year', 'type'],\n seriesField: 'type',\n axes: [\n {\n orient: 'left',\n visible: true,\n domainLine: { visible: true },\n tick: { visible: true }\n },\n {\n orient: 'bottom',\n visible: true,\n domainLine: { visible: false },\n tick: { visible: false }\n }\n ],\n legends: {\n visible: true\n }\n};\n"]}
@@ -0,0 +1,30 @@
1
+ export declare const barStackedSpec: {
2
+ type: string;
3
+ data: {
4
+ values: {
5
+ type: string;
6
+ year: string;
7
+ value: number;
8
+ }[];
9
+ };
10
+ height: number;
11
+ xField: string;
12
+ yField: string;
13
+ seriesField: string;
14
+ axes: {
15
+ orient: string;
16
+ visible: boolean;
17
+ domainLine: {
18
+ visible: boolean;
19
+ };
20
+ tick: {
21
+ visible: boolean;
22
+ };
23
+ }[];
24
+ legends: {
25
+ visible: boolean;
26
+ };
27
+ indicator: {
28
+ visible: boolean;
29
+ };
30
+ };
@@ -0,0 +1,156 @@
1
+ export const barStackedSpec = {
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
+ type: "Democracies",
46
+ year: "1930",
47
+ value: 22
48
+ }, {
49
+ type: "Democracies",
50
+ year: "1940",
51
+ value: 13
52
+ }, {
53
+ type: "Democracies",
54
+ year: "1950",
55
+ value: 25
56
+ }, {
57
+ type: "Democracies",
58
+ year: "1960",
59
+ value: 29
60
+ }, {
61
+ type: "Democracies",
62
+ year: "1970",
63
+ value: 38
64
+ }, {
65
+ type: "Democracies",
66
+ year: "1980",
67
+ value: 41
68
+ }, {
69
+ type: "Democracies",
70
+ year: "1990",
71
+ value: 57
72
+ }, {
73
+ type: "Democracies",
74
+ year: "2000",
75
+ value: 87
76
+ }, {
77
+ type: "Democracies",
78
+ year: "2010",
79
+ value: 98
80
+ }, {
81
+ type: "Democracies",
82
+ year: "2018",
83
+ value: 99
84
+ }, {
85
+ type: "Price",
86
+ year: "1930",
87
+ value: 56
88
+ }, {
89
+ type: "Price",
90
+ year: "1940",
91
+ value: 122
92
+ }, {
93
+ type: "Price",
94
+ year: "1950",
95
+ value: 72
96
+ }, {
97
+ type: "Price",
98
+ year: "1960",
99
+ value: 82
100
+ }, {
101
+ type: "Price",
102
+ year: "1970",
103
+ value: 67
104
+ }, {
105
+ type: "Price",
106
+ year: "1980",
107
+ value: 89
108
+ }, {
109
+ type: "Price",
110
+ year: "1990",
111
+ value: 60
112
+ }, {
113
+ type: "Price",
114
+ year: "2000",
115
+ value: 123
116
+ }, {
117
+ type: "Price",
118
+ year: "2010",
119
+ value: 111
120
+ }, {
121
+ type: "Price",
122
+ year: "2018",
123
+ value: 99
124
+ } ]
125
+ },
126
+ height: 500,
127
+ xField: "year",
128
+ yField: "value",
129
+ seriesField: "type",
130
+ axes: [ {
131
+ orient: "bottom",
132
+ visible: !0,
133
+ domainLine: {
134
+ visible: !0
135
+ },
136
+ tick: {
137
+ visible: !0
138
+ }
139
+ }, {
140
+ orient: "left",
141
+ visible: !0,
142
+ domainLine: {
143
+ visible: !1
144
+ },
145
+ tick: {
146
+ visible: !1
147
+ }
148
+ } ],
149
+ legends: {
150
+ visible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AAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;YAC1C,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YAC3C,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE;YAC3C,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;SAC3C;KACF;IACD,MAAM,EAAE,GAAG;IACX,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,OAAO;IACf,WAAW,EAAE,MAAM;IACnB,IAAI,EAAE;QACJ;YACE,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;YAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;SACxB;QACD;YACE,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,IAAI;YACb,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;YAC9B,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;SACzB;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACT,OAAO,EAAE,IAAI;KACd;CACF,CAAC","file":"barStacked.js","sourcesContent":["export const barStackedSpec = {\n type: 'bar',\n //stack: true,\n data: {\n values: [\n { type: 'Autocracies', year: '1930', value: 129 },\n { type: 'Autocracies', year: '1940', value: 133 },\n { type: 'Autocracies', year: '1950', value: 130 },\n { type: 'Autocracies', year: '1960', value: 126 },\n { type: 'Autocracies', year: '1970', value: 117 },\n { type: 'Autocracies', year: '1980', value: 114 },\n { type: 'Autocracies', year: '1990', value: 111 },\n { type: 'Autocracies', year: '2000', value: 89 },\n { type: 'Autocracies', year: '2010', value: 80 },\n { type: 'Autocracies', year: '2018', value: 80 },\n { type: 'Democracies', year: '1930', value: 22 },\n { type: 'Democracies', year: '1940', value: 13 },\n { type: 'Democracies', year: '1950', value: 25 },\n { type: 'Democracies', year: '1960', value: 29 },\n { type: 'Democracies', year: '1970', value: 38 },\n { type: 'Democracies', year: '1980', value: 41 },\n { type: 'Democracies', year: '1990', value: 57 },\n { type: 'Democracies', year: '2000', value: 87 },\n { type: 'Democracies', year: '2010', value: 98 },\n { type: 'Democracies', year: '2018', value: 99 },\n { type: 'Price', year: '1930', value: 56 },\n { type: 'Price', year: '1940', value: 122 },\n { type: 'Price', year: '1950', value: 72 },\n { type: 'Price', year: '1960', value: 82 },\n { type: 'Price', year: '1970', value: 67 },\n { type: 'Price', year: '1980', value: 89 },\n { type: 'Price', year: '1990', value: 60 },\n { type: 'Price', year: '2000', value: 123 },\n { type: 'Price', year: '2010', value: 111 },\n { type: 'Price', year: '2018', value: 99 }\n ]\n },\n height: 500,\n xField: 'year',\n yField: 'value',\n seriesField: 'type',\n axes: [\n {\n orient: 'bottom',\n visible: true,\n domainLine: { visible: true },\n tick: { visible: true }\n },\n {\n orient: 'left',\n visible: true,\n domainLine: { visible: false },\n tick: { visible: false }\n }\n ],\n legends: {\n visible: true\n },\n indicator: {\n visible: true\n }\n};\n"]}
@@ -0,0 +1,31 @@
1
+ export declare const barStackedHorizontalSpec: {
2
+ type: string;
3
+ data: {
4
+ values: {
5
+ type: string;
6
+ year: string;
7
+ value: number;
8
+ }[];
9
+ };
10
+ height: number;
11
+ direction: string;
12
+ xField: string;
13
+ yField: string;
14
+ seriesField: string;
15
+ axes: {
16
+ orient: string;
17
+ visible: boolean;
18
+ domainLine: {
19
+ visible: boolean;
20
+ };
21
+ tick: {
22
+ visible: boolean;
23
+ };
24
+ }[];
25
+ legends: {
26
+ visible: boolean;
27
+ };
28
+ indicator: {
29
+ visible: boolean;
30
+ };
31
+ };
@@ -0,0 +1,177 @@
1
+ export const barStackedHorizontalSpec = {
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: "Democracies",
34
+ year: "1930",
35
+ value: 22
36
+ }, {
37
+ type: "Democracies",
38
+ year: "1940",
39
+ value: 13
40
+ }, {
41
+ type: "Democracies",
42
+ year: "1950",
43
+ value: 25
44
+ }, {
45
+ type: "Democracies",
46
+ year: "1960",
47
+ value: 29
48
+ }, {
49
+ type: "Democracies",
50
+ year: "1970",
51
+ value: 38
52
+ }, {
53
+ type: "Democracies",
54
+ year: "1980",
55
+ value: 41
56
+ }, {
57
+ type: "Democracies",
58
+ year: "1990",
59
+ value: 57
60
+ }, {
61
+ type: "Price",
62
+ year: "1930",
63
+ value: 56
64
+ }, {
65
+ type: "Price",
66
+ year: "1940",
67
+ value: 122
68
+ }, {
69
+ type: "Price",
70
+ year: "1950",
71
+ value: 72
72
+ }, {
73
+ type: "Price",
74
+ year: "1960",
75
+ value: 82
76
+ }, {
77
+ type: "Price",
78
+ year: "1970",
79
+ value: 67
80
+ }, {
81
+ type: "Price",
82
+ year: "1980",
83
+ value: 89
84
+ }, {
85
+ type: "Price",
86
+ year: "1990",
87
+ value: 60
88
+ }, {
89
+ type: "D",
90
+ year: "1930",
91
+ value: 56
92
+ }, {
93
+ type: "D",
94
+ year: "1940",
95
+ value: 122
96
+ }, {
97
+ type: "D",
98
+ year: "1950",
99
+ value: 72
100
+ }, {
101
+ type: "D",
102
+ year: "1960",
103
+ value: 82
104
+ }, {
105
+ type: "D",
106
+ year: "1970",
107
+ value: 67
108
+ }, {
109
+ type: "D",
110
+ year: "1980",
111
+ value: 89
112
+ }, {
113
+ type: "D",
114
+ year: "1990",
115
+ value: 60
116
+ }, {
117
+ type: "E",
118
+ year: "1930",
119
+ value: 56
120
+ }, {
121
+ type: "E",
122
+ year: "1940",
123
+ value: 122
124
+ }, {
125
+ type: "E",
126
+ year: "1950",
127
+ value: 72
128
+ }, {
129
+ type: "E",
130
+ year: "1960",
131
+ value: 82
132
+ }, {
133
+ type: "E",
134
+ year: "1970",
135
+ value: 67
136
+ }, {
137
+ type: "E",
138
+ year: "1980",
139
+ value: 89
140
+ }, {
141
+ type: "E",
142
+ year: "1990",
143
+ value: 60
144
+ } ]
145
+ },
146
+ height: 500,
147
+ direction: "horizontal",
148
+ xField: "value",
149
+ yField: "year",
150
+ seriesField: "type",
151
+ axes: [ {
152
+ orient: "left",
153
+ visible: !0,
154
+ domainLine: {
155
+ visible: !0
156
+ },
157
+ tick: {
158
+ visible: !0
159
+ }
160
+ }, {
161
+ orient: "bottom",
162
+ visible: !0,
163
+ domainLine: {
164
+ visible: !1
165
+ },
166
+ tick: {
167
+ visible: !1
168
+ }
169
+ } ],
170
+ legends: {
171
+ visible: !0
172
+ },
173
+ indicator: {
174
+ visible: !0
175
+ }
176
+ };
177
+ //# sourceMappingURL=barStackedHorizontal.js.map