@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.
- package/dist/charts +100 -79
- package/dist/charts.css +19 -3
- package/dist/charts.css.map +1 -1
- package/dist/charts.js +1 -1
- package/dist/charts.js.map +1 -1
- package/dist/charts.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/index.d.ts +1 -1
- package/dist/components/LineChart/ChartDataTable.d.ts +1 -0
- package/dist/components/LineChart/DataTable.d.ts +1 -0
- package/dist/components/LineChart/GraphTooltip.d.ts +1 -0
- package/package.json +26 -26
- package/src/components/CarbonChart/CarbonChart.test.js +3 -1
- package/src/components/CarbonChart/CarbonChart.tsx +123 -101
- package/src/components/CarbonChart/CarbonChartArea.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartAreaStacked.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartBar.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartBarFloating.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartBarGrouped.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartBarStacked.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartBoxplot.stories.tsx +4 -4
- package/src/components/CarbonChart/CarbonChartBubble.stories.tsx +4 -2
- package/src/components/CarbonChart/CarbonChartBullet.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartCombo.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartDonut.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartGauge.stories.tsx +4 -2
- package/src/components/CarbonChart/CarbonChartHistogram.stories.tsx +4 -2
- package/src/components/CarbonChart/CarbonChartLine.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartLollipop.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartMeter.stories.tsx +4 -2
- package/src/components/CarbonChart/CarbonChartPie.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartRadar.stories.tsx +4 -2
- package/src/components/CarbonChart/CarbonChartScatter.stories.tsx +4 -2
- package/src/components/CarbonChart/CarbonChartSparkline.stories.tsx +3 -1
- package/src/components/CarbonChart/CarbonChartStep.stories.tsx +3 -1
- package/src/components/CarbonChart/index.ts +1 -1
- package/src/components/CarbonChart/styles.min.css +24790 -3
- package/src/components/LineChart/Chart.tsx +10 -5
- package/src/components/LineChart/ChartDataTable.test.js +3 -1
- package/src/components/LineChart/ChartDataTable.tsx +6 -6
- package/src/components/LineChart/CustomAxisComponent.tsx +1 -0
- package/src/components/LineChart/CustomPointComponent.tsx +2 -1
- package/src/components/LineChart/GraphTooltip.tsx +2 -2
- package/src/components/LineChart/LegendButton.tsx +1 -0
- package/src/components/LineChart/LineChart.stories.tsx +4 -1
- package/src/components/LineChart/LineChart.test.js +4 -1
- package/src/components/LineChart/LineChart.tsx +11 -12
- package/src/index.ts +1 -1
|
@@ -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/Pie',
|
|
@@ -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/Radar',
|
|
@@ -98,7 +100,7 @@ Radar.args = {
|
|
|
98
100
|
},
|
|
99
101
|
};
|
|
100
102
|
|
|
101
|
-
// Uncomment when adding new charts. Issues: #1054, #1055, #1056
|
|
103
|
+
// Uncomment when adding new charts. Issues: #1054, #1055, #1056
|
|
102
104
|
|
|
103
105
|
// export const RadarCentered = Template.bind({});
|
|
104
106
|
// RadarCentered.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/Scatter',
|
|
@@ -96,7 +98,7 @@ ScatterLinearXAndY.args = {
|
|
|
96
98
|
},
|
|
97
99
|
};
|
|
98
100
|
|
|
99
|
-
// Uncomment when adding new charts. Issues: #1054, #1055, #1056
|
|
101
|
+
// Uncomment when adding new charts. Issues: #1054, #1055, #1056
|
|
100
102
|
|
|
101
103
|
// export const ScatterTimeSeries = Template.bind({});
|
|
102
104
|
// ScatterTimeSeries.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/Sparkline',
|
|
@@ -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/Step',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './CarbonChart';
|