@react-magma/charts 12.0.0 → 12.0.1-next.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.
- package/dist/charts.js +2450 -1
- package/dist/charts.js.map +1 -1
- package/dist/charts.modern.module.js +2428 -1
- package/dist/charts.modern.module.js.map +1 -1
- package/dist/charts.umd.js +48555 -1
- package/dist/charts.umd.js.map +1 -1
- package/dist/components/CarbonChart/CarbonChart.d.ts +42 -41
- package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +310 -12
- package/dist/components/CarbonChart/CarbonChartAreaStacked.stories.d.ts +136 -7
- package/dist/components/CarbonChart/CarbonChartBar.stories.d.ts +214 -12
- package/dist/components/CarbonChart/CarbonChartBarFloating.stories.d.ts +82 -6
- package/dist/components/CarbonChart/CarbonChartBarGrouped.stories.d.ts +234 -13
- package/dist/components/CarbonChart/CarbonChartBarStacked.stories.d.ts +266 -14
- package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +53 -5
- package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +196 -9
- package/dist/components/CarbonChart/CarbonChartBullet.stories.d.ts +35 -4
- package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +580 -15
- package/dist/components/CarbonChart/CarbonChartDonut.stories.d.ts +120 -8
- package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +43 -5
- package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +89 -6
- package/dist/components/CarbonChart/CarbonChartLine.stories.d.ts +577 -20
- package/dist/components/CarbonChart/CarbonChartLollipop.stories.d.ts +55 -5
- package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +127 -8
- package/dist/components/CarbonChart/CarbonChartPie.stories.d.ts +101 -8
- package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +98 -7
- package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +173 -9
- package/dist/components/CarbonChart/CarbonChartSparkline.stories.d.ts +51 -4
- package/dist/components/CarbonChart/CarbonChartStep.stories.d.ts +38 -4
- package/dist/components/CarbonChart/index.d.ts +1 -1
- package/dist/components/LineChart/Chart.d.ts +27 -27
- package/dist/components/LineChart/ChartDataTable.d.ts +17 -17
- package/dist/components/LineChart/CustomAxisComponent.d.ts +3 -3
- package/dist/components/LineChart/CustomPointComponent.d.ts +17 -17
- package/dist/components/LineChart/DataTable.d.ts +5 -5
- package/dist/components/LineChart/GraphTooltip.d.ts +3 -3
- package/dist/components/LineChart/LegendButton.d.ts +6 -6
- package/dist/components/LineChart/LineChart.d.ts +67 -67
- package/dist/components/LineChart/LineChart.stories.d.ts +113 -23
- package/dist/components/LineChart/index.d.ts +1 -1
- package/dist/components/LineChart/magma-charts.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +11 -6
- package/src/components/CarbonChart/CarbonChart.tsx +12 -16
- package/src/components/CarbonChart/CarbonChartArea.stories.tsx +674 -649
- package/src/components/CarbonChart/CarbonChartAreaStacked.stories.tsx +424 -414
- package/src/components/CarbonChart/CarbonChartBar.stories.tsx +352 -325
- package/src/components/CarbonChart/CarbonChartBarFloating.stories.tsx +127 -116
- package/src/components/CarbonChart/CarbonChartBarGrouped.stories.tsx +872 -843
- package/src/components/CarbonChart/CarbonChartBarStacked.stories.tsx +913 -879
- package/src/components/CarbonChart/CarbonChartBoxplot.stories.tsx +238 -232
- package/src/components/CarbonChart/CarbonChartBubble.stories.tsx +565 -547
- package/src/components/CarbonChart/CarbonChartBullet.stories.tsx +59 -56
- package/src/components/CarbonChart/CarbonChartCombo.stories.tsx +1335 -1299
- package/src/components/CarbonChart/CarbonChartDonut.stories.tsx +170 -153
- package/src/components/CarbonChart/CarbonChartGauge.stories.tsx +50 -44
- package/src/components/CarbonChart/CarbonChartHistogram.stories.tsx +733 -724
- package/src/components/CarbonChart/CarbonChartLine.stories.tsx +1656 -1605
- package/src/components/CarbonChart/CarbonChartLollipop.stories.tsx +81 -76
- package/src/components/CarbonChart/CarbonChartMeter.stories.tsx +177 -162
- package/src/components/CarbonChart/CarbonChartPie.stories.tsx +154 -139
- package/src/components/CarbonChart/CarbonChartRadar.stories.tsx +445 -433
- package/src/components/CarbonChart/CarbonChartScatter.stories.tsx +427 -409
- package/src/components/CarbonChart/CarbonChartSparkline.stories.tsx +191 -188
- package/src/components/CarbonChart/CarbonChartStep.stories.tsx +145 -142
- package/src/components/CarbonChart/carbon-charts.css +7303 -0
- package/src/components/LineChart/LineChart.stories.tsx +91 -104
- package/dist/components/CarbonChart/CarbonChart.test.d.ts +0 -1
- package/dist/components/CarbonChart/embeddedStyles.d.ts +0 -1
- package/dist/components/LineChart/ChartDataTable.test.d.ts +0 -1
- package/dist/components/LineChart/LineChart.test.d.ts +0 -1
- package/dist/components/LineChart/test/exampleChartData.d.ts +0 -40
- package/src/components/CarbonChart/embeddedStyles.ts +0 -24880
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { StoryFn, Meta } from '@storybook/react/types-6-0';
|
|
4
4
|
import { Card } from 'react-magma-dom';
|
|
5
5
|
|
|
6
6
|
import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
|
|
@@ -23,584 +23,602 @@ export default {
|
|
|
23
23
|
},
|
|
24
24
|
} as Meta;
|
|
25
25
|
|
|
26
|
-
const Template:
|
|
26
|
+
const Template: StoryFn<CarbonChartProps> = args => (
|
|
27
27
|
<Card isInverse={args.isInverse} style={{ padding: '12px' }}>
|
|
28
28
|
<CarbonChart {...args} />
|
|
29
29
|
</Card>
|
|
30
30
|
);
|
|
31
31
|
|
|
32
|
-
export const BubbleLinear =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
group: 'Dataset 1',
|
|
45
|
-
sales: 12000,
|
|
46
|
-
profit: 23500,
|
|
47
|
-
surplus: 34000,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
group: 'Dataset 1',
|
|
51
|
-
sales: 14000,
|
|
52
|
-
profit: 53100,
|
|
53
|
-
surplus: 63000,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
group: 'Dataset 1',
|
|
57
|
-
sales: 15000,
|
|
58
|
-
profit: 42300,
|
|
59
|
-
surplus: 43000,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
group: 'Dataset 1',
|
|
63
|
-
sales: 16000,
|
|
64
|
-
profit: 12300,
|
|
65
|
-
surplus: 55000,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
group: 'Dataset 2',
|
|
69
|
-
sales: 11000,
|
|
70
|
-
profit: 12400,
|
|
71
|
-
surplus: 25000,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
group: 'Dataset 2',
|
|
75
|
-
sales: 13000,
|
|
76
|
-
profit: 34500,
|
|
77
|
-
surplus: 35000,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
group: 'Dataset 2',
|
|
81
|
-
sales: 13500,
|
|
82
|
-
profit: 23100,
|
|
83
|
-
surplus: 55000,
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
group: 'Dataset 2',
|
|
87
|
-
sales: 15500,
|
|
88
|
-
profit: 63200,
|
|
89
|
-
surplus: 35000,
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
group: 'Dataset 2',
|
|
93
|
-
sales: 15750,
|
|
94
|
-
profit: 24300,
|
|
95
|
-
surplus: 64000,
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
options: {
|
|
99
|
-
title: 'Bubble (linear)',
|
|
100
|
-
axes: {
|
|
101
|
-
bottom: {
|
|
102
|
-
title: 'No. of employees',
|
|
103
|
-
mapsTo: 'sales',
|
|
104
|
-
includeZero: false,
|
|
105
|
-
},
|
|
106
|
-
left: {
|
|
107
|
-
title: 'Annual sales',
|
|
108
|
-
mapsTo: 'profit',
|
|
109
|
-
includeZero: false,
|
|
32
|
+
export const BubbleLinear = {
|
|
33
|
+
render: Template,
|
|
34
|
+
|
|
35
|
+
args: {
|
|
36
|
+
isInverse: false,
|
|
37
|
+
type: CarbonChartType.bubble,
|
|
38
|
+
dataSet: [
|
|
39
|
+
{
|
|
40
|
+
group: 'Dataset 1',
|
|
41
|
+
sales: 10000,
|
|
42
|
+
profit: 32100,
|
|
43
|
+
surplus: 50000,
|
|
110
44
|
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
45
|
+
{
|
|
46
|
+
group: 'Dataset 1',
|
|
47
|
+
sales: 12000,
|
|
48
|
+
profit: 23500,
|
|
49
|
+
surplus: 34000,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
group: 'Dataset 1',
|
|
53
|
+
sales: 14000,
|
|
54
|
+
profit: 53100,
|
|
55
|
+
surplus: 63000,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
group: 'Dataset 1',
|
|
59
|
+
sales: 15000,
|
|
60
|
+
profit: 42300,
|
|
61
|
+
surplus: 43000,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
group: 'Dataset 1',
|
|
65
|
+
sales: 16000,
|
|
66
|
+
profit: 12300,
|
|
67
|
+
surplus: 55000,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
group: 'Dataset 2',
|
|
71
|
+
sales: 11000,
|
|
72
|
+
profit: 12400,
|
|
73
|
+
surplus: 25000,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
group: 'Dataset 2',
|
|
77
|
+
sales: 13000,
|
|
78
|
+
profit: 34500,
|
|
79
|
+
surplus: 35000,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
group: 'Dataset 2',
|
|
83
|
+
sales: 13500,
|
|
84
|
+
profit: 23100,
|
|
85
|
+
surplus: 55000,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
group: 'Dataset 2',
|
|
89
|
+
sales: 15500,
|
|
90
|
+
profit: 63200,
|
|
91
|
+
surplus: 35000,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
group: 'Dataset 2',
|
|
95
|
+
sales: 15750,
|
|
96
|
+
profit: 24300,
|
|
97
|
+
surplus: 64000,
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
options: {
|
|
101
|
+
title: 'Bubble (linear)',
|
|
102
|
+
axes: {
|
|
103
|
+
bottom: {
|
|
104
|
+
title: 'No. of employees',
|
|
105
|
+
mapsTo: 'sales',
|
|
106
|
+
includeZero: false,
|
|
121
107
|
},
|
|
122
|
-
|
|
108
|
+
left: {
|
|
109
|
+
title: 'Annual sales',
|
|
110
|
+
mapsTo: 'profit',
|
|
111
|
+
includeZero: false,
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
bubble: {
|
|
115
|
+
radiusMapsTo: 'surplus',
|
|
116
|
+
radiusLabel: 'Surplus',
|
|
117
|
+
},
|
|
118
|
+
legend: {
|
|
119
|
+
additionalItems: [
|
|
120
|
+
{
|
|
121
|
+
type: 'radius',
|
|
122
|
+
name: 'Surplus',
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
height: '400px',
|
|
123
127
|
},
|
|
124
|
-
height: '400px',
|
|
125
128
|
},
|
|
126
129
|
};
|
|
127
130
|
|
|
128
|
-
export const BubbleTimeSeries =
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
group: 'Dataset 1',
|
|
141
|
-
date: '2023-01-05',
|
|
142
|
-
value: 65000,
|
|
143
|
-
surplus: 590247271.3872744,
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
group: 'Dataset 1',
|
|
147
|
-
date: '2023-01-08',
|
|
148
|
-
value: null,
|
|
149
|
-
surplus: 9219.520929038921,
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
group: 'Dataset 1',
|
|
153
|
-
date: '2023-01-13',
|
|
154
|
-
value: 49213,
|
|
155
|
-
surplus: 1144546546.5725653,
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
group: 'Dataset 1',
|
|
159
|
-
date: '2023-01-17',
|
|
160
|
-
value: 51213,
|
|
161
|
-
surplus: 1206431312.2321992,
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
group: 'Dataset 2',
|
|
165
|
-
date: '2023-01-02',
|
|
166
|
-
value: 0,
|
|
167
|
-
surplus: 9107.915339546651,
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
group: 'Dataset 2',
|
|
171
|
-
date: '2023-01-06',
|
|
172
|
-
value: 57312,
|
|
173
|
-
surplus: 1297879289.3455367,
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
group: 'Dataset 2',
|
|
177
|
-
date: '2023-01-08',
|
|
178
|
-
value: 27432,
|
|
179
|
-
surplus: 254653461.2692332,
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
group: 'Dataset 2',
|
|
183
|
-
date: '2023-01-15',
|
|
184
|
-
value: 70323,
|
|
185
|
-
surplus: 791440614.5922209,
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
group: 'Dataset 2',
|
|
189
|
-
date: '2023-01-19',
|
|
190
|
-
value: 21300,
|
|
191
|
-
surplus: 87235499.55803385,
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
group: 'Dataset 3',
|
|
195
|
-
date: '2023-01-01',
|
|
196
|
-
value: 40000,
|
|
197
|
-
surplus: 99661858.42808129,
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
group: 'Dataset 3',
|
|
201
|
-
date: '2023-01-05',
|
|
202
|
-
value: null,
|
|
203
|
-
surplus: 4582.283257286785,
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
group: 'Dataset 3',
|
|
207
|
-
date: '2023-01-08',
|
|
208
|
-
value: 18000,
|
|
209
|
-
surplus: 388038660.7993739,
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
group: 'Dataset 3',
|
|
213
|
-
date: '2023-01-13',
|
|
214
|
-
value: 39213,
|
|
215
|
-
surplus: 281485241.99383223,
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
group: 'Dataset 3',
|
|
219
|
-
date: '2023-01-17',
|
|
220
|
-
value: 61213,
|
|
221
|
-
surplus: 77655008.12585072,
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
group: 'Dataset 4',
|
|
225
|
-
date: '2023-01-02',
|
|
226
|
-
value: 20000,
|
|
227
|
-
surplus: 138468385.58061224,
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
group: 'Dataset 4',
|
|
231
|
-
date: '2023-01-06',
|
|
232
|
-
value: 37312,
|
|
233
|
-
surplus: 703848952.2932228,
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
group: 'Dataset 4',
|
|
237
|
-
date: '2023-01-08',
|
|
238
|
-
value: 51432,
|
|
239
|
-
surplus: 721135448.0965896,
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
group: 'Dataset 4',
|
|
243
|
-
date: '2023-01-15',
|
|
244
|
-
value: 25332,
|
|
245
|
-
surplus: 524200058.75680393,
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
group: 'Dataset 4',
|
|
249
|
-
date: '2023-01-19',
|
|
250
|
-
value: null,
|
|
251
|
-
surplus: 4347.704175756872,
|
|
252
|
-
},
|
|
253
|
-
],
|
|
254
|
-
options: {
|
|
255
|
-
title: 'Bubble (time series)',
|
|
256
|
-
axes: {
|
|
257
|
-
bottom: {
|
|
258
|
-
title: '2023 Annual Sales Figures',
|
|
259
|
-
scaleType: 'time',
|
|
260
|
-
mapsTo: 'date',
|
|
261
|
-
},
|
|
262
|
-
left: {
|
|
263
|
-
mapsTo: 'value',
|
|
131
|
+
export const BubbleTimeSeries = {
|
|
132
|
+
render: Template,
|
|
133
|
+
|
|
134
|
+
args: {
|
|
135
|
+
isInverse: false,
|
|
136
|
+
type: CarbonChartType.bubble,
|
|
137
|
+
dataSet: [
|
|
138
|
+
{
|
|
139
|
+
group: 'Dataset 1',
|
|
140
|
+
date: '2023-01-01',
|
|
141
|
+
value: 50000,
|
|
142
|
+
surplus: 1108792759.4591982,
|
|
264
143
|
},
|
|
144
|
+
{
|
|
145
|
+
group: 'Dataset 1',
|
|
146
|
+
date: '2023-01-05',
|
|
147
|
+
value: 65000,
|
|
148
|
+
surplus: 590247271.3872744,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
group: 'Dataset 1',
|
|
152
|
+
date: '2023-01-08',
|
|
153
|
+
value: null,
|
|
154
|
+
surplus: 9219.520929038921,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
group: 'Dataset 1',
|
|
158
|
+
date: '2023-01-13',
|
|
159
|
+
value: 49213,
|
|
160
|
+
surplus: 1144546546.5725653,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
group: 'Dataset 1',
|
|
164
|
+
date: '2023-01-17',
|
|
165
|
+
value: 51213,
|
|
166
|
+
surplus: 1206431312.2321992,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
group: 'Dataset 2',
|
|
170
|
+
date: '2023-01-02',
|
|
171
|
+
value: 0,
|
|
172
|
+
surplus: 9107.915339546651,
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
group: 'Dataset 2',
|
|
176
|
+
date: '2023-01-06',
|
|
177
|
+
value: 57312,
|
|
178
|
+
surplus: 1297879289.3455367,
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
group: 'Dataset 2',
|
|
182
|
+
date: '2023-01-08',
|
|
183
|
+
value: 27432,
|
|
184
|
+
surplus: 254653461.2692332,
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
group: 'Dataset 2',
|
|
188
|
+
date: '2023-01-15',
|
|
189
|
+
value: 70323,
|
|
190
|
+
surplus: 791440614.5922209,
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
group: 'Dataset 2',
|
|
194
|
+
date: '2023-01-19',
|
|
195
|
+
value: 21300,
|
|
196
|
+
surplus: 87235499.55803385,
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
group: 'Dataset 3',
|
|
200
|
+
date: '2023-01-01',
|
|
201
|
+
value: 40000,
|
|
202
|
+
surplus: 99661858.42808129,
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
group: 'Dataset 3',
|
|
206
|
+
date: '2023-01-05',
|
|
207
|
+
value: null,
|
|
208
|
+
surplus: 4582.283257286785,
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
group: 'Dataset 3',
|
|
212
|
+
date: '2023-01-08',
|
|
213
|
+
value: 18000,
|
|
214
|
+
surplus: 388038660.7993739,
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
group: 'Dataset 3',
|
|
218
|
+
date: '2023-01-13',
|
|
219
|
+
value: 39213,
|
|
220
|
+
surplus: 281485241.99383223,
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
group: 'Dataset 3',
|
|
224
|
+
date: '2023-01-17',
|
|
225
|
+
value: 61213,
|
|
226
|
+
surplus: 77655008.12585072,
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
group: 'Dataset 4',
|
|
230
|
+
date: '2023-01-02',
|
|
231
|
+
value: 20000,
|
|
232
|
+
surplus: 138468385.58061224,
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
group: 'Dataset 4',
|
|
236
|
+
date: '2023-01-06',
|
|
237
|
+
value: 37312,
|
|
238
|
+
surplus: 703848952.2932228,
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
group: 'Dataset 4',
|
|
242
|
+
date: '2023-01-08',
|
|
243
|
+
value: 51432,
|
|
244
|
+
surplus: 721135448.0965896,
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
group: 'Dataset 4',
|
|
248
|
+
date: '2023-01-15',
|
|
249
|
+
value: 25332,
|
|
250
|
+
surplus: 524200058.75680393,
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
group: 'Dataset 4',
|
|
254
|
+
date: '2023-01-19',
|
|
255
|
+
value: null,
|
|
256
|
+
surplus: 4347.704175756872,
|
|
257
|
+
},
|
|
258
|
+
],
|
|
259
|
+
options: {
|
|
260
|
+
title: 'Bubble (time series)',
|
|
261
|
+
axes: {
|
|
262
|
+
bottom: {
|
|
263
|
+
title: '2023 Annual Sales Figures',
|
|
264
|
+
scaleType: 'time',
|
|
265
|
+
mapsTo: 'date',
|
|
266
|
+
},
|
|
267
|
+
left: {
|
|
268
|
+
mapsTo: 'value',
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
bubble: {
|
|
272
|
+
radiusMapsTo: 'surplus',
|
|
273
|
+
},
|
|
274
|
+
height: '400px',
|
|
265
275
|
},
|
|
266
|
-
bubble: {
|
|
267
|
-
radiusMapsTo: 'surplus',
|
|
268
|
-
},
|
|
269
|
-
height: '400px',
|
|
270
276
|
},
|
|
271
277
|
};
|
|
272
278
|
|
|
273
|
-
export const BubbleDiscrete =
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
group: 'Dataset 1',
|
|
286
|
-
key: 'More',
|
|
287
|
-
value: 23500,
|
|
288
|
-
surplus: 15000,
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
group: 'Dataset 1',
|
|
292
|
-
key: 'Sold',
|
|
293
|
-
value: 53100,
|
|
294
|
-
surplus: 32000,
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
group: 'Dataset 1',
|
|
298
|
-
key: 'Restocking',
|
|
299
|
-
value: 42300,
|
|
300
|
-
surplus: 53000,
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
group: 'Dataset 1',
|
|
304
|
-
key: 'Misc',
|
|
305
|
-
value: 12300,
|
|
306
|
-
surplus: 34000,
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
group: 'Dataset 2',
|
|
310
|
-
key: 'Qty',
|
|
311
|
-
value: 34200,
|
|
312
|
-
surplus: 23000,
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
group: 'Dataset 2',
|
|
316
|
-
key: 'More',
|
|
317
|
-
value: 53200,
|
|
318
|
-
surplus: 31000,
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
group: 'Dataset 2',
|
|
322
|
-
key: 'Sold',
|
|
323
|
-
value: 42300,
|
|
324
|
-
surplus: 13000,
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
group: 'Dataset 2',
|
|
328
|
-
key: 'Restocking',
|
|
329
|
-
value: 13400,
|
|
330
|
-
surplus: 55000,
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
group: 'Dataset 2',
|
|
334
|
-
key: 'Misc',
|
|
335
|
-
value: 0,
|
|
336
|
-
surplus: 12000,
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
group: 'Dataset 3',
|
|
340
|
-
key: 'Qty',
|
|
341
|
-
value: 41200,
|
|
342
|
-
surplus: 32000,
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
group: 'Dataset 3',
|
|
346
|
-
key: 'More',
|
|
347
|
-
value: 18400,
|
|
348
|
-
surplus: 12000,
|
|
349
|
-
},
|
|
350
|
-
{
|
|
351
|
-
group: 'Dataset 3',
|
|
352
|
-
key: 'Sold',
|
|
353
|
-
value: 34210,
|
|
354
|
-
surplus: 18000,
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
group: 'Dataset 3',
|
|
358
|
-
key: 'Restocking',
|
|
359
|
-
value: 1400,
|
|
360
|
-
surplus: 21000,
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
group: 'Dataset 3',
|
|
364
|
-
key: 'Misc',
|
|
365
|
-
value: 42100,
|
|
366
|
-
surplus: 22000,
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
group: 'Dataset 4',
|
|
370
|
-
key: 'Qty',
|
|
371
|
-
value: 22000,
|
|
372
|
-
surplus: 32000,
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
group: 'Dataset 4',
|
|
376
|
-
key: 'More',
|
|
377
|
-
value: 4000,
|
|
378
|
-
surplus: 32000,
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
group: 'Dataset 4',
|
|
382
|
-
key: 'Sold',
|
|
383
|
-
value: 9000,
|
|
384
|
-
surplus: 43000,
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
group: 'Dataset 4',
|
|
388
|
-
key: 'Restocking',
|
|
389
|
-
value: 24000,
|
|
390
|
-
surplus: 43000,
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
group: 'Dataset 4',
|
|
394
|
-
key: 'Misc',
|
|
395
|
-
value: 7000,
|
|
396
|
-
surplus: 21000,
|
|
397
|
-
},
|
|
398
|
-
],
|
|
399
|
-
options: {
|
|
400
|
-
title: 'Bubble (discrete)',
|
|
401
|
-
axes: {
|
|
402
|
-
bottom: {
|
|
403
|
-
title: '2023 Annual Sales Figures',
|
|
404
|
-
scaleType: 'labels',
|
|
405
|
-
mapsTo: 'key',
|
|
406
|
-
},
|
|
407
|
-
left: {
|
|
408
|
-
mapsTo: 'value',
|
|
279
|
+
export const BubbleDiscrete = {
|
|
280
|
+
render: Template,
|
|
281
|
+
|
|
282
|
+
args: {
|
|
283
|
+
isInverse: false,
|
|
284
|
+
type: CarbonChartType.bubble,
|
|
285
|
+
dataSet: [
|
|
286
|
+
{
|
|
287
|
+
group: 'Dataset 1',
|
|
288
|
+
key: 'Qty',
|
|
289
|
+
value: 8000,
|
|
290
|
+
surplus: 50000,
|
|
409
291
|
},
|
|
292
|
+
{
|
|
293
|
+
group: 'Dataset 1',
|
|
294
|
+
key: 'More',
|
|
295
|
+
value: 23500,
|
|
296
|
+
surplus: 15000,
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
group: 'Dataset 1',
|
|
300
|
+
key: 'Sold',
|
|
301
|
+
value: 53100,
|
|
302
|
+
surplus: 32000,
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
group: 'Dataset 1',
|
|
306
|
+
key: 'Restocking',
|
|
307
|
+
value: 42300,
|
|
308
|
+
surplus: 53000,
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
group: 'Dataset 1',
|
|
312
|
+
key: 'Misc',
|
|
313
|
+
value: 12300,
|
|
314
|
+
surplus: 34000,
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
group: 'Dataset 2',
|
|
318
|
+
key: 'Qty',
|
|
319
|
+
value: 34200,
|
|
320
|
+
surplus: 23000,
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
group: 'Dataset 2',
|
|
324
|
+
key: 'More',
|
|
325
|
+
value: 53200,
|
|
326
|
+
surplus: 31000,
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
group: 'Dataset 2',
|
|
330
|
+
key: 'Sold',
|
|
331
|
+
value: 42300,
|
|
332
|
+
surplus: 13000,
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
group: 'Dataset 2',
|
|
336
|
+
key: 'Restocking',
|
|
337
|
+
value: 13400,
|
|
338
|
+
surplus: 55000,
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
group: 'Dataset 2',
|
|
342
|
+
key: 'Misc',
|
|
343
|
+
value: 0,
|
|
344
|
+
surplus: 12000,
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
group: 'Dataset 3',
|
|
348
|
+
key: 'Qty',
|
|
349
|
+
value: 41200,
|
|
350
|
+
surplus: 32000,
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
group: 'Dataset 3',
|
|
354
|
+
key: 'More',
|
|
355
|
+
value: 18400,
|
|
356
|
+
surplus: 12000,
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
group: 'Dataset 3',
|
|
360
|
+
key: 'Sold',
|
|
361
|
+
value: 34210,
|
|
362
|
+
surplus: 18000,
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
group: 'Dataset 3',
|
|
366
|
+
key: 'Restocking',
|
|
367
|
+
value: 1400,
|
|
368
|
+
surplus: 21000,
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
group: 'Dataset 3',
|
|
372
|
+
key: 'Misc',
|
|
373
|
+
value: 42100,
|
|
374
|
+
surplus: 22000,
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
group: 'Dataset 4',
|
|
378
|
+
key: 'Qty',
|
|
379
|
+
value: 22000,
|
|
380
|
+
surplus: 32000,
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
group: 'Dataset 4',
|
|
384
|
+
key: 'More',
|
|
385
|
+
value: 4000,
|
|
386
|
+
surplus: 32000,
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
group: 'Dataset 4',
|
|
390
|
+
key: 'Sold',
|
|
391
|
+
value: 9000,
|
|
392
|
+
surplus: 43000,
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
group: 'Dataset 4',
|
|
396
|
+
key: 'Restocking',
|
|
397
|
+
value: 24000,
|
|
398
|
+
surplus: 43000,
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
group: 'Dataset 4',
|
|
402
|
+
key: 'Misc',
|
|
403
|
+
value: 7000,
|
|
404
|
+
surplus: 21000,
|
|
405
|
+
},
|
|
406
|
+
],
|
|
407
|
+
options: {
|
|
408
|
+
title: 'Bubble (discrete)',
|
|
409
|
+
axes: {
|
|
410
|
+
bottom: {
|
|
411
|
+
title: '2023 Annual Sales Figures',
|
|
412
|
+
scaleType: 'labels',
|
|
413
|
+
mapsTo: 'key',
|
|
414
|
+
},
|
|
415
|
+
left: {
|
|
416
|
+
mapsTo: 'value',
|
|
417
|
+
},
|
|
418
|
+
},
|
|
419
|
+
bubble: {
|
|
420
|
+
radiusMapsTo: 'surplus',
|
|
421
|
+
},
|
|
422
|
+
height: '400px',
|
|
410
423
|
},
|
|
411
|
-
bubble: {
|
|
412
|
-
radiusMapsTo: 'surplus',
|
|
413
|
-
},
|
|
414
|
-
height: '400px',
|
|
415
424
|
},
|
|
416
425
|
};
|
|
417
426
|
|
|
418
|
-
export const BubbleDualDiscreteAxes =
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
group: '2014',
|
|
431
|
-
product: 'Mainframe',
|
|
432
|
-
value: 340,
|
|
433
|
-
problem: 'Skills',
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
group: '2014',
|
|
437
|
-
product: 'Cloud',
|
|
438
|
-
value: 202,
|
|
439
|
-
problem: 'Software',
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
group: '2014',
|
|
443
|
-
product: 'Mainframe',
|
|
444
|
-
value: 64,
|
|
445
|
-
problem: 'Software',
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
group: '2014',
|
|
449
|
-
product: 'Cloud',
|
|
450
|
-
value: 102,
|
|
451
|
-
problem: 'Staffing',
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
group: '2014',
|
|
455
|
-
product: 'Mainframe',
|
|
456
|
-
value: 88,
|
|
457
|
-
problem: 'Staffing',
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
group: '2016',
|
|
461
|
-
product: 'Cloud',
|
|
462
|
-
value: 136,
|
|
463
|
-
problem: 'Skills',
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
group: '2016',
|
|
467
|
-
product: 'Mainframe',
|
|
468
|
-
value: 74,
|
|
469
|
-
problem: 'Skills',
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
group: '2016',
|
|
473
|
-
product: 'Cloud',
|
|
474
|
-
value: 45,
|
|
475
|
-
problem: 'Software',
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
group: '2016',
|
|
479
|
-
product: 'Mainframe',
|
|
480
|
-
value: 24,
|
|
481
|
-
problem: 'Software',
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
group: '2016',
|
|
485
|
-
product: 'Cloud',
|
|
486
|
-
value: 36,
|
|
487
|
-
problem: 'Staffing',
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
group: '2016',
|
|
491
|
-
product: 'Mainframe',
|
|
492
|
-
value: 44,
|
|
493
|
-
problem: 'Staffing',
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
group: '2018',
|
|
497
|
-
product: 'Cloud',
|
|
498
|
-
value: 78,
|
|
499
|
-
problem: 'Skills',
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
group: '2018',
|
|
503
|
-
product: 'Mainframe',
|
|
504
|
-
value: 94,
|
|
505
|
-
problem: 'Skills',
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
group: '2018',
|
|
509
|
-
product: 'Cloud',
|
|
510
|
-
value: 56,
|
|
511
|
-
problem: 'Software',
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
group: '2018',
|
|
515
|
-
product: 'Mainframe',
|
|
516
|
-
value: 104,
|
|
517
|
-
problem: 'Software',
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
group: '2018',
|
|
521
|
-
product: 'Cloud',
|
|
522
|
-
value: 146,
|
|
523
|
-
problem: 'Staffing',
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
group: '2018',
|
|
527
|
-
product: 'Mainframe',
|
|
528
|
-
value: 274,
|
|
529
|
-
problem: 'Staffing',
|
|
530
|
-
},
|
|
531
|
-
],
|
|
532
|
-
options: {
|
|
533
|
-
title: 'Bubble (dual discrete axes)',
|
|
534
|
-
axes: {
|
|
535
|
-
bottom: {
|
|
536
|
-
title: 'Problems',
|
|
537
|
-
scaleType: 'labels',
|
|
538
|
-
mapsTo: 'problem',
|
|
539
|
-
},
|
|
540
|
-
left: {
|
|
541
|
-
scaleType: 'labels',
|
|
542
|
-
mapsTo: 'product',
|
|
543
|
-
title: 'Products',
|
|
427
|
+
export const BubbleDualDiscreteAxes = {
|
|
428
|
+
render: Template,
|
|
429
|
+
|
|
430
|
+
args: {
|
|
431
|
+
isInverse: false,
|
|
432
|
+
type: CarbonChartType.bubble,
|
|
433
|
+
dataSet: [
|
|
434
|
+
{
|
|
435
|
+
group: '2014',
|
|
436
|
+
product: 'Cloud',
|
|
437
|
+
value: 162,
|
|
438
|
+
problem: 'Skills',
|
|
544
439
|
},
|
|
440
|
+
{
|
|
441
|
+
group: '2014',
|
|
442
|
+
product: 'Mainframe',
|
|
443
|
+
value: 340,
|
|
444
|
+
problem: 'Skills',
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
group: '2014',
|
|
448
|
+
product: 'Cloud',
|
|
449
|
+
value: 202,
|
|
450
|
+
problem: 'Software',
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
group: '2014',
|
|
454
|
+
product: 'Mainframe',
|
|
455
|
+
value: 64,
|
|
456
|
+
problem: 'Software',
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
group: '2014',
|
|
460
|
+
product: 'Cloud',
|
|
461
|
+
value: 102,
|
|
462
|
+
problem: 'Staffing',
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
group: '2014',
|
|
466
|
+
product: 'Mainframe',
|
|
467
|
+
value: 88,
|
|
468
|
+
problem: 'Staffing',
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
group: '2016',
|
|
472
|
+
product: 'Cloud',
|
|
473
|
+
value: 136,
|
|
474
|
+
problem: 'Skills',
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
group: '2016',
|
|
478
|
+
product: 'Mainframe',
|
|
479
|
+
value: 74,
|
|
480
|
+
problem: 'Skills',
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
group: '2016',
|
|
484
|
+
product: 'Cloud',
|
|
485
|
+
value: 45,
|
|
486
|
+
problem: 'Software',
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
group: '2016',
|
|
490
|
+
product: 'Mainframe',
|
|
491
|
+
value: 24,
|
|
492
|
+
problem: 'Software',
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
group: '2016',
|
|
496
|
+
product: 'Cloud',
|
|
497
|
+
value: 36,
|
|
498
|
+
problem: 'Staffing',
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
group: '2016',
|
|
502
|
+
product: 'Mainframe',
|
|
503
|
+
value: 44,
|
|
504
|
+
problem: 'Staffing',
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
group: '2018',
|
|
508
|
+
product: 'Cloud',
|
|
509
|
+
value: 78,
|
|
510
|
+
problem: 'Skills',
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
group: '2018',
|
|
514
|
+
product: 'Mainframe',
|
|
515
|
+
value: 94,
|
|
516
|
+
problem: 'Skills',
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
group: '2018',
|
|
520
|
+
product: 'Cloud',
|
|
521
|
+
value: 56,
|
|
522
|
+
problem: 'Software',
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
group: '2018',
|
|
526
|
+
product: 'Mainframe',
|
|
527
|
+
value: 104,
|
|
528
|
+
problem: 'Software',
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
group: '2018',
|
|
532
|
+
product: 'Cloud',
|
|
533
|
+
value: 146,
|
|
534
|
+
problem: 'Staffing',
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
group: '2018',
|
|
538
|
+
product: 'Mainframe',
|
|
539
|
+
value: 274,
|
|
540
|
+
problem: 'Staffing',
|
|
541
|
+
},
|
|
542
|
+
],
|
|
543
|
+
options: {
|
|
544
|
+
title: 'Bubble (dual discrete axes)',
|
|
545
|
+
axes: {
|
|
546
|
+
bottom: {
|
|
547
|
+
title: 'Problems',
|
|
548
|
+
scaleType: 'labels',
|
|
549
|
+
mapsTo: 'problem',
|
|
550
|
+
},
|
|
551
|
+
left: {
|
|
552
|
+
scaleType: 'labels',
|
|
553
|
+
mapsTo: 'product',
|
|
554
|
+
title: 'Products',
|
|
555
|
+
},
|
|
556
|
+
},
|
|
557
|
+
bubble: {
|
|
558
|
+
radiusMapsTo: 'value',
|
|
559
|
+
},
|
|
560
|
+
height: '400px',
|
|
545
561
|
},
|
|
546
|
-
bubble: {
|
|
547
|
-
radiusMapsTo: 'value',
|
|
548
|
-
},
|
|
549
|
-
height: '400px',
|
|
550
562
|
},
|
|
551
563
|
};
|
|
552
564
|
|
|
553
|
-
export const BubbleEmptyState =
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
565
|
+
export const BubbleEmptyState = {
|
|
566
|
+
render: Template,
|
|
567
|
+
|
|
568
|
+
args: {
|
|
569
|
+
isInverse: false,
|
|
570
|
+
type: CarbonChartType.bubble,
|
|
571
|
+
dataSet: [],
|
|
572
|
+
options: {
|
|
573
|
+
title: 'Bubble (empty state)',
|
|
574
|
+
axes: {
|
|
575
|
+
bottom: {
|
|
576
|
+
title: 'No. of employees',
|
|
577
|
+
mapsTo: 'sales',
|
|
578
|
+
includeZero: false,
|
|
579
|
+
},
|
|
580
|
+
left: {
|
|
581
|
+
title: 'Annual sales',
|
|
582
|
+
mapsTo: 'profit',
|
|
583
|
+
includeZero: false,
|
|
584
|
+
},
|
|
570
585
|
},
|
|
586
|
+
bubble: {
|
|
587
|
+
radiusMapsTo: 'surplus',
|
|
588
|
+
},
|
|
589
|
+
height: '400px',
|
|
571
590
|
},
|
|
572
|
-
bubble: {
|
|
573
|
-
radiusMapsTo: 'surplus',
|
|
574
|
-
},
|
|
575
|
-
height: '400px',
|
|
576
591
|
},
|
|
577
592
|
};
|
|
578
593
|
|
|
579
|
-
export const BubbleSkeleton =
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
594
|
+
export const BubbleSkeleton = {
|
|
595
|
+
render: Template,
|
|
596
|
+
|
|
597
|
+
args: {
|
|
598
|
+
isInverse: false,
|
|
599
|
+
type: CarbonChartType.bubble,
|
|
600
|
+
dataSet: [],
|
|
601
|
+
options: {
|
|
602
|
+
title: 'Bubble (skeleton)',
|
|
603
|
+
axes: {
|
|
604
|
+
bottom: {
|
|
605
|
+
title: 'No. of employees',
|
|
606
|
+
mapsTo: 'sales',
|
|
607
|
+
includeZero: false,
|
|
608
|
+
},
|
|
609
|
+
left: {
|
|
610
|
+
title: 'Annual sales',
|
|
611
|
+
mapsTo: 'profit',
|
|
612
|
+
includeZero: false,
|
|
613
|
+
},
|
|
596
614
|
},
|
|
615
|
+
bubble: {
|
|
616
|
+
radiusMapsTo: 'surplus',
|
|
617
|
+
},
|
|
618
|
+
data: {
|
|
619
|
+
loading: true,
|
|
620
|
+
},
|
|
621
|
+
height: '400px',
|
|
597
622
|
},
|
|
598
|
-
bubble: {
|
|
599
|
-
radiusMapsTo: 'surplus',
|
|
600
|
-
},
|
|
601
|
-
data: {
|
|
602
|
-
loading: true,
|
|
603
|
-
},
|
|
604
|
-
height: '400px',
|
|
605
623
|
},
|
|
606
624
|
};
|