@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.
Files changed (83) 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 +49165 -1
  6. package/dist/charts.umd.js.map +1 -1
  7. package/dist/components/CarbonChart/CarbonChart.d.ts +2 -1
  8. package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +310 -0
  9. package/dist/components/CarbonChart/CarbonChartAreaStacked.stories.d.ts +136 -0
  10. package/dist/components/CarbonChart/CarbonChartBar.stories.d.ts +214 -0
  11. package/dist/components/CarbonChart/CarbonChartBarFloating.stories.d.ts +82 -0
  12. package/dist/components/CarbonChart/CarbonChartBarGrouped.stories.d.ts +234 -0
  13. package/dist/components/CarbonChart/CarbonChartBarStacked.stories.d.ts +266 -0
  14. package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +53 -0
  15. package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +196 -0
  16. package/dist/components/CarbonChart/CarbonChartBullet.stories.d.ts +35 -0
  17. package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +580 -0
  18. package/dist/components/CarbonChart/CarbonChartDonut.stories.d.ts +120 -0
  19. package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +43 -0
  20. package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +89 -0
  21. package/dist/components/CarbonChart/CarbonChartLine.stories.d.ts +577 -0
  22. package/dist/components/CarbonChart/CarbonChartLollipop.stories.d.ts +55 -0
  23. package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +127 -0
  24. package/dist/components/CarbonChart/CarbonChartPie.stories.d.ts +101 -0
  25. package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +98 -0
  26. package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +173 -0
  27. package/dist/components/CarbonChart/CarbonChartSparkline.stories.d.ts +51 -0
  28. package/dist/components/CarbonChart/CarbonChartStep.stories.d.ts +38 -0
  29. package/dist/components/LineChart/Chart.d.ts +27 -0
  30. package/dist/components/LineChart/ChartDataTable.d.ts +17 -0
  31. package/dist/components/LineChart/CustomAxisComponent.d.ts +3 -0
  32. package/dist/components/LineChart/CustomPointComponent.d.ts +17 -0
  33. package/dist/components/LineChart/DataTable.d.ts +5 -0
  34. package/dist/components/LineChart/GraphTooltip.d.ts +3 -0
  35. package/dist/components/LineChart/LegendButton.d.ts +6 -0
  36. package/dist/components/LineChart/LineChart.d.ts +67 -0
  37. package/dist/components/LineChart/LineChart.stories.d.ts +113 -0
  38. package/dist/components/LineChart/index.d.ts +1 -0
  39. package/dist/components/LineChart/magma-charts.d.ts +1 -0
  40. package/dist/index.d.ts +1 -0
  41. package/package.json +28 -26
  42. package/src/components/CarbonChart/CarbonChart.test.js +506 -0
  43. package/src/components/CarbonChart/CarbonChart.tsx +53 -57
  44. package/src/components/CarbonChart/CarbonChartArea.stories.tsx +1 -1
  45. package/src/components/CarbonChart/CarbonChartAreaStacked.stories.tsx +1 -1
  46. package/src/components/CarbonChart/CarbonChartBar.stories.tsx +1 -1
  47. package/src/components/CarbonChart/CarbonChartBarFloating.stories.tsx +1 -1
  48. package/src/components/CarbonChart/CarbonChartBarGrouped.stories.tsx +1 -1
  49. package/src/components/CarbonChart/CarbonChartBarStacked.stories.tsx +1 -1
  50. package/src/components/CarbonChart/CarbonChartBoxplot.stories.tsx +1 -1
  51. package/src/components/CarbonChart/CarbonChartBubble.stories.tsx +1 -1
  52. package/src/components/CarbonChart/CarbonChartBullet.stories.tsx +1 -1
  53. package/src/components/CarbonChart/CarbonChartCombo.stories.tsx +1 -1
  54. package/src/components/CarbonChart/CarbonChartDonut.stories.tsx +1 -1
  55. package/src/components/CarbonChart/CarbonChartGauge.stories.tsx +1 -1
  56. package/src/components/CarbonChart/CarbonChartHistogram.stories.tsx +1 -1
  57. package/src/components/CarbonChart/CarbonChartLine.stories.tsx +1 -1
  58. package/src/components/CarbonChart/CarbonChartLollipop.stories.tsx +1 -1
  59. package/src/components/CarbonChart/CarbonChartMeter.stories.tsx +1 -1
  60. package/src/components/CarbonChart/CarbonChartPie.stories.tsx +1 -1
  61. package/src/components/CarbonChart/CarbonChartRadar.stories.tsx +1 -1
  62. package/src/components/CarbonChart/CarbonChartScatter.stories.tsx +1 -1
  63. package/src/components/CarbonChart/CarbonChartSparkline.stories.tsx +1 -1
  64. package/src/components/CarbonChart/CarbonChartStep.stories.tsx +1 -1
  65. package/src/components/CarbonChart/carbon-charts.css +24931 -0
  66. package/src/components/LineChart/Chart.tsx +241 -0
  67. package/src/components/LineChart/ChartDataTable.test.js +165 -0
  68. package/src/components/LineChart/ChartDataTable.tsx +135 -0
  69. package/src/components/LineChart/CustomAxisComponent.tsx +30 -0
  70. package/src/components/LineChart/CustomPointComponent.tsx +93 -0
  71. package/src/components/LineChart/DataTable.tsx +57 -0
  72. package/src/components/LineChart/GraphTooltip.tsx +100 -0
  73. package/src/components/LineChart/LegendButton.tsx +77 -0
  74. package/src/components/LineChart/LineChart.stories.tsx +399 -0
  75. package/src/components/LineChart/LineChart.test.js +501 -0
  76. package/src/components/LineChart/LineChart.tsx +669 -0
  77. package/src/components/LineChart/index.ts +1 -0
  78. package/src/components/LineChart/magma-charts.ts +279 -0
  79. package/src/components/LineChart/test/exampleChartData.js +289 -0
  80. package/src/index.ts +1 -0
  81. package/dist/components/CarbonChart/CarbonChart.test.d.ts +0 -1
  82. package/dist/components/CarbonChart/embeddedStyles.d.ts +0 -1
  83. package/src/components/CarbonChart/embeddedStyles.ts +0 -24880
