@carbon/charts 0.41.62 → 0.41.66
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.
- package/CHANGELOG.md +34 -3
- package/build/demo/data/CHART_TYPES.d.ts +5 -0
- package/build/demo/data/circle-pack.d.ts +82 -0
- package/build/demo/data/index.d.ts +1 -0
- package/build/src/charts/circle-pack.d.ts +8 -0
- package/build/src/charts/index.d.ts +1 -0
- package/build/src/components/essentials/canvas-chart-clip.d.ts +6 -0
- package/build/src/components/graphs/circle-pack.d.ts +17 -0
- package/build/src/components/index.d.ts +2 -0
- package/build/src/configuration-non-customizable.d.ts +35 -10
- package/build/src/configuration.d.ts +2 -1
- package/build/src/interfaces/charts.d.ts +12 -0
- package/build/src/interfaces/enums.d.ts +2 -1
- package/build/src/interfaces/events.d.ts +16 -0
- package/build/src/model-circle-pack.d.ts +26 -0
- package/build/src/services/canvas-zoom.d.ts +11 -0
- package/build/src/services/index.d.ts +1 -0
- package/bundle.js +1 -1
- package/chart.js +8 -2
- package/chart.js.map +1 -1
- package/charts/circle-pack.d.ts +8 -0
- package/charts/circle-pack.js +45 -0
- package/charts/circle-pack.js.map +1 -0
- package/charts/index.d.ts +1 -0
- package/charts/index.js +1 -0
- package/charts/index.js.map +1 -1
- package/components/essentials/canvas-chart-clip.d.ts +6 -0
- package/components/essentials/canvas-chart-clip.js +46 -0
- package/components/essentials/canvas-chart-clip.js.map +1 -0
- package/components/essentials/legend.js +39 -1
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/tooltip.js +6 -3
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/bar-simple.js +16 -2
- package/components/graphs/bar-simple.js.map +1 -1
- package/components/graphs/circle-pack.d.ts +17 -0
- package/components/graphs/circle-pack.js +349 -0
- package/components/graphs/circle-pack.js.map +1 -0
- package/components/index.d.ts +2 -0
- package/components/index.js +2 -0
- package/components/index.js.map +1 -1
- package/configuration-non-customizable.d.ts +35 -10
- package/configuration-non-customizable.js +30 -10
- package/configuration-non-customizable.js.map +1 -1
- package/configuration.d.ts +2 -1
- package/configuration.js +10 -0
- package/configuration.js.map +1 -1
- package/demo/data/CHART_TYPES.d.ts +5 -0
- package/demo/data/CHART_TYPES.js +5 -0
- package/demo/data/CHART_TYPES.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/circle-pack.d.ts +82 -0
- package/demo/data/circle-pack.js +215 -0
- package/demo/data/circle-pack.js.map +1 -0
- package/demo/data/index.d.ts +1 -0
- package/demo/data/index.js +33 -0
- package/demo/data/index.js.map +1 -1
- package/demo/styles.css +200 -32
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +18 -4
- package/interfaces/charts.d.ts +12 -0
- package/interfaces/charts.js.map +1 -1
- package/interfaces/enums.d.ts +2 -1
- package/interfaces/enums.js +1 -0
- package/interfaces/enums.js.map +1 -1
- package/interfaces/events.d.ts +16 -0
- package/interfaces/events.js +18 -0
- package/interfaces/events.js.map +1 -1
- package/model-circle-pack.d.ts +26 -0
- package/model-circle-pack.js +137 -0
- package/model-circle-pack.js.map +1 -0
- package/package.json +2 -2
- package/services/canvas-zoom.d.ts +11 -0
- package/services/canvas-zoom.js +72 -0
- package/services/canvas-zoom.js.map +1 -0
- package/services/index.d.ts +1 -0
- package/services/index.js +1 -0
- package/services/index.js.map +1 -1
- package/styles/components/_legend.scss +6 -0
- package/styles/components/_tooltip.scss +33 -10
- package/styles/graphs/_circle-pack.scss +38 -0
- package/styles/graphs/index.scss +1 -0
- package/styles-g10.css +52 -8
- package/styles-g10.css.map +1 -1
- package/styles-g10.min.css +1 -1
- package/styles-g10.min.css.map +1 -1
- package/styles-g100.css +52 -8
- package/styles-g100.css.map +1 -1
- package/styles-g100.min.css +1 -1
- package/styles-g100.min.css.map +1 -1
- package/styles-g90.css +52 -8
- package/styles-g90.css.map +1 -1
- package/styles-g90.min.css +1 -1
- package/styles-g90.min.css.map +1 -1
- package/styles.css +52 -8
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tsconfig.tsbuildinfo +152 -39
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export declare const circlePackTwoLevelData: {
|
|
2
|
+
name: string;
|
|
3
|
+
children: {
|
|
4
|
+
name: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}[];
|
|
7
|
+
}[];
|
|
8
|
+
export declare const circlePackTwoLevelOptions: {
|
|
9
|
+
experimental: string;
|
|
10
|
+
title: string;
|
|
11
|
+
canvasZoom: {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const circlePackSingleOptions: {
|
|
16
|
+
experimental: string;
|
|
17
|
+
title: string;
|
|
18
|
+
canvasZoom: {
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare const circlePackSingleLevelData: {
|
|
23
|
+
name: string;
|
|
24
|
+
value: number;
|
|
25
|
+
}[];
|
|
26
|
+
export declare const circlePackThreeLevelOptions: {
|
|
27
|
+
experimental: string;
|
|
28
|
+
title: string;
|
|
29
|
+
canvasZoom: {
|
|
30
|
+
enabled: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const circlePackThreeLevelData: {
|
|
34
|
+
name: string;
|
|
35
|
+
children: ({
|
|
36
|
+
name: string;
|
|
37
|
+
children: {
|
|
38
|
+
name: string;
|
|
39
|
+
value: number;
|
|
40
|
+
}[];
|
|
41
|
+
value?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
name: string;
|
|
44
|
+
value: number;
|
|
45
|
+
children?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
}[];
|
|
48
|
+
export declare const circlePackThreeLevelsMonochromeOptions: {
|
|
49
|
+
experimental: string;
|
|
50
|
+
title: string;
|
|
51
|
+
canvasZoom: {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const circlePackThreeLevelsMonochromeData: {
|
|
56
|
+
name: string;
|
|
57
|
+
children: {
|
|
58
|
+
name: string;
|
|
59
|
+
children: ({
|
|
60
|
+
name: string;
|
|
61
|
+
children: {
|
|
62
|
+
name: string;
|
|
63
|
+
value: number;
|
|
64
|
+
}[];
|
|
65
|
+
value?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
name: string;
|
|
68
|
+
value: number;
|
|
69
|
+
children?: undefined;
|
|
70
|
+
})[];
|
|
71
|
+
}[];
|
|
72
|
+
}[];
|
|
73
|
+
export declare const circlePackThreeLevelNoZoomOptions: {
|
|
74
|
+
experimental: string;
|
|
75
|
+
title: string;
|
|
76
|
+
circlePack: {
|
|
77
|
+
hierarchyLevel: number;
|
|
78
|
+
};
|
|
79
|
+
canvasZoom: {
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
export var circlePackTwoLevelData = [
|
|
2
|
+
{
|
|
3
|
+
name: 'North America',
|
|
4
|
+
children: [
|
|
5
|
+
{ name: 'Canada', value: 800 },
|
|
6
|
+
{ name: 'United States', value: 200 },
|
|
7
|
+
{ name: 'Mexico', value: 100 },
|
|
8
|
+
],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'South America',
|
|
12
|
+
children: [
|
|
13
|
+
{ name: 'Brazil', value: 2800 },
|
|
14
|
+
{ name: 'Argentina', value: 10000 },
|
|
15
|
+
{ name: 'G', value: 500 },
|
|
16
|
+
{ name: 'DE', value: 500 },
|
|
17
|
+
{ name: 'EF', value: 200 },
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Asia',
|
|
22
|
+
children: [
|
|
23
|
+
{ name: 'China', value: 500 },
|
|
24
|
+
{ name: 'Thailand', value: 100 },
|
|
25
|
+
{ name: 'Cambodia', value: 500 },
|
|
26
|
+
{ name: 'India', value: 500 },
|
|
27
|
+
{ name: 'Vietnam', value: 400 },
|
|
28
|
+
{ name: 'North Korea', value: 600 },
|
|
29
|
+
{ name: 'Japan', value: 200 },
|
|
30
|
+
{ name: 'Indonesia', value: 800 },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'Europe',
|
|
35
|
+
children: [
|
|
36
|
+
{ name: 'France', value: 2000 },
|
|
37
|
+
{ name: 'Italy', value: 400 },
|
|
38
|
+
{ name: 'Greece', value: 500 },
|
|
39
|
+
{ name: 'Portugal', value: 100 },
|
|
40
|
+
{ name: 'Austria', value: 1000 },
|
|
41
|
+
{ name: 'Ireland', value: 800 },
|
|
42
|
+
{ name: 'Germany', value: 700 },
|
|
43
|
+
{ name: 'Poland', value: 200 },
|
|
44
|
+
{ name: 'Ukraine', value: 300 },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
export var circlePackTwoLevelOptions = {
|
|
49
|
+
experimental: 'true',
|
|
50
|
+
title: 'Two Levels Hierarchy',
|
|
51
|
+
canvasZoom: {
|
|
52
|
+
enabled: true,
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
export var circlePackSingleOptions = {
|
|
56
|
+
experimental: 'true',
|
|
57
|
+
title: 'One Level Hierachy',
|
|
58
|
+
canvasZoom: {
|
|
59
|
+
enabled: true,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
export var circlePackSingleLevelData = [
|
|
63
|
+
{
|
|
64
|
+
name: 'Transportation',
|
|
65
|
+
value: 300,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'Healthcare',
|
|
69
|
+
value: 600,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Hospitality',
|
|
73
|
+
value: 50,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Tourism',
|
|
77
|
+
value: 90,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'Food',
|
|
81
|
+
value: 280,
|
|
82
|
+
},
|
|
83
|
+
];
|
|
84
|
+
export var circlePackThreeLevelOptions = {
|
|
85
|
+
experimental: 'true',
|
|
86
|
+
title: 'Three Levels Hierarchy',
|
|
87
|
+
canvasZoom: {
|
|
88
|
+
enabled: true,
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
export var circlePackThreeLevelData = [
|
|
92
|
+
{
|
|
93
|
+
name: 'North America',
|
|
94
|
+
children: [
|
|
95
|
+
{
|
|
96
|
+
name: 'Canada',
|
|
97
|
+
children: [
|
|
98
|
+
{ name: 'Toronto', value: 50 },
|
|
99
|
+
{ name: 'Montreal', value: 100 },
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'United States',
|
|
104
|
+
children: [
|
|
105
|
+
{ name: 'Texas', value: 50 },
|
|
106
|
+
{ name: 'New York', value: 40 },
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
{ name: 'Mexico', value: 100 },
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'South America',
|
|
114
|
+
children: [
|
|
115
|
+
{ name: 'Brazil', value: 2800 },
|
|
116
|
+
{ name: 'Argentina', value: 10000 },
|
|
117
|
+
{ name: 'Peru', value: 500 },
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'Africa',
|
|
122
|
+
children: [
|
|
123
|
+
{ name: 'Egypt', value: 50 },
|
|
124
|
+
{ name: 'Morocco', value: 10 },
|
|
125
|
+
{ name: 'Chad', value: 200 },
|
|
126
|
+
{ name: 'Nigeria', value: 80 },
|
|
127
|
+
{ name: 'Libya', value: 90 },
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'Europe',
|
|
132
|
+
children: [
|
|
133
|
+
{ name: 'Portugal', value: 2000 },
|
|
134
|
+
{ name: 'Spain', value: 400 },
|
|
135
|
+
{ name: 'France', value: 500 },
|
|
136
|
+
{ name: 'Italy', value: 300 },
|
|
137
|
+
{ name: 'Poland', value: 100 },
|
|
138
|
+
{ name: 'Ukraine', value: 900 },
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
];
|
|
142
|
+
export var circlePackThreeLevelsMonochromeOptions = {
|
|
143
|
+
experimental: 'true',
|
|
144
|
+
title: 'Three Levels Hierarchy (monchromatic)',
|
|
145
|
+
canvasZoom: {
|
|
146
|
+
enabled: true,
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
export var circlePackThreeLevelsMonochromeData = [
|
|
150
|
+
{
|
|
151
|
+
name: 'Revenue',
|
|
152
|
+
children: [
|
|
153
|
+
{
|
|
154
|
+
name: 'North America',
|
|
155
|
+
children: [
|
|
156
|
+
{
|
|
157
|
+
name: 'Canada',
|
|
158
|
+
children: [
|
|
159
|
+
{ name: 'Toronto', value: 5000 },
|
|
160
|
+
{ name: 'Montreal', value: 1000 },
|
|
161
|
+
],
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'United States',
|
|
165
|
+
children: [
|
|
166
|
+
{ name: 'Texas', value: 500 },
|
|
167
|
+
{ name: 'New York', value: 400 },
|
|
168
|
+
],
|
|
169
|
+
},
|
|
170
|
+
{ name: 'Mexico', value: 100 },
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'South America',
|
|
175
|
+
children: [
|
|
176
|
+
{ name: 'Brazil', value: 280 },
|
|
177
|
+
{ name: 'Argentina', value: 700 },
|
|
178
|
+
{ name: 'Peru', value: 500 },
|
|
179
|
+
],
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: 'Africa',
|
|
183
|
+
children: [
|
|
184
|
+
{ name: 'Egypt', value: 50 },
|
|
185
|
+
{ name: 'Morocco', value: 10 },
|
|
186
|
+
{ name: 'Chad', value: 200 },
|
|
187
|
+
{ name: 'Nigeria', value: 80 },
|
|
188
|
+
{ name: 'Libya', value: 90 },
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
name: 'Europe',
|
|
193
|
+
children: [
|
|
194
|
+
{ name: 'Portugal', value: 2000 },
|
|
195
|
+
{ name: 'Spain', value: 400 },
|
|
196
|
+
{ name: 'France', value: 500 },
|
|
197
|
+
{ name: 'Italy', value: 300 },
|
|
198
|
+
{ name: 'Poland', value: 100 },
|
|
199
|
+
{ name: 'Ukraine', value: 900 },
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
];
|
|
205
|
+
export var circlePackThreeLevelNoZoomOptions = {
|
|
206
|
+
experimental: 'true',
|
|
207
|
+
title: 'Three Levels Hierarchy (No Zoom)',
|
|
208
|
+
circlePack: {
|
|
209
|
+
hierarchyLevel: 3,
|
|
210
|
+
},
|
|
211
|
+
canvasZoom: {
|
|
212
|
+
enabled: false,
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
//# sourceMappingURL=../../../demo/data/circle-pack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle-pack.js","sourceRoot":"","sources":["circle-pack.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,sBAAsB,GAAG;IACrC;QACC,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE;YACT,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE;YAC9B,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG,EAAE;YACrC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE;SAC9B;KACD;IACD;QACC,IAAI,EAAE,eAAe;QACrB,QAAQ,EAAE;YACT,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;YAC/B,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE;YACnC,EAAE,IA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S,EAAE,KAAK,EAAE,EAAE,EAAE;oBAC9B,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;iBAC5B;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE;oBACT,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE;oBACjC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;oBAC7B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE;oBAC9B,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;oBAC7B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE;oBAC9B,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE;iBAC/B;aACD;SACD;KACD;CACD,CAAC;AAEF,MAAM,CAAC,IAAM,iCAAiC,GAAG;IAChD,YAAY,EAAE,MAAM;IACpB,KAAK,EAAE,kCAAkC;IACzC,UAAU,EAAE;QACX,cAAc,EAAE,CAAC;KACjB;IACD,UAAU,EAAE;QACX,OAAO,EAAE,KAAK;KACd;CACD,CAAC","sourcesContent":["export const circlePackTwoLevelData = [\n\t{\n\t\tname: 'North America',\n\t\tchildren: [\n\t\t\t{ name: 'Canada', value: 800 },\n\t\t\t{ name: 'United States', value: 200 },\n\t\t\t{ name: 'Mexico', value: 100 },\n\t\t],\n\t},\n\t{\n\t\tname: 'South America',\n\t\tchildren: [\n\t\t\t{ name: 'Brazil', value: 2800 },\n\t\t\t{ name: 'Argentina', value: 10000 },\n\t\t\t{ name: 'G', value: 500 },\n\t\t\t{ name: 'DE', value: 500 },\n\t\t\t{ name: 'EF', value: 200 },\n\t\t],\n\t},\n\t{\n\t\tname: 'Asia',\n\t\tchildren: [\n\t\t\t{ name: 'China', value: 500 },\n\t\t\t{ name: 'Thailand', value: 100 },\n\t\t\t{ name: 'Cambodia', value: 500 },\n\t\t\t{ name: 'India', value: 500 },\n\t\t\t{ name: 'Vietnam', value: 400 },\n\t\t\t{ name: 'North Korea', value: 600 },\n\t\t\t{ name: 'Japan', value: 200 },\n\t\t\t{ name: 'Indonesia', value: 800 },\n\t\t],\n\t},\n\t{\n\t\tname: 'Europe',\n\t\tchildren: [\n\t\t\t{ name: 'France', value: 2000 },\n\t\t\t{ name: 'Italy', value: 400 },\n\t\t\t{ name: 'Greece', value: 500 },\n\t\t\t{ name: 'Portugal', value: 100 },\n\t\t\t{ name: 'Austria', value: 1000 },\n\t\t\t{ name: 'Ireland', value: 800 },\n\t\t\t{ name: 'Germany', value: 700 },\n\t\t\t{ name: 'Poland', value: 200 },\n\t\t\t{ name: 'Ukraine', value: 300 },\n\t\t],\n\t},\n];\n\nexport const circlePackTwoLevelOptions = {\n\texperimental: 'true',\n\ttitle: 'Two Levels Hierarchy',\n\tcanvasZoom: {\n\t\tenabled: true,\n\t},\n};\n\nexport const circlePackSingleOptions = {\n\texperimental: 'true',\n\ttitle: 'One Level Hierachy',\n\tcanvasZoom: {\n\t\tenabled: true,\n\t},\n};\n\nexport const circlePackSingleLevelData = [\n\t{\n\t\tname: 'Transportation',\n\t\tvalue: 300,\n\t},\n\t{\n\t\tname: 'Healthcare',\n\t\tvalue: 600,\n\t},\n\t{\n\t\tname: 'Hospitality',\n\t\tvalue: 50,\n\t},\n\t{\n\t\tname: 'Tourism',\n\t\tvalue: 90,\n\t},\n\t{\n\t\tname: 'Food',\n\t\tvalue: 280,\n\t},\n];\n\nexport const circlePackThreeLevelOptions = {\n\texperimental: 'true',\n\ttitle: 'Three Levels Hierarchy',\n\tcanvasZoom: {\n\t\tenabled: true,\n\t},\n};\n\nexport const circlePackThreeLevelData = [\n\t{\n\t\tname: 'North America',\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tname: 'Canada',\n\t\t\t\tchildren: [\n\t\t\t\t\t{ name: 'Toronto', value: 50 },\n\t\t\t\t\t{ name: 'Montreal', value: 100 },\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'United States',\n\t\t\t\tchildren: [\n\t\t\t\t\t{ name: 'Texas', value: 50 },\n\t\t\t\t\t{ name: 'New York', value: 40 },\n\t\t\t\t],\n\t\t\t},\n\t\t\t{ name: 'Mexico', value: 100 },\n\t\t],\n\t},\n\t{\n\t\tname: 'South America',\n\t\tchildren: [\n\t\t\t{ name: 'Brazil', value: 2800 },\n\t\t\t{ name: 'Argentina', value: 10000 },\n\t\t\t{ name: 'Peru', value: 500 },\n\t\t],\n\t},\n\t{\n\t\tname: 'Africa',\n\t\tchildren: [\n\t\t\t{ name: 'Egypt', value: 50 },\n\t\t\t{ name: 'Morocco', value: 10 },\n\t\t\t{ name: 'Chad', value: 200 },\n\t\t\t{ name: 'Nigeria', value: 80 },\n\t\t\t{ name: 'Libya', value: 90 },\n\t\t],\n\t},\n\t{\n\t\tname: 'Europe',\n\t\tchildren: [\n\t\t\t{ name: 'Portugal', value: 2000 },\n\t\t\t{ name: 'Spain', value: 400 },\n\t\t\t{ name: 'France', value: 500 },\n\t\t\t{ name: 'Italy', value: 300 },\n\t\t\t{ name: 'Poland', value: 100 },\n\t\t\t{ name: 'Ukraine', value: 900 },\n\t\t],\n\t},\n];\n\nexport const circlePackThreeLevelsMonochromeOptions = {\n\texperimental: 'true',\n\ttitle: 'Three Levels Hierarchy (monchromatic)',\n\tcanvasZoom: {\n\t\tenabled: true,\n\t},\n};\n\nexport const circlePackThreeLevelsMonochromeData = [\n\t{\n\t\tname: 'Revenue',\n\t\tchildren: [\n\t\t\t{\n\t\t\t\tname: 'North America',\n\t\t\t\tchildren: [\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'Canada',\n\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t{ name: 'Toronto', value: 5000 },\n\t\t\t\t\t\t\t{ name: 'Montreal', value: 1000 },\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tname: 'United States',\n\t\t\t\t\t\tchildren: [\n\t\t\t\t\t\t\t{ name: 'Texas', value: 500 },\n\t\t\t\t\t\t\t{ name: 'New York', value: 400 },\n\t\t\t\t\t\t],\n\t\t\t\t\t},\n\t\t\t\t\t{ name: 'Mexico', value: 100 },\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'South America',\n\t\t\t\tchildren: [\n\t\t\t\t\t{ name: 'Brazil', value: 280 },\n\t\t\t\t\t{ name: 'Argentina', value: 700 },\n\t\t\t\t\t{ name: 'Peru', value: 500 },\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Africa',\n\t\t\t\tchildren: [\n\t\t\t\t\t{ name: 'Egypt', value: 50 },\n\t\t\t\t\t{ name: 'Morocco', value: 10 },\n\t\t\t\t\t{ name: 'Chad', value: 200 },\n\t\t\t\t\t{ name: 'Nigeria', value: 80 },\n\t\t\t\t\t{ name: 'Libya', value: 90 },\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'Europe',\n\t\t\t\tchildren: [\n\t\t\t\t\t{ name: 'Portugal', value: 2000 },\n\t\t\t\t\t{ name: 'Spain', value: 400 },\n\t\t\t\t\t{ name: 'France', value: 500 },\n\t\t\t\t\t{ name: 'Italy', value: 300 },\n\t\t\t\t\t{ name: 'Poland', value: 100 },\n\t\t\t\t\t{ name: 'Ukraine', value: 900 },\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t},\n];\n\nexport const circlePackThreeLevelNoZoomOptions = {\n\texperimental: 'true',\n\ttitle: 'Three Levels Hierarchy (No Zoom)',\n\tcirclePack: {\n\t\thierarchyLevel: 3,\n\t},\n\tcanvasZoom: {\n\t\tenabled: false,\n\t},\n};\n"]}
|
package/demo/data/index.d.ts
CHANGED
package/demo/data/index.js
CHANGED
|
@@ -15,6 +15,7 @@ import * as scatterDemos from './scatter';
|
|
|
15
15
|
import * as stepDemos from './step';
|
|
16
16
|
import * as timeSeriesAxisDemos from './time-series-axis';
|
|
17
17
|
import * as treemapDemos from './treemap';
|
|
18
|
+
import * as circlePackDemos from './circle-pack';
|
|
18
19
|
import * as toolbarDemos from './toolbar';
|
|
19
20
|
import * as wordCloudDemos from './wordcloud';
|
|
20
21
|
import * as zoomBarDemos from './zoom-bar';
|
|
@@ -36,6 +37,7 @@ export * from './scatter';
|
|
|
36
37
|
export * from './step';
|
|
37
38
|
export * from './time-series-axis';
|
|
38
39
|
export * from './treemap';
|
|
40
|
+
export * from './circle-pack';
|
|
39
41
|
export * from './toolbar';
|
|
40
42
|
export * from './wordcloud';
|
|
41
43
|
export * from './zoom-bar';
|
|
@@ -953,6 +955,37 @@ var complexChartDemos = [
|
|
|
953
955
|
},
|
|
954
956
|
],
|
|
955
957
|
},
|
|
958
|
+
{
|
|
959
|
+
title: 'Circle Pack',
|
|
960
|
+
demos: [
|
|
961
|
+
{
|
|
962
|
+
data: circlePackDemos.circlePackSingleLevelData,
|
|
963
|
+
options: circlePackDemos.circlePackSingleOptions,
|
|
964
|
+
chartType: chartTypes.CirclePackChart,
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
data: circlePackDemos.circlePackTwoLevelData,
|
|
968
|
+
options: circlePackDemos.circlePackTwoLevelOptions,
|
|
969
|
+
chartType: chartTypes.CirclePackChart,
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
data: circlePackDemos.circlePackThreeLevelData,
|
|
973
|
+
options: circlePackDemos.circlePackThreeLevelOptions,
|
|
974
|
+
chartType: chartTypes.CirclePackChart,
|
|
975
|
+
mainDemo: true,
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
data: circlePackDemos.circlePackThreeLevelsMonochromeData,
|
|
979
|
+
options: circlePackDemos.circlePackThreeLevelsMonochromeOptions,
|
|
980
|
+
chartType: chartTypes.CirclePackChart,
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
data: circlePackDemos.circlePackThreeLevelData,
|
|
984
|
+
options: circlePackDemos.circlePackThreeLevelNoZoomOptions,
|
|
985
|
+
chartType: chartTypes.CirclePackChart,
|
|
986
|
+
},
|
|
987
|
+
],
|
|
988
|
+
},
|
|
956
989
|
].map(function (demoGroup) {
|
|
957
990
|
demoGroup.type = DemoGroupTypes.COMPLEX_CHART;
|
|
958
991
|
return demoGroup;
|