@react-magma/charts 12.0.0 → 12.0.1-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts.js +1 -1
- package/dist/charts.js.map +1 -1
- package/dist/charts.modern.module.js +1 -1
- package/dist/charts.modern.module.js.map +1 -1
- package/dist/charts.umd.js +1 -1
- package/dist/charts.umd.js.map +1 -1
- package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +308 -10
- package/dist/components/CarbonChart/CarbonChartAreaStacked.stories.d.ts +134 -5
- package/dist/components/CarbonChart/CarbonChartBar.stories.d.ts +212 -10
- package/dist/components/CarbonChart/CarbonChartBarFloating.stories.d.ts +80 -4
- package/dist/components/CarbonChart/CarbonChartBarGrouped.stories.d.ts +232 -11
- package/dist/components/CarbonChart/CarbonChartBarStacked.stories.d.ts +264 -12
- package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +51 -3
- package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +194 -7
- package/dist/components/CarbonChart/CarbonChartBullet.stories.d.ts +33 -2
- package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +578 -13
- package/dist/components/CarbonChart/CarbonChartDonut.stories.d.ts +118 -6
- package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +41 -3
- package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +87 -4
- package/dist/components/CarbonChart/CarbonChartLine.stories.d.ts +575 -18
- package/dist/components/CarbonChart/CarbonChartLollipop.stories.d.ts +53 -3
- package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +125 -6
- package/dist/components/CarbonChart/CarbonChartPie.stories.d.ts +99 -6
- package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +96 -5
- package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +171 -7
- package/dist/components/CarbonChart/CarbonChartSparkline.stories.d.ts +49 -2
- package/dist/components/CarbonChart/CarbonChartStep.stories.d.ts +36 -2
- package/dist/components/LineChart/LineChart.stories.d.ts +132 -21
- package/package.json +3 -3
- 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/LineChart/LineChart.stories.tsx +91 -104
|
@@ -1,8 +1,120 @@
|
|
|
1
|
-
import { CarbonChartProps } from '.';
|
|
1
|
+
import { CarbonChartProps, CarbonChartType } from '.';
|
|
2
2
|
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
|
|
3
3
|
export default _default;
|
|
4
|
-
export declare const Donut:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
export declare const Donut: {
|
|
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
|
+
value: number;
|
|
12
|
+
}[];
|
|
13
|
+
options: {
|
|
14
|
+
title: string;
|
|
15
|
+
resizable: boolean;
|
|
16
|
+
donut: {
|
|
17
|
+
center: {
|
|
18
|
+
label: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
height: string;
|
|
22
|
+
legend: {
|
|
23
|
+
truncation: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const DonutCentered: {
|
|
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
|
+
value: number;
|
|
38
|
+
}[];
|
|
39
|
+
options: {
|
|
40
|
+
title: string;
|
|
41
|
+
resizable: boolean;
|
|
42
|
+
legend: {
|
|
43
|
+
alignment: string;
|
|
44
|
+
truncation: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
donut: {
|
|
49
|
+
center: {
|
|
50
|
+
label: string;
|
|
51
|
+
};
|
|
52
|
+
alignment: string;
|
|
53
|
+
};
|
|
54
|
+
height: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const DonutValueMapsToCount: {
|
|
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
|
+
count: number;
|
|
66
|
+
}[];
|
|
67
|
+
options: {
|
|
68
|
+
title: string;
|
|
69
|
+
resizable: boolean;
|
|
70
|
+
pie: {
|
|
71
|
+
valueMapsTo: string;
|
|
72
|
+
};
|
|
73
|
+
height: string;
|
|
74
|
+
legend: {
|
|
75
|
+
truncation: {
|
|
76
|
+
type: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export declare const DonutEmptyState: {
|
|
83
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
84
|
+
args: {
|
|
85
|
+
isInverse: boolean;
|
|
86
|
+
type: CarbonChartType;
|
|
87
|
+
dataSet: never[];
|
|
88
|
+
options: {
|
|
89
|
+
title: string;
|
|
90
|
+
resizable: boolean;
|
|
91
|
+
donut: {
|
|
92
|
+
center: {
|
|
93
|
+
label: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
height: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export declare const DonutSkeleton: {
|
|
101
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
102
|
+
args: {
|
|
103
|
+
isInverse: boolean;
|
|
104
|
+
type: CarbonChartType;
|
|
105
|
+
dataSet: never[];
|
|
106
|
+
options: {
|
|
107
|
+
title: string;
|
|
108
|
+
resizable: boolean;
|
|
109
|
+
donut: {
|
|
110
|
+
center: {
|
|
111
|
+
label: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
data: {
|
|
115
|
+
loading: boolean;
|
|
116
|
+
};
|
|
117
|
+
height: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
@@ -1,5 +1,43 @@
|
|
|
1
|
-
import { CarbonChartProps } from '.';
|
|
1
|
+
import { CarbonChartProps, CarbonChartType } from '.';
|
|
2
2
|
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
|
|
3
3
|
export default _default;
|
|
4
|
-
export declare const GaugeSemicircularDangerStatus:
|
|
5
|
-
|
|
4
|
+
export declare const GaugeSemicircularDangerStatus: {
|
|
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
|
+
value: number;
|
|
12
|
+
}[];
|
|
13
|
+
options: {
|
|
14
|
+
title: string;
|
|
15
|
+
resizable: boolean;
|
|
16
|
+
height: string;
|
|
17
|
+
gauge: {
|
|
18
|
+
type: string;
|
|
19
|
+
status: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const GaugeCircularWarningStatus: {
|
|
25
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
26
|
+
args: {
|
|
27
|
+
isInverse: boolean;
|
|
28
|
+
type: CarbonChartType;
|
|
29
|
+
dataSet: {
|
|
30
|
+
group: string;
|
|
31
|
+
value: number;
|
|
32
|
+
}[];
|
|
33
|
+
options: {
|
|
34
|
+
title: string;
|
|
35
|
+
resizable: boolean;
|
|
36
|
+
height: string;
|
|
37
|
+
gauge: {
|
|
38
|
+
status: string;
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -1,6 +1,89 @@
|
|
|
1
|
-
import { CarbonChartProps } from '.';
|
|
1
|
+
import { CarbonChartProps, CarbonChartType } from '.';
|
|
2
2
|
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
|
|
3
3
|
export default _default;
|
|
4
|
-
export declare const HistogramLinear:
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export declare const HistogramLinear: {
|
|
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
|
+
age: number;
|
|
12
|
+
}[];
|
|
13
|
+
options: {
|
|
14
|
+
title: string;
|
|
15
|
+
axes: {
|
|
16
|
+
bottom: {
|
|
17
|
+
title: string;
|
|
18
|
+
mapsTo: string;
|
|
19
|
+
bins: number;
|
|
20
|
+
limitDomainToBins: boolean;
|
|
21
|
+
};
|
|
22
|
+
left: {
|
|
23
|
+
title: string;
|
|
24
|
+
scaleType: string;
|
|
25
|
+
stacked: boolean;
|
|
26
|
+
binned: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
height: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const HistogramDefinedBinsNumberLinear: {
|
|
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
|
+
bottom: {
|
|
46
|
+
title: string;
|
|
47
|
+
mapsTo: string;
|
|
48
|
+
bins: number;
|
|
49
|
+
limitDomainToBins: boolean;
|
|
50
|
+
};
|
|
51
|
+
left: {
|
|
52
|
+
title: string;
|
|
53
|
+
scaleType: string;
|
|
54
|
+
binned: boolean;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
height: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export declare const HistogramDefinedBinsLinear: {
|
|
62
|
+
render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
|
|
63
|
+
args: {
|
|
64
|
+
isInverse: boolean;
|
|
65
|
+
type: CarbonChartType;
|
|
66
|
+
dataSet: {
|
|
67
|
+
group: string;
|
|
68
|
+
age: number;
|
|
69
|
+
}[];
|
|
70
|
+
options: {
|
|
71
|
+
title: string;
|
|
72
|
+
axes: {
|
|
73
|
+
bottom: {
|
|
74
|
+
title: string;
|
|
75
|
+
mapsTo: string;
|
|
76
|
+
bins: number[];
|
|
77
|
+
limitDomainToBins: boolean;
|
|
78
|
+
};
|
|
79
|
+
left: {
|
|
80
|
+
title: string;
|
|
81
|
+
scaleType: string;
|
|
82
|
+
stacked: boolean;
|
|
83
|
+
binned: boolean;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
height: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|