@react-magma/charts 11.0.0-next.2 → 11.0.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.
Files changed (51) hide show
  1. package/dist/charts +100 -79
  2. package/dist/charts.css +19 -3
  3. package/dist/charts.css.map +1 -1
  4. package/dist/charts.js +1 -1
  5. package/dist/charts.js.map +1 -1
  6. package/dist/charts.map +1 -1
  7. package/dist/charts.modern.module.js +1 -1
  8. package/dist/charts.modern.module.js.map +1 -1
  9. package/dist/charts.umd.js +1 -1
  10. package/dist/charts.umd.js.map +1 -1
  11. package/dist/components/CarbonChart/index.d.ts +1 -1
  12. package/dist/components/LineChart/ChartDataTable.d.ts +1 -0
  13. package/dist/components/LineChart/DataTable.d.ts +1 -0
  14. package/dist/components/LineChart/GraphTooltip.d.ts +1 -0
  15. package/package.json +26 -26
  16. package/src/components/CarbonChart/CarbonChart.test.js +3 -1
  17. package/src/components/CarbonChart/CarbonChart.tsx +123 -101
  18. package/src/components/CarbonChart/CarbonChartArea.stories.tsx +3 -1
  19. package/src/components/CarbonChart/CarbonChartAreaStacked.stories.tsx +3 -1
  20. package/src/components/CarbonChart/CarbonChartBar.stories.tsx +3 -1
  21. package/src/components/CarbonChart/CarbonChartBarFloating.stories.tsx +3 -1
  22. package/src/components/CarbonChart/CarbonChartBarGrouped.stories.tsx +3 -1
  23. package/src/components/CarbonChart/CarbonChartBarStacked.stories.tsx +3 -1
  24. package/src/components/CarbonChart/CarbonChartBoxplot.stories.tsx +4 -4
  25. package/src/components/CarbonChart/CarbonChartBubble.stories.tsx +4 -2
  26. package/src/components/CarbonChart/CarbonChartBullet.stories.tsx +3 -1
  27. package/src/components/CarbonChart/CarbonChartCombo.stories.tsx +3 -1
  28. package/src/components/CarbonChart/CarbonChartDonut.stories.tsx +3 -1
  29. package/src/components/CarbonChart/CarbonChartGauge.stories.tsx +4 -2
  30. package/src/components/CarbonChart/CarbonChartHistogram.stories.tsx +4 -2
  31. package/src/components/CarbonChart/CarbonChartLine.stories.tsx +3 -1
  32. package/src/components/CarbonChart/CarbonChartLollipop.stories.tsx +3 -1
  33. package/src/components/CarbonChart/CarbonChartMeter.stories.tsx +4 -2
  34. package/src/components/CarbonChart/CarbonChartPie.stories.tsx +3 -1
  35. package/src/components/CarbonChart/CarbonChartRadar.stories.tsx +4 -2
  36. package/src/components/CarbonChart/CarbonChartScatter.stories.tsx +4 -2
  37. package/src/components/CarbonChart/CarbonChartSparkline.stories.tsx +3 -1
  38. package/src/components/CarbonChart/CarbonChartStep.stories.tsx +3 -1
  39. package/src/components/CarbonChart/index.ts +1 -1
  40. package/src/components/CarbonChart/styles.min.css +24790 -3
  41. package/src/components/LineChart/Chart.tsx +10 -5
  42. package/src/components/LineChart/ChartDataTable.test.js +3 -1
  43. package/src/components/LineChart/ChartDataTable.tsx +6 -6
  44. package/src/components/LineChart/CustomAxisComponent.tsx +1 -0
  45. package/src/components/LineChart/CustomPointComponent.tsx +2 -1
  46. package/src/components/LineChart/GraphTooltip.tsx +2 -2
  47. package/src/components/LineChart/LegendButton.tsx +1 -0
  48. package/src/components/LineChart/LineChart.stories.tsx +4 -1
  49. package/src/components/LineChart/LineChart.test.js +4 -1
  50. package/src/components/LineChart/LineChart.tsx +11 -12
  51. package/src/index.ts +1 -1
@@ -1 +1 @@
1
- export * from "./CarbonChart";
1
+ export * from './CarbonChart';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { VictoryAxisProps } from 'victory';
2
3
  export declare function toCamelCase(str: string): string;
3
4
  export interface DataTableProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface DataTableProps {
2
3
  data?: any;
3
4
  }
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  export declare const GraphTooltip: (props: any) => JSX.Element | null;
2
3
  export declare const AxisTooltip: (props: any) => JSX.Element;
