@react-magma/charts 12.0.1-next.0 → 12.0.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 (50) hide show
  1. package/dist/charts.js +2450 -1
  2. package/dist/charts.js.map +1 -1
  3. package/dist/charts.modern.module.js +2428 -1
  4. package/dist/charts.modern.module.js.map +1 -1
  5. package/dist/charts.umd.js +48555 -1
  6. package/dist/charts.umd.js.map +1 -1
  7. package/dist/components/CarbonChart/CarbonChart.d.ts +42 -41
  8. package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +310 -310
  9. package/dist/components/CarbonChart/CarbonChartAreaStacked.stories.d.ts +136 -136
  10. package/dist/components/CarbonChart/CarbonChartBar.stories.d.ts +214 -214
  11. package/dist/components/CarbonChart/CarbonChartBarFloating.stories.d.ts +82 -82
  12. package/dist/components/CarbonChart/CarbonChartBarGrouped.stories.d.ts +234 -234
  13. package/dist/components/CarbonChart/CarbonChartBarStacked.stories.d.ts +266 -266
  14. package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +53 -53
  15. package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +196 -196
  16. package/dist/components/CarbonChart/CarbonChartBullet.stories.d.ts +35 -35
  17. package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +580 -580
  18. package/dist/components/CarbonChart/CarbonChartDonut.stories.d.ts +120 -120
  19. package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +43 -43
  20. package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +89 -89
  21. package/dist/components/CarbonChart/CarbonChartLine.stories.d.ts +577 -577
  22. package/dist/components/CarbonChart/CarbonChartLollipop.stories.d.ts +55 -55
  23. package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +127 -127
  24. package/dist/components/CarbonChart/CarbonChartPie.stories.d.ts +101 -101
  25. package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +98 -98
  26. package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +173 -173
  27. package/dist/components/CarbonChart/CarbonChartSparkline.stories.d.ts +51 -51
  28. package/dist/components/CarbonChart/CarbonChartStep.stories.d.ts +38 -38
  29. package/dist/components/CarbonChart/index.d.ts +1 -1
  30. package/dist/components/LineChart/Chart.d.ts +27 -27
  31. package/dist/components/LineChart/ChartDataTable.d.ts +17 -17
  32. package/dist/components/LineChart/CustomAxisComponent.d.ts +3 -3
  33. package/dist/components/LineChart/CustomPointComponent.d.ts +17 -17
  34. package/dist/components/LineChart/DataTable.d.ts +5 -5
  35. package/dist/components/LineChart/GraphTooltip.d.ts +3 -3
  36. package/dist/components/LineChart/LegendButton.d.ts +6 -6
  37. package/dist/components/LineChart/LineChart.d.ts +67 -67
  38. package/dist/components/LineChart/LineChart.stories.d.ts +113 -134
  39. package/dist/components/LineChart/index.d.ts +1 -1
  40. package/dist/components/LineChart/magma-charts.d.ts +1 -1
  41. package/dist/index.d.ts +2 -2
  42. package/package.json +10 -5
  43. package/src/components/CarbonChart/CarbonChart.tsx +12 -16
  44. package/src/components/CarbonChart/carbon-charts.css +7303 -0
  45. package/dist/components/CarbonChart/CarbonChart.test.d.ts +0 -1
  46. package/dist/components/CarbonChart/embeddedStyles.d.ts +0 -1
  47. package/dist/components/LineChart/ChartDataTable.test.d.ts +0 -1
  48. package/dist/components/LineChart/LineChart.test.d.ts +0 -1
  49. package/dist/components/LineChart/test/exampleChartData.d.ts +0 -40
  50. package/src/components/CarbonChart/embeddedStyles.ts +0 -24880