@@ -0,0 +1,196 @@
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 BubbleLinear: {
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
+ sales: number;
12
+ profit: number;
13
+ surplus: number;
14
+ }[];
15
+ options: {
16
+ title: string;
17
+ axes: {
18
+ bottom: {
19
+ title: string;
20
+ mapsTo: string;
21
+ includeZero: boolean;
22
+ };
23
+ left: {
24
+ title: string;
25
+ mapsTo: string;
26
+ includeZero: boolean;
27
+ };
28
+ };
29
+ bubble: {
30
+ radiusMapsTo: string;
31
+ radiusLabel: string;
32
+ };
33
+ legend: {
34
+ additionalItems: {
35
+ type: string;
36
+ name: string;
37
+ }[];
38
+ };
39
+ height: string;
40
+ };
41
+ };
42
+ };
43
+ export declare const BubbleTimeSeries: {
44
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
45
+ args: {
46
+ isInverse: boolean;
47
+ type: CarbonChartType;
48
+ dataSet: ({
49
+ group: string;
50
+ date: string;
51
+ value: number;
52
+ surplus: number;
53
+ } | {
54
+ group: string;
55
+ date: string;
56
+ value: null;
57
+ surplus: number;
58
+ })[];
59
+ options: {
60
+ title: string;
61
+ axes: {
62
+ bottom: {
63
+ title: string;
64
+ scaleType: string;
65
+ mapsTo: string;
66
+ };
67
+ left: {
68
+ mapsTo: string;
69
+ };
70
+ };
71
+ bubble: {
72
+ radiusMapsTo: string;
73
+ };
74
+ height: string;
75
+ };
76
+ };
77
+ };
78
+ export declare const BubbleDiscrete: {
79
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
80
+ args: {
81
+ isInverse: boolean;
82
+ type: CarbonChartType;
83
+ dataSet: {
84
+ group: string;
85
+ key: string;
86
+ value: number;
87
+ surplus: number;
88
+ }[];
89
+ options: {
90
+ title: string;
91
+ axes: {
92
+ bottom: {
93
+ title: string;
94
+ scaleType: string;
95
+ mapsTo: string;
96
+ };
97
+ left: {
98
+ mapsTo: string;
99
+ };
100
+ };
101
+ bubble: {
102
+ radiusMapsTo: string;
103
+ };
104
+ height: string;
105
+ };
106
+ };
107
+ };
108
+ export declare const BubbleDualDiscreteAxes: {
109
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
110
+ args: {
111
+ isInverse: boolean;
112
+ type: CarbonChartType;
113
+ dataSet: {
114
+ group: string;
115
+ product: string;
116
+ value: number;
117
+ problem: string;
118
+ }[];
119
+ options: {
120
+ title: string;
121
+ axes: {
122
+ bottom: {
123
+ title: string;
124
+ scaleType: string;
125
+ mapsTo: string;
126
+ };
127
+ left: {
128
+ scaleType: string;
129
+ mapsTo: string;
130
+ title: string;
131
+ };
132
+ };
133
+ bubble: {
134
+ radiusMapsTo: string;
135
+ };
136
+ height: string;
137
+ };
138
+ };
139
+ };
140
+ export declare const BubbleEmptyState: {
141
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
142
+ args: {
143
+ isInverse: boolean;
144
+ type: CarbonChartType;
145
+ dataSet: never[];
146
+ options: {
147
+ title: string;
148
+ axes: {
149
+ bottom: {
150
+ title: string;
151
+ mapsTo: string;
152
+ includeZero: boolean;
153
+ };
154
+ left: {
155
+ title: string;
156
+ mapsTo: string;
157
+ includeZero: boolean;
158
+ };
159
+ };
160
+ bubble: {
161
+ radiusMapsTo: string;
162
+ };
163
+ height: string;
164
+ };
165
+ };
166
+ };
167
+ export declare const BubbleSkeleton: {
168
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
169
+ args: {
170
+ isInverse: boolean;
171
+ type: CarbonChartType;
172
+ dataSet: never[];
173
+ options: {
174
+ title: string;
175
+ axes: {
176
+ bottom: {
177
+ title: string;
178
+ mapsTo: string;
179
+ includeZero: boolean;
180
+ };
181
+ left: {
182
+ title: string;
183
+ mapsTo: string;
184
+ includeZero: boolean;
185
+ };
186
+ };
187
+ bubble: {
188
+ radiusMapsTo: string;
189
+ };
190
+ data: {
191
+ loading: boolean;
192
+ };
193
+ height: string;
194
+ };
195
+ };
196
+ };
@@ -0,0 +1,35 @@
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 BasicBullet: {
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
+ title: string;
11
+ group: string;
12
+ ranges: (number | null)[];
13
+ marker: number;
14
+ value: number;
15
+ }[];
16
+ options: {
17
+ title: string;
18
+ axes: {
19
+ bottom: {
20
+ mapsTo: string;
21
+ extendLinearDomainBy: string;
22
+ };
23
+ left: {
24
+ scaleType: string;
25
+ mapsTo: string;
26
+ };
27
+ right: {
28
+ scaleType: string;
29
+ mapsTo: string;
30
+ };
31
+ };
32
+ height: string;
33
+ };
34
+ };
35
+ };