package/package.json CHANGED
@@ -1,38 +1,27 @@
1
1
  {
2
2
  "name": "@react-magma/charts",
3
- "version": "11.0.0-next.2",
4
- "publishConfig": {
5
- "access": "public"
6
- },
3
+ "version": "11.0.0",
7
4
  "license": "MIT",
8
- "source": "src/index.ts",
5
+ "exports": {
6
+ ".": "./src",
7
+ "./src/components/CarbonChart/": "./styles.min.css"
8
+ },
9
9
  "main": "dist/charts.js",
10
- "module": "dist/charts.modern.module.js",
11
10
  "umd:main": "dist/charts.umd.js",
11
+ "module": "dist/charts.modern.module.js",
12
+ "source": "src/index.ts",
12
13
  "types": "dist/index.d.ts",
13
14
  "files": [
14
15
  "dist",
15
16
  "src",
16
17
  "src/components/CarbonChart/styles.min.css"
17
18
  ],
18
- "engines": {
19
- "npm": ">=7.3.0",
20
- "node": ">=14.15.0"
21
- },
22
19
  "scripts": {
23
20
  "build": "microbundle build --jsx jsx --jsxImportSource react --globals react/jsx-runtime=jsx",
24
21
  "build-watch": "microbundle watch --jsx jsx --jsxImportSource react --globals react/jsx-runtime=jsx",
22
+ "lint": "eslint ./src",
25
23
  "test": "jest",
26
- "test-watch": "jest --watch",
27
- "lint": "eslint ./src"
28
- },
29
- "peerDependencies": {
30
- "@emotion/react": "^11.13.0",
31
- "@emotion/styled": "^11.13.0",
32
- "react": "^17.0.2",
33
- "react-dom": "^17.0.2",
34
- "react-magma-dom": "^4.9.0-next.3",
35
- "react-magma-icons": "^3.0.0"
24
+ "test-watch": "jest --watch"
36
25
  },
37
26
  "dependencies": {
38
27
  "@carbon/charts-react": "^1.14.8",
@@ -48,11 +37,22 @@
48
37
  "identity-obj-proxy": "^3.0.0",
49
38
  "react": "^17.0.2",
50
39
  "react-dom": "^17.0.2",
51
- "react-magma-dom": "^4.9.0-next.3",
52
- "react-magma-icons": "^3.0.0"
40
+ "react-magma-dom": "^4.9.0",
41
+ "react-magma-icons": "^3.1.0"
53
42
  },
54
- "exports": {
55
- ".": "./src",
56
- "./src/components/CarbonChart/": "./styles.min.css"
43
+ "peerDependencies": {
44
+ "@emotion/react": "^11.13.0",
45
+ "@emotion/styled": "^11.13.0",
46
+ "react": "^17.0.2",
47
+ "react-dom": "^17.0.2",
48
+ "react-magma-dom": "^4.9.0-next.27",
49
+ "react-magma-icons": "^3.1.0"
50
+ },
51
+ "engines": {
52
+ "node": ">=14.15.0",
53
+ "npm": ">=7.3.0"
54
+ },
55
+ "publishConfig": {
56
+ "access": "public"
57
57
  }
58
- }
58
+ }
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
- import { CarbonChart, CarbonChartType } from '.';
2
+
3
3
  import { render } from '@testing-library/react';
4
4
 