@@ -1,266 +1,266 @@
1
- import { CarbonChartProps, CarbonChartType } from '.';
2
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
3
- export default _default;
4
- export declare const VerticalStackedBarDiscrete: {
5
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
6
- args: {
7
- isInverse: boolean;
8
- type: CarbonChartType;
9
- dataSet: {
10
- group: string;
11
- key: string;
12
- value: number;
13
- }[];
14
- options: {
15
- title: string;
16
- axes: {
17
- left: {
18
- mapsTo: string;
19
- stacked: boolean;
20
- };
21
- bottom: {
22
- mapsTo: string;
23
- scaleType: string;
24
- };
25
- };
26
- height: string;
27
- };
28
- };
29
- };
30
- export declare const VerticalStackedBarDivergent: {
31
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
32
- args: {
33
- isInverse: boolean;
34
- type: CarbonChartType;
35
- dataSet: {
36
- group: string;
37
- key: string;
38
- value: number;
39
- }[];
40
- options: {
41
- title: string;
42
- axes: {
43
- left: {
44
- mapsTo: string;
45
- stacked: boolean;
46
- };
47
- bottom: {
48
- mapsTo: string;
49
- scaleType: string;
50
- };
51
- };
52
- height: string;
53
- };
54
- };
55
- };
56
- export declare const VerticalStackedBarTimeSeries: {
57
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
58
- args: {
59
- isInverse: boolean;
60
- type: CarbonChartType;
61
- dataSet: {
62
- group: string;
63
- date: string;
64
- value: number;
65
- }[];
66
- options: {
67
- title: string;
68
- axes: {
69
- left: {
70
- mapsTo: string;
71
- stacked: boolean;
72
- };
73
- bottom: {
74
- mapsTo: string;
75
- scaleType: string;
76
- };
77
- };
78
- height: string;
79
- };
80
- };
81
- };
82
- export declare const VerticalStackedBarShortIntervalTimeSeries: {
83
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
84
- args: {
85
- isInverse: boolean;
86
- type: CarbonChartType;
87
- dataSet: {
88
- group: string;
89
- date: string;
90
- value: number;
91
- }[];
92
- options: {
93
- title: string;
94
- axes: {
95
- left: {
96
- mapsTo: string;
97
- stacked: boolean;
98
- };
99
- bottom: {
100
- mapsTo: string;
101
- scaleType: string;
102
- };
103
- };
104
- height: string;
105
- };
106
- };
107
- };
108
- export declare const VerticalStackedBarEmptyState: {
109
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
110
- args: {
111
- isInverse: boolean;
112
- type: CarbonChartType;
113
- dataSet: never[];
114
- options: {
115
- title: string;
116
- axes: {
117
- left: {};
118
- bottom: {
119
- scaleType: string;
120
- };
121
- };
122
- height: string;
123
- };
124
- };
125
- };
126
- export declare const VerticalStackedBarSkeleton: {
127
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
128
- args: {
129
- isInverse: boolean;
130
- type: CarbonChartType;
131
- dataSet: never[];
132
- options: {
133
- title: string;
134
- axes: {
135
- left: {};
136
- bottom: {
137
- scaleType: string;
138
- };
139
- };
140
- data: {
141
- loading: boolean;
142
- };
143
- height: string;
144
- };
145
- };
146
- };
147
- export declare const HorizontalStackedBarDiscrete: {
148
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
149
- args: {
150
- isInverse: boolean;
151
- type: CarbonChartType;
152
- dataSet: {
153
- group: string;
154
- key: string;
155
- value: number;
156
- }[];
157
- options: {
158
- title: string;
159
- axes: {
160
- left: {
161
- scaleType: string;
162
- mapsTo: string;
163
- };
164
- bottom: {
165
- stacked: boolean;
166
- mapsTo: string;
167
- };
168
- };
169
- height: string;
170
- };
171
- };
172
- };
173
- export declare const HorizontalStackedBarTimeSeries: {
174
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
175
- args: {
176
- isInverse: boolean;
177
- type: CarbonChartType;
178
- dataSet: {
179
- group: string;
180
- date: string;
181
- value: number;
182
- }[];
183
- options: {
184
- title: string;
185
- axes: {
186
- left: {
187
- scaleType: string;
188
- mapsTo: string;
189
- };
190
- bottom: {
191
- stacked: boolean;
192
- mapsTo: string;
193
- };
194
- };
195
- height: string;
196
- };
197
- };
198
- };
199
- export declare const HorizontalStackedBarEmptyState: {
200
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
201
- args: {
202
- isInverse: boolean;
203
- type: CarbonChartType;
204
- dataSet: never[];
205
- options: {
206
- title: string;
207
- axes: {
208
- left: {
209
- scaleType: string;
210
- };
211
- bottom: {};
212
- };
213
- height: string;
214
- };
215
- };
216
- };
217
- export declare const HorizontalStackedBarSkeleton: {
218
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
219
- args: {
220
- isInverse: boolean;
221
- type: CarbonChartType;
222
- dataSet: never[];
223
- options: {
224
- title: string;
225
- axes: {
226
- left: {
227
- scaleType: string;
228
- };
229
- bottom: {};
230
- };
231
- data: {
232
- loading: boolean;
233
- };
234
- height: string;
235
- };
236
- };
237
- };
238
- export declare const CustomTicksStackedBar: {
239
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
240
- args: {
241
- isInverse: boolean;
242
- type: CarbonChartType;
243
- dataSet: {
244
- group: string;
245
- date: string;
246
- value: number;
247
- }[];
248
- options: {
249
- title: string;
250
- axes: {
251
- left: {
252
- mapsTo: string;
253
- stacked: boolean;
254
- };
255
- bottom: {
256
- mapsTo: string;
257
- scaleType: string;
258
- ticks: {
259
- values: Date[];
260
- };
261
- };
262
- };
263
- height: string;
264
- };
265
- };
266
- };
1
+ import { CarbonChartProps, CarbonChartType } from '.';
2
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
3
+ export default _default;
4
+ export declare const VerticalStackedBarDiscrete: {
5
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
6
+ args: {
7
+ isInverse: boolean;
8
+ type: CarbonChartType;
9
+ dataSet: {
10
+ group: string;
11
+ key: string;
12
+ value: number;
13
+ }[];
14
+ options: {
15
+ title: string;
16
+ axes: {
17
+ left: {
18
+ mapsTo: string;
19
+ stacked: boolean;
20
+ };
21
+ bottom: {
22
+ mapsTo: string;
23
+ scaleType: string;
24
+ };
25
+ };
26
+ height: string;
27
+ };
28
+ };
29
+ };
30
+ export declare const VerticalStackedBarDivergent: {
31
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
32
+ args: {
33
+ isInverse: boolean;
34
+ type: CarbonChartType;
35
+ dataSet: {
36
+ group: string;
37
+ key: string;
38
+ value: number;
39
+ }[];
40
+ options: {
41
+ title: string;
42
+ axes: {
43
+ left: {
44
+ mapsTo: string;
45
+ stacked: boolean;
46
+ };
47
+ bottom: {
48
+ mapsTo: string;
49
+ scaleType: string;
50
+ };
51
+ };
52
+ height: string;
53
+ };
54
+ };
55
+ };
56
+ export declare const VerticalStackedBarTimeSeries: {
57
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
58
+ args: {
59
+ isInverse: boolean;
60
+ type: CarbonChartType;
61
+ dataSet: {
62
+ group: string;
63
+ date: string;
64
+ value: number;
65
+ }[];
66
+ options: {
67
+ title: string;
68
+ axes: {
69
+ left: {
70
+ mapsTo: string;
71
+ stacked: boolean;
72
+ };
73
+ bottom: {
74
+ mapsTo: string;
75
+ scaleType: string;
76
+ };
77
+ };
78
+ height: string;
79
+ };
80
+ };
81
+ };
82
+ export declare const VerticalStackedBarShortIntervalTimeSeries: {
83
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
84
+ args: {
85
+ isInverse: boolean;
86
+ type: CarbonChartType;
87
+ dataSet: {
88
+ group: string;
89
+ date: string;
90
+ value: number;
91
+ }[];
92
+ options: {
93
+ title: string;
94
+ axes: {
95
+ left: {
96
+ mapsTo: string;
97
+ stacked: boolean;
98
+ };
99
+ bottom: {
100
+ mapsTo: string;
101
+ scaleType: string;
102
+ };
103
+ };
104
+ height: string;
105
+ };
106
+ };
107
+ };
108
+ export declare const VerticalStackedBarEmptyState: {
109
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
110
+ args: {
111
+ isInverse: boolean;
112
+ type: CarbonChartType;
113
+ dataSet: never[];
114
+ options: {
115
+ title: string;
116
+ axes: {
117
+ left: {};
118
+ bottom: {
119
+ scaleType: string;
120
+ };
121
+ };
122
+ height: string;
123
+ };
124
+ };
125
+ };
126
+ export declare const VerticalStackedBarSkeleton: {
127
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
128
+ args: {
129
+ isInverse: boolean;
130
+ type: CarbonChartType;
131
+ dataSet: never[];
132
+ options: {
133
+ title: string;
134
+ axes: {
135
+ left: {};
136
+ bottom: {
137
+ scaleType: string;
138
+ };
139
+ };
140
+ data: {
141
+ loading: boolean;
142
+ };
143
+ height: string;
144
+ };
145
+ };
146
+ };
147
+ export declare const HorizontalStackedBarDiscrete: {
148
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
149
+ args: {
150
+ isInverse: boolean;
151
+ type: CarbonChartType;
152
+ dataSet: {
153
+ group: string;
154
+ key: string;
155
+ value: number;
156
+ }[];
157
+ options: {
158
+ title: string;
159
+ axes: {
160
+ left: {
161
+ scaleType: string;
162
+ mapsTo: string;
163
+ };
164
+ bottom: {
165
+ stacked: boolean;
166
+ mapsTo: string;
167
+ };
168
+ };
169
+ height: string;
170
+ };
171
+ };
172
+ };
173
+ export declare const HorizontalStackedBarTimeSeries: {
174
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
175
+ args: {
176
+ isInverse: boolean;
177
+ type: CarbonChartType;
178
+ dataSet: {
179
+ group: string;
180
+ date: string;
181
+ value: number;
182
+ }[];
183
+ options: {
184
+ title: string;
185
+ axes: {
186
+ left: {
187
+ scaleType: string;
188
+ mapsTo: string;
189
+ };
190
+ bottom: {
191
+ stacked: boolean;
192
+ mapsTo: string;
193
+ };
194
+ };
195
+ height: string;
196
+ };
197
+ };
198
+ };
199
+ export declare const HorizontalStackedBarEmptyState: {
200
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
201
+ args: {
202
+ isInverse: boolean;
203
+ type: CarbonChartType;
204
+ dataSet: never[];
205
+ options: {
206
+ title: string;
207
+ axes: {
208
+ left: {
209
+ scaleType: string;
210
+ };
211
+ bottom: {};
212
+ };
213
+ height: string;
214
+ };
215
+ };
216
+ };
217
+ export declare const HorizontalStackedBarSkeleton: {
218
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
219
+ args: {
220
+ isInverse: boolean;
221
+ type: CarbonChartType;
222
+ dataSet: never[];
223
+ options: {
224
+ title: string;
225
+ axes: {
226
+ left: {
227
+ scaleType: string;
228
+ };
229
+ bottom: {};
230
+ };
231
+ data: {
232
+ loading: boolean;
233
+ };
234
+ height: string;
235
+ };
236
+ };
237
+ };
238
+ export declare const CustomTicksStackedBar: {
239
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
240
+ args: {
241
+ isInverse: boolean;
242
+ type: CarbonChartType;
243
+ dataSet: {
244
+ group: string;
245
+ date: string;
246
+ value: number;
247
+ }[];
248
+ options: {
249
+ title: string;
250
+ axes: {
251
+ left: {
252
+ mapsTo: string;
253
+ stacked: boolean;
254
+ };
255
+ bottom: {
256
+ mapsTo: string;
257
+ scaleType: string;
258
+ ticks: {
259
+ values: Date[];
260
+ };
261
+ };
262
+ };
263
+ height: string;
264
+ };
265
+ };
266
+ };
@@ -1,53 +1,53 @@
1
- import { CarbonChartProps, CarbonChartType } from '.';
2
- declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
3
- export default _default;
4
- export declare const HorizontalBoxplot: {
5
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
6
- args: {
7
- isInverse: boolean;
8
- type: CarbonChartType;
9
- dataSet: {
10
- group: string;
11
- key: string;
12
- value: number;
13
- }[];
14
- options: {
15
- title: string;
16
- axes: {
17
- bottom: {
18
- mapsTo: string;
19
- };
20
- left: {
21
- scaleType: string;
22
- mapsTo: string;
23
- };
24
- };
25
- height: string;
26
- };
27
- };
28
- };
29
- export declare const VerticalBoxplot: {
30
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
31
- args: {
32
- isInverse: boolean;
33
- type: CarbonChartType;
34
- dataSet: {
35
- group: string;
36
- key: string;
37
- value: number;
38
- }[];
39
- options: {
40
- title: string;
41
- axes: {
42
- left: {
43
- mapsTo: string;
44
- };
45
- bottom: {
46
- scaleType: string;
47
- mapsTo: string;
48
- };
49
- };
50
- height: string;
51
- };
52
- };
53
- };
1
+ import { CarbonChartProps, CarbonChartType } from '.';
2
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
3
+ export default _default;
4
+ export declare const HorizontalBoxplot: {
5
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
6
+ args: {
7
+ isInverse: boolean;
8
+ type: CarbonChartType;
9
+ dataSet: {
10
+ group: string;
11
+ key: string;
12
+ value: number;
13
+ }[];
14
+ options: {
15
+ title: string;
16
+ axes: {
17
+ bottom: {
18
+ mapsTo: string;
19
+ };
20
+ left: {
21
+ scaleType: string;
22
+ mapsTo: string;
23
+ };
24
+ };
25
+ height: string;
26
+ };
27
+ };
28
+ };
29
+ export declare const VerticalBoxplot: {
30
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
31
+ args: {
32
+ isInverse: boolean;
33
+ type: CarbonChartType;
34
+ dataSet: {
35
+ group: string;
36
+ key: string;
37
+ value: number;
38
+ }[];
39
+ options: {
40
+ title: string;
41
+ axes: {
42
+ left: {
43
+ mapsTo: string;
44
+ };
45
+ bottom: {
46
+ scaleType: string;
47
+ mapsTo: string;
48
+ };
49
+ };
50
+ height: string;
51
+ };
52
+ };
53
+ };