@react-magma/charts 13.0.0 → 13.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.
- 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 +49165 -1
- package/dist/charts.umd.js.map +1 -1
- package/dist/components/CarbonChart/CarbonChart.d.ts +2 -1
- package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +310 -0
- package/dist/components/CarbonChart/CarbonChartAreaStacked.stories.d.ts +136 -0
- package/dist/components/CarbonChart/CarbonChartBar.stories.d.ts +214 -0
- package/dist/components/CarbonChart/CarbonChartBarFloating.stories.d.ts +82 -0
- package/dist/components/CarbonChart/CarbonChartBarGrouped.stories.d.ts +234 -0
- package/dist/components/CarbonChart/CarbonChartBarStacked.stories.d.ts +266 -0
- package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +53 -0
- package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +196 -0
- package/dist/components/CarbonChart/CarbonChartBullet.stories.d.ts +35 -0
- package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +580 -0
- package/dist/components/CarbonChart/CarbonChartDonut.stories.d.ts +120 -0
- package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +43 -0
- package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +89 -0
- package/dist/components/CarbonChart/CarbonChartLine.stories.d.ts +577 -0
- package/dist/components/CarbonChart/CarbonChartLollipop.stories.d.ts +55 -0
- package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +127 -0
- package/dist/components/CarbonChart/CarbonChartPie.stories.d.ts +101 -0
- package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +98 -0
- package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +173 -0
- package/dist/components/CarbonChart/CarbonChartSparkline.stories.d.ts +51 -0
- package/dist/components/CarbonChart/CarbonChartStep.stories.d.ts +38 -0
- package/dist/components/LineChart/Chart.d.ts +27 -0
- package/dist/components/LineChart/ChartDataTable.d.ts +17 -0
- package/dist/components/LineChart/CustomAxisComponent.d.ts +3 -0
- package/dist/components/LineChart/CustomPointComponent.d.ts +17 -0
- package/dist/components/LineChart/DataTable.d.ts +5 -0
- package/dist/components/LineChart/GraphTooltip.d.ts +3 -0
- package/dist/components/LineChart/LegendButton.d.ts +6 -0
- package/dist/components/LineChart/LineChart.d.ts +67 -0
- package/dist/components/LineChart/LineChart.stories.d.ts +113 -0
- package/dist/components/LineChart/index.d.ts +1 -0
- package/dist/components/LineChart/magma-charts.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +28 -26
- package/src/components/CarbonChart/CarbonChart.test.js +506 -0
- package/src/components/CarbonChart/CarbonChart.tsx +53 -57
- package/src/components/CarbonChart/CarbonChartArea.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartAreaStacked.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartBar.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartBarFloating.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartBarGrouped.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartBarStacked.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartBoxplot.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartBubble.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartBullet.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartCombo.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartDonut.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartGauge.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartHistogram.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartLine.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartLollipop.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartMeter.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartPie.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartRadar.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartScatter.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartSparkline.stories.tsx +1 -1
- package/src/components/CarbonChart/CarbonChartStep.stories.tsx +1 -1
- package/src/components/CarbonChart/carbon-charts.css +24931 -0
- package/src/components/LineChart/Chart.tsx +241 -0
- package/src/components/LineChart/ChartDataTable.test.js +165 -0
- package/src/components/LineChart/ChartDataTable.tsx +135 -0
- package/src/components/LineChart/CustomAxisComponent.tsx +30 -0
- package/src/components/LineChart/CustomPointComponent.tsx +93 -0
- package/src/components/LineChart/DataTable.tsx +57 -0
- package/src/components/LineChart/GraphTooltip.tsx +100 -0
- package/src/components/LineChart/LegendButton.tsx +77 -0
- package/src/components/LineChart/LineChart.stories.tsx +399 -0
- package/src/components/LineChart/LineChart.test.js +501 -0
- package/src/components/LineChart/LineChart.tsx +669 -0
- package/src/components/LineChart/index.ts +1 -0
- package/src/components/LineChart/magma-charts.ts +279 -0
- package/src/components/LineChart/test/exampleChartData.js +289 -0
- package/src/index.ts +1 -0
- package/dist/components/CarbonChart/CarbonChart.test.d.ts +0 -1
- package/dist/components/CarbonChart/embeddedStyles.d.ts +0 -1
- package/src/components/CarbonChart/embeddedStyles.ts +0 -24880
|
@@ -0,0 +1,82 @@
|
|
|
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 HorizontalFloatingBarTimeSeries: {
|
|
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
|
+
date: Date;
|
|
12
|
+
value: number[];
|
|
13
|
+
} | {
|
|
14
|
+
group: string;
|
|
15
|
+
date: Date;
|
|
16
|
+
value: number;
|
|
17
|
+
})[];
|
|
18
|
+
options: {
|
|
19
|
+
title: string;
|
|
20
|
+
axes: {
|
|
21
|
+
left: {
|
|
22
|
+
mapsTo: string;
|
|
23
|
+
scaleType: string;
|
|
24
|
+
};
|
|
25
|
+
bottom: {
|
|
26
|
+
mapsTo: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
height: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const FloatingVerticalBarDiscrete: {
|
|
34
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
35
|
+
args: {
|
|
36
|
+
isInverse: boolean;
|
|
37
|
+
type: CarbonChartType;
|
|
38
|
+
dataSet: {
|
|
39
|
+
group: string;
|
|
40
|
+
value: number[];
|
|
41
|
+
}[];
|
|
42
|
+
options: {
|
|
43
|
+
title: string;
|
|
44
|
+
axes: {
|
|
45
|
+
left: {
|
|
46
|
+
mapsTo: string;
|
|
47
|
+
includeZero: boolean;
|
|
48
|
+
};
|
|
49
|
+
bottom: {
|
|
50
|
+
mapsTo: string;
|
|
51
|
+
scaleType: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
height: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const FloatingHorizontalBarDiscrete: {
|
|
59
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
60
|
+
args: {
|
|
61
|
+
isInverse: boolean;
|
|
62
|
+
type: CarbonChartType;
|
|
63
|
+
dataSet: {
|
|
64
|
+
group: string;
|
|
65
|
+
value: number[];
|
|
66
|
+
}[];
|
|
67
|
+
options: {
|
|
68
|
+
title: string;
|
|
69
|
+
axes: {
|
|
70
|
+
left: {
|
|
71
|
+
mapsTo: string;
|
|
72
|
+
scaleType: string;
|
|
73
|
+
};
|
|
74
|
+
bottom: {
|
|
75
|
+
mapsTo: string;
|
|
76
|
+
includeZero: boolean;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
height: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1,234 @@
|
|
|
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 PreSelectedgroupsGroupedBar: {
|
|
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
|
+
data: {
|
|
17
|
+
selectedGroups: string[];
|
|
18
|
+
};
|
|
19
|
+
axes: {
|
|
20
|
+
left: {
|
|
21
|
+
mapsTo: string;
|
|
22
|
+
};
|
|
23
|
+
bottom: {
|
|
24
|
+
scaleType: string;
|
|
25
|
+
mapsTo: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
height: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const VerticalGroupedBarDiscrete: {
|
|
33
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
34
|
+
args: {
|
|
35
|
+
isInverse: boolean;
|
|
36
|
+
type: CarbonChartType;
|
|
37
|
+
dataSet: {
|
|
38
|
+
group: string;
|
|
39
|
+
key: string;
|
|
40
|
+
value: number;
|
|
41
|
+
}[];
|
|
42
|
+
options: {
|
|
43
|
+
title: string;
|
|
44
|
+
axes: {
|
|
45
|
+
left: {
|
|
46
|
+
mapsTo: string;
|
|
47
|
+
};
|
|
48
|
+
bottom: {
|
|
49
|
+
scaleType: string;
|
|
50
|
+
mapsTo: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
height: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export declare const VerticalGroupedBarTimeSeries: {
|
|
58
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
59
|
+
args: {
|
|
60
|
+
isInverse: boolean;
|
|
61
|
+
type: CarbonChartType;
|
|
62
|
+
dataSet: {
|
|
63
|
+
group: string;
|
|
64
|
+
date: Date;
|
|
65
|
+
value: number;
|
|
66
|
+
}[];
|
|
67
|
+
options: {
|
|
68
|
+
title: string;
|
|
69
|
+
axes: {
|
|
70
|
+
left: {
|
|
71
|
+
mapsTo: string;
|
|
72
|
+
};
|
|
73
|
+
bottom: {
|
|
74
|
+
mapsTo: string;
|
|
75
|
+
scaleType: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
height: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export declare const VerticalGroupedBarTimeSeriesDenseData: {
|
|
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: Date;
|
|
90
|
+
value: number;
|
|
91
|
+
}[];
|
|
92
|
+
options: {
|
|
93
|
+
title: string;
|
|
94
|
+
axes: {
|
|
95
|
+
left: {
|
|
96
|
+
mapsTo: string;
|
|
97
|
+
};
|
|
98
|
+
bottom: {
|
|
99
|
+
mapsTo: string;
|
|
100
|
+
scaleType: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
height: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export declare const VerticalGroupedBarEmptyState: {
|
|
108
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
109
|
+
args: {
|
|
110
|
+
isInverse: boolean;
|
|
111
|
+
type: CarbonChartType;
|
|
112
|
+
dataSet: never[];
|
|
113
|
+
options: {
|
|
114
|
+
title: string;
|
|
115
|
+
axes: {
|
|
116
|
+
left: {};
|
|
117
|
+
bottom: {
|
|
118
|
+
scaleType: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
height: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
export declare const VerticalGroupedBarSkeleton: {
|
|
126
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
127
|
+
args: {
|
|
128
|
+
isInverse: boolean;
|
|
129
|
+
type: CarbonChartType;
|
|
130
|
+
dataSet: never[];
|
|
131
|
+
options: {
|
|
132
|
+
title: string;
|
|
133
|
+
axes: {
|
|
134
|
+
left: {};
|
|
135
|
+
bottom: {
|
|
136
|
+
scaleType: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
data: {
|
|
140
|
+
loading: boolean;
|
|
141
|
+
};
|
|
142
|
+
height: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
export declare const HorizontalGroupedBarDiscrete: {
|
|
147
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
148
|
+
args: {
|
|
149
|
+
isInverse: boolean;
|
|
150
|
+
type: CarbonChartType;
|
|
151
|
+
dataSet: {
|
|
152
|
+
group: string;
|
|
153
|
+
key: string;
|
|
154
|
+
value: number;
|
|
155
|
+
}[];
|
|
156
|
+
options: {
|
|
157
|
+
title: string;
|
|
158
|
+
axes: {
|
|
159
|
+
left: {
|
|
160
|
+
scaleType: string;
|
|
161
|
+
mapsTo: string;
|
|
162
|
+
};
|
|
163
|
+
bottom: {
|
|
164
|
+
mapsTo: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
height: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
export declare const HorizontalGroupedBarTimeSeries: {
|
|
172
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
173
|
+
args: {
|
|
174
|
+
isInverse: boolean;
|
|
175
|
+
type: CarbonChartType;
|
|
176
|
+
dataSet: {
|
|
177
|
+
group: string;
|
|
178
|
+
date: Date;
|
|
179
|
+
value: number;
|
|
180
|
+
}[];
|
|
181
|
+
options: {
|
|
182
|
+
title: string;
|
|
183
|
+
axes: {
|
|
184
|
+
left: {
|
|
185
|
+
mapsTo: string;
|
|
186
|
+
scaleType: string;
|
|
187
|
+
};
|
|
188
|
+
bottom: {
|
|
189
|
+
mapsTo: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
height: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
export declare const HorizontalGroupedBarEmptyState: {
|
|
197
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
198
|
+
args: {
|
|
199
|
+
isInverse: boolean;
|
|
200
|
+
type: CarbonChartType;
|
|
201
|
+
dataSet: never[];
|
|
202
|
+
options: {
|
|
203
|
+
title: string;
|
|
204
|
+
axes: {
|
|
205
|
+
left: {
|
|
206
|
+
scaleType: string;
|
|
207
|
+
};
|
|
208
|
+
bottom: {};
|
|
209
|
+
};
|
|
210
|
+
height: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
export declare const HorizontalGroupedBarSkeleton: {
|
|
215
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
216
|
+
args: {
|
|
217
|
+
isInverse: boolean;
|
|
218
|
+
type: CarbonChartType;
|
|
219
|
+
dataSet: never[];
|
|
220
|
+
options: {
|
|
221
|
+
title: string;
|
|
222
|
+
axes: {
|
|
223
|
+
left: {
|
|
224
|
+
scaleType: string;
|
|
225
|
+
};
|
|
226
|
+
bottom: {};
|
|
227
|
+
};
|
|
228
|
+
data: {
|
|
229
|
+
loading: boolean;
|
|
230
|
+
};
|
|
231
|
+
height: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
@@ -0,0 +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
|
+
};
|
|
@@ -0,0 +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
|
+
};
|