5
+ import { CarbonChart, CarbonChartType } from '.';
6
+
5
7
  global.ResizeObserver = jest.fn().mockImplementation(() => ({
6
8
  observe: jest.fn(),
7
9
  unobserve: jest.fn(),
@@ -1,7 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ThemeInterface, ThemeContext, useIsInverse } from 'react-magma-dom';
3
- import { transparentize } from 'polished';
4
- import styled from '@emotion/styled';
2
+
5
3
  import {
6
4
  AreaChart,
7
5
  StackedAreaChart,
@@ -22,6 +20,9 @@ import {
22
20
  ScatterChart,
23
21
  ComboChart,
24
22
  } from '@carbon/charts-react';
23
+ import styled from '@emotion/styled';
24
+ import { transparentize } from 'polished';
25
+ import { ThemeInterface, ThemeContext, useIsInverse } from 'react-magma-dom';
25
26
  import './styles.min.css';
26
27
 
27
28
  export enum CarbonChartType {
@@ -91,8 +92,8 @@ const CarbonChartWrapper = styled.div<{
91
92
  props.isInverse
92
93
  ? props.theme.colors.neutral100
93
94
  : props.theme.colors.neutral700};
94
- max-width:142px;
95
- white-space: normal;
95
+ max-width: 142px;
96
+ white-space: normal;
96
97
  }
97
98
 
98
99
  .cds--modal-container {
@@ -189,8 +190,9 @@ const CarbonChartWrapper = styled.div<{
189
190
  ? transparentize(0.5, props.theme.colors.neutral100)
190
191
  : ''};
191
192
  }
192
- .cds--cc--grid rect.chart-grid-backdrop.stroked{
193
- stroke: ${props => (props.isInverse ? props.theme.colors.neutral100 : '')}
193
+ .cds--cc--grid rect.chart-grid-backdrop.stroked {
194
+ stroke: ${props =>
195
+ props.isInverse ? props.theme.colors.neutral100 : ''};
194
196
  }
195
197
  .cds--cc--skeleton .shimmer-effect-lines {
196
198
  filter: ${props => (props.isInverse ? 'invert(1)' : '')};
@@ -199,117 +201,137 @@ const CarbonChartWrapper = styled.div<{
199
201
  .cds--cc--skeleton rect.chart-skeleton-backdrop,
200
202
  .cds--cc--grid rect.chart-grid-backdrop {
201
203
  } */
202
-
203
- .cds--cc--grid rect.chart-grid-backdrop{
204
- fill:transparent;
204
+
205
+ .cds--cc--grid rect.chart-grid-backdrop {
206
+ fill: transparent;
205
207
  }
206
208
  .cds--cc--scatter circle.dot.hovered {
207
209
  padding: 10px;
208
210
  }
209
211
  .cds--cc--scatter-stacked circle.dot.hovered,
210
212
  .cds--cc--scatter-stacked circle.dot.unfilled,
211
- .cds--cc--scatter circle.dot.unfilled{
213
+ .cds--cc--scatter circle.dot.unfilled {
212
214
  stroke-width: 6px;
213
215
  transition: 0.1s all linear;
214
-
215
216
  }
216
217
  .cds--cc--scatter circle.dot.hovered {
217
218
  stroke-width: 0.5em;
218
219
  transition: 0.1s all linear;
219
- filter:
220
- drop-shadow( 1px 0px 0px ${props =>
221
- props.isInverse
222
- ? props.theme.colors.primary600
223
- : props.theme.colors.neutral100})
224
- drop-shadow(-1px 0px 0px ${props =>
225
- props.isInverse
226
- ? props.theme.colors.primary600
227
- : props.theme.colors.neutral100})
228
- drop-shadow( 0px 1px 0px ${props =>
229
- props.isInverse
230
- ? props.theme.colors.primary600
231
- : props.theme.colors.neutral100})
232
- drop-shadow( 0px -1px 0px ${props =>
233
- props.isInverse
234
- ? props.theme.colors.primary600
235
- : props.theme.colors.neutral100});
220
+ filter: drop-shadow(
221
+ 1px 0px 0px
222
+ ${props =>
223
+ props.isInverse
224
+ ? props.theme.colors.primary600
225
+ : props.theme.colors.neutral100}
226
+ )
227
+ drop-shadow(
228
+ -1px 0px 0px
229
+ ${props =>
230
+ props.isInverse
231
+ ? props.theme.colors.primary600
232
+ : props.theme.colors.neutral100}
233
+ )
234
+ drop-shadow(
235
+ 0px 1px 0px
236
+ ${props =>
237
+ props.isInverse
238
+ ? props.theme.colors.primary600
239
+ : props.theme.colors.neutral100}
240
+ )
241
+ drop-shadow(
242
+ 0px -1px 0px
243
+ ${props =>
244
+ props.isInverse
245
+ ? props.theme.colors.primary600
246
+ : props.theme.colors.neutral100}
247
+ );
236
248
  }
237
- .cds--cc--lollipop circle.dot.filled,
238
- .cds--cc--lollipop circle.dot.hovered {
239
- stroke-width: 15px;
240
- }
241
- .cds--cc--scatter-stacked circle.dot.hovered,
249
+ .cds--cc--lollipop circle.dot.filled,
250
+ .cds--cc--lollipop circle.dot.hovered {
251
+ stroke-width: 15px;
252
+ }
253
+ .cds--cc--scatter-stacked circle.dot.hovered,
242
254
  .cds--cc--scatter-stacked circle.dot.unfilled,
243
255
  .cds--cc--scatter circle.dot.unfilled,
244
256
  .cds--cc--lollipop circle.dot.filled,
245
- .cds--cc--lollipop circle.dot.hovered{
246
- transition: 0.1s all linear;
247
- filter:
248
- drop-shadow( 1px 0px 0px ${props =>
249
- props.isInverse
250
- ? props.theme.colors.primary600
251
- : props.theme.colors.neutral100})
252
- drop-shadow(-1px 0px 0px ${props =>
253
- props.isInverse
254
- ? props.theme.colors.primary600
255
- : props.theme.colors.neutral100})
256
- drop-shadow( 0px 1px 0px ${props =>
257
- props.isInverse
258
- ? props.theme.colors.primary600
259
- : props.theme.colors.neutral100})
260
- drop-shadow( 0px -1px 0px ${props =>
261
- props.isInverse
262
- ? props.theme.colors.primary600
263
- : props.theme.colors.neutral100});
264
- }
265
- .cds--cc--lollipop .cds--cc--scatter circle.dot.hovered{
266
- transition: 0.1s all linear;
267
- stroke-width: 1.1em;
268
- }
257
+ .cds--cc--lollipop circle.dot.hovered {
258
+ transition: 0.1s all linear;
259
+ filter: drop-shadow(
260
+ 1px 0px 0px
261
+ ${props =>
262
+ props.isInverse
263
+ ? props.theme.colors.primary600
264
+ : props.theme.colors.neutral100}
265
+ )
266
+ drop-shadow(
267
+ -1px 0px 0px
268
+ ${props =>
269
+ props.isInverse
270
+ ? props.theme.colors.primary600
271
+ : props.theme.colors.neutral100}
272
+ )
273
+ drop-shadow(
274
+ 0px 1px 0px
275
+ ${props =>
276
+ props.isInverse
277
+ ? props.theme.colors.primary600
278
+ : props.theme.colors.neutral100}
279
+ )
280
+ drop-shadow(
281
+ 0px -1px 0px
282
+ ${props =>
283
+ props.isInverse
284
+ ? props.theme.colors.primary600
285
+ : props.theme.colors.neutral100}
286
+ );
287
+ }
288
+ .cds--cc--lollipop .cds--cc--scatter circle.dot.hovered {
289
+ transition: 0.1s all linear;
290
+ stroke-width: 1.1em;
291
+ }
269
292
 
270
- .cds--overflow-menu-options__btn:focus {
271
- outline-color: ${props =>
272
- props.isInverse ? props.theme.colors.focusInverse : ''};
273
- }
293
+ .cds--overflow-menu-options__btn:focus {
294
+ outline-color: ${props =>
295
+ props.isInverse ? props.theme.colors.focusInverse : ''};
296
+ }
274
297
 
275
- .cds--btn {
276
- min-height: auto;
277
- display: flex;
278
- flex: 0 auto;
279
- align-items: center;
280
- text-align: center;
281
- padding: 20px;
282
- margin: 0;
283
- line-height: ${props => props.theme.typeScale.size03.lineHeight};
284
- margin: 0;
285
- min-width: ${props => props.theme.spaceScale.spacing13};
286
- overflow: hidden;
287
- padding: ;
288
- position: relative;
289
- right: ${props => props.theme.spaceScale.spacing04};
290
- text-align: center;
291
- height: 40px;
292
- font-family: ${props => props.theme.bodyFont};
293
- font-size: ${props => props.theme.typeScale.size03.fontSize};
294
- border-radius: ${props => props.theme.borderRadius};
295
- font-weight: 500;
296
- }
298
+ .cds--btn {
299
+ min-height: auto;
300
+ display: flex;
301
+ flex: 0 auto;
302
+ align-items: center;
303
+ text-align: center;
304
+ padding: 20px;
305
+ margin: 0;
306
+ line-height: ${props => props.theme.typeScale.size03.lineHeight};
307
+ margin: 0;
308
+ min-width: ${props => props.theme.spaceScale.spacing13};
309
+ overflow: hidden;
310
+ padding:;
311
+ position: relative;
312
+ right: ${props => props.theme.spaceScale.spacing04};
313
+ text-align: center;
314
+ height: 40px;
315
+ font-family: ${props => props.theme.bodyFont};
316
+ font-size: ${props => props.theme.typeScale.size03.fontSize};
317
+ border-radius: ${props => props.theme.borderRadius};
318
+ font-weight: 500;
319
+ }
297
320
 
298
- .cds--btn--primary {
299
- background: ${props =>
300
- props.isInverse
301
- ? props.theme.colors.tertiary500
302
- : props.theme.colors.primary};
303
- color: ${props =>
304
- props.isInverse ? props.theme.colors.neutral900 : ''};
305
- }
321
+ .cds--btn--primary {
322
+ background: ${props =>
323
+ props.isInverse
324
+ ? props.theme.colors.tertiary500
325
+ : props.theme.colors.primary};
326
+ color: ${props => (props.isInverse ? props.theme.colors.neutral900 : '')};
327
+ }
306
328
 
307
- *:focus {
308
- outline: 2px solid
309
- ${props =>
310
- props.isInverse
311
- ? props.theme.colors.focusInverse
312
- : props.theme.colors.focus} !important;
329
+ *:focus {
330
+ outline: 2px solid
331
+ ${props =>
332
+ props.isInverse
333
+ ? props.theme.colors.focusInverse
334
+ : props.theme.colors.focus} !important;
313
335
  outline-offset: 0;
314
336
  }
315
337
  .cds--overflow-menu-options__btn:focus,
@@ -417,8 +439,8 @@ const CarbonChartWrapper = styled.div<{
417
439
  }
418
440
 
419
441
  g.center text,
420
- .pie-label{
421
- fill: ${props => (props.isInverse ? props.theme.colors.neutral100 : '')} ;
442
+ .pie-label {
443
+ fill: ${props => (props.isInverse ? props.theme.colors.neutral100 : '')};
422
444
  }
423
445
 
424
446
  // Zoom responsive tweaks
@@ -490,7 +512,7 @@ export const CarbonChart = React.forwardRef<HTMLDivElement, CarbonChartProps>(
490
512
  };
491
513
 
492
514
  function buildColors() {
493
- let scaleColorsObj: ColorsObject = {};
515
+ const scaleColorsObj: ColorsObject = {};
494
516
 
495
517
  const allGroups = dataSet.map(item => {
496
518
  return 'group' in item ? item['group'] : null;
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Area',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Area Stacked',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Bar Simple',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Bar Floating',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Bar Grouped',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Bar Stacked',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Boxplot',
@@ -148,8 +150,7 @@ HorizontalBoxplot.args = {
148
150
  },
149
151
  };
150
152
 
151
-
152
- // Uncomment when adding new charts. Issues: #1054, #1055, #1056
153
+ // Uncomment when adding new charts. Issues: #1054, #1055, #1056
153
154
 
154
155
  // export const VerticalBoxplot = Template.bind({});
155
156
  // VerticalBoxplot.args = {
@@ -271,4 +272,3 @@ HorizontalBoxplot.args = {
271
272
  // height: '400px',
272
273
  // },
273
274
  // };
274
-
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Bubble',
@@ -123,7 +125,7 @@ BubbleLinear.args = {
123
125
  },
124
126
  };
125
127
 
126
- // Uncomment when adding new charts. Issues: #1054, #1055, #1056
128
+ // Uncomment when adding new charts. Issues: #1054, #1055, #1056
127
129
 
128
130
  // export const BubbleTimeSeries = Template.bind({});
129
131
  // BubbleTimeSeries.args = {
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Bullet',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Combo',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Donut',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Gauge',
@@ -52,7 +54,7 @@ GaugeSemicircularDangerStatus.args = {
52
54
  },
53
55
  };
54
56
 
55
- // Uncomment when adding new charts. Issues: #1054, #1055, #1056
57
+ // Uncomment when adding new charts. Issues: #1054, #1055, #1056
56
58
 
57
59
  // export const GaugeCircularWarningStatus = Template.bind({});
58
60
  // GaugeCircularWarningStatus.args = {
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Histogram',
@@ -169,7 +171,7 @@ HistogramLinear.args = {
169
171
  },
170
172
  };
171
173
 
172
- // Uncomment when adding new charts. Issues: #1054, #1055, #1056
174
+ // Uncomment when adding new charts. Issues: #1054, #1055, #1056
173
175
 
174
176
  // export const HistogramDefinedBinsNumberLinear = Template.bind({});
175
177
  // HistogramDefinedBinsNumberLinear.args = {
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Line',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Lollipop',
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
+
2
3
  import { Story, Meta } from '@storybook/react/types-6-0';
3
- import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
4
4
  import { Card } from 'react-magma-dom';
5
5
 
6
+ import { CarbonChart, CarbonChartProps, CarbonChartType } from '.';
7
+
6
8
  export default {
7
9
  component: CarbonChart,
8
10
  title: 'CarbonChart/Meter',
@@ -62,7 +64,7 @@ MeterChartWithStatuses.args = {
62
64
  },
63
65
  };
64
66
 
65
- // Uncomment when adding new charts. Issues: #1054, #1055, #1056
67
+ // Uncomment when adding new charts. Issues: #1054, #1055, #1056
66
68
 
67
69
  // export const MeterChartNoStatus = Template.bind({});
68
70
  // MeterChartNoStatus.args = {