@react-magma/charts 12.0.1 → 13.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 (82) hide show
  1. package/dist/charts.js +1 -2450
  2. package/dist/charts.js.map +1 -1
  3. package/dist/charts.modern.module.js +1 -2428
  4. package/dist/charts.modern.module.js.map +1 -1
  5. package/dist/charts.umd.js +1 -48555
  6. package/dist/charts.umd.js.map +1 -1
  7. package/dist/components/CarbonChart/CarbonChart.d.ts +1 -2
  8. package/dist/components/CarbonChart/CarbonChart.test.d.ts +1 -0
  9. package/dist/components/CarbonChart/embeddedStyles.d.ts +1 -0
  10. package/dist/index.d.ts +0 -1
  11. package/package.json +25 -27
  12. package/src/components/CarbonChart/CarbonChart.tsx +18 -13
  13. package/src/components/CarbonChart/CarbonChartArea.stories.tsx +1 -1
  14. package/src/components/CarbonChart/CarbonChartAreaStacked.stories.tsx +1 -1
  15. package/src/components/CarbonChart/CarbonChartBar.stories.tsx +1 -1
  16. package/src/components/CarbonChart/CarbonChartBarFloating.stories.tsx +1 -1
  17. package/src/components/CarbonChart/CarbonChartBarGrouped.stories.tsx +1 -1
  18. package/src/components/CarbonChart/CarbonChartBarStacked.stories.tsx +1 -1
  19. package/src/components/CarbonChart/CarbonChartBoxplot.stories.tsx +1 -1
  20. package/src/components/CarbonChart/CarbonChartBubble.stories.tsx +1 -1
  21. package/src/components/CarbonChart/CarbonChartBullet.stories.tsx +1 -1
  22. package/src/components/CarbonChart/CarbonChartCombo.stories.tsx +1 -1
  23. package/src/components/CarbonChart/CarbonChartDonut.stories.tsx +1 -1
  24. package/src/components/CarbonChart/CarbonChartGauge.stories.tsx +1 -1
  25. package/src/components/CarbonChart/CarbonChartHistogram.stories.tsx +1 -1
  26. package/src/components/CarbonChart/CarbonChartLine.stories.tsx +1 -1
  27. package/src/components/CarbonChart/CarbonChartLollipop.stories.tsx +1 -1
  28. package/src/components/CarbonChart/CarbonChartMeter.stories.tsx +1 -1
  29. package/src/components/CarbonChart/CarbonChartPie.stories.tsx +1 -1
  30. package/src/components/CarbonChart/CarbonChartRadar.stories.tsx +1 -1
  31. package/src/components/CarbonChart/CarbonChartScatter.stories.tsx +1 -1
  32. package/src/components/CarbonChart/CarbonChartSparkline.stories.tsx +1 -1
  33. package/src/components/CarbonChart/CarbonChartStep.stories.tsx +1 -1
  34. package/src/components/CarbonChart/embeddedStyles.ts +24880 -0
  35. package/src/index.ts +0 -1
  36. package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +0 -310
  37. package/dist/components/CarbonChart/CarbonChartAreaStacked.stories.d.ts +0 -136
  38. package/dist/components/CarbonChart/CarbonChartBar.stories.d.ts +0 -214
  39. package/dist/components/CarbonChart/CarbonChartBarFloating.stories.d.ts +0 -82
  40. package/dist/components/CarbonChart/CarbonChartBarGrouped.stories.d.ts +0 -234
  41. package/dist/components/CarbonChart/CarbonChartBarStacked.stories.d.ts +0 -266
  42. package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +0 -53
  43. package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +0 -196
  44. package/dist/components/CarbonChart/CarbonChartBullet.stories.d.ts +0 -35
  45. package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +0 -580
  46. package/dist/components/CarbonChart/CarbonChartDonut.stories.d.ts +0 -120
  47. package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +0 -43
  48. package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +0 -89
  49. package/dist/components/CarbonChart/CarbonChartLine.stories.d.ts +0 -577
  50. package/dist/components/CarbonChart/CarbonChartLollipop.stories.d.ts +0 -55
  51. package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +0 -127
  52. package/dist/components/CarbonChart/CarbonChartPie.stories.d.ts +0 -101
  53. package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +0 -98
  54. package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +0 -173
  55. package/dist/components/CarbonChart/CarbonChartSparkline.stories.d.ts +0 -51
  56. package/dist/components/CarbonChart/CarbonChartStep.stories.d.ts +0 -38
  57. package/dist/components/LineChart/Chart.d.ts +0 -27
  58. package/dist/components/LineChart/ChartDataTable.d.ts +0 -17
  59. package/dist/components/LineChart/CustomAxisComponent.d.ts +0 -3
  60. package/dist/components/LineChart/CustomPointComponent.d.ts +0 -17
  61. package/dist/components/LineChart/DataTable.d.ts +0 -5
  62. package/dist/components/LineChart/GraphTooltip.d.ts +0 -3
  63. package/dist/components/LineChart/LegendButton.d.ts +0 -6
  64. package/dist/components/LineChart/LineChart.d.ts +0 -67
  65. package/dist/components/LineChart/LineChart.stories.d.ts +0 -113
  66. package/dist/components/LineChart/index.d.ts +0 -1
  67. package/dist/components/LineChart/magma-charts.d.ts +0 -1
  68. package/src/components/CarbonChart/carbon-charts.css +0 -7303
  69. package/src/components/LineChart/Chart.tsx +0 -241
  70. package/src/components/LineChart/ChartDataTable.test.js +0 -165
  71. package/src/components/LineChart/ChartDataTable.tsx +0 -135
  72. package/src/components/LineChart/CustomAxisComponent.tsx +0 -30
  73. package/src/components/LineChart/CustomPointComponent.tsx +0 -93
  74. package/src/components/LineChart/DataTable.tsx +0 -57
  75. package/src/components/LineChart/GraphTooltip.tsx +0 -100
  76. package/src/components/LineChart/LegendButton.tsx +0 -77
  77. package/src/components/LineChart/LineChart.stories.tsx +0 -399
  78. package/src/components/LineChart/LineChart.test.js +0 -501
  79. package/src/components/LineChart/LineChart.tsx +0 -669
  80. package/src/components/LineChart/index.ts +0 -1
  81. package/src/components/LineChart/magma-charts.ts +0 -279
  82. package/src/components/LineChart/test/exampleChartData.js +0 -289
@@ -1,55 +0,0 @@
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 LollipopDiscrete: {
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
- title: string;
19
- scaleType: string;
20
- mapsTo: string;
21
- };
22
- left: {
23
- mapsTo: string;
24
- };
25
- };
26
- height: string;
27
- };
28
- };
29
- };
30
- export declare const LollipopHorizontalPresentation: {
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
- title: string;
45
- scaleType: string;
46
- mapsTo: string;
47
- };
48
- bottom: {
49
- mapsTo: string;
50
- };
51
- };
52
- height: string;
53
- };
54
- };
55
- };
@@ -1,127 +0,0 @@
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 MeterChartWithStatuses: {
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
- meter: {
16
- peak: number;
17
- status: {
18
- ranges: {
19
- range: number[];
20
- status: string;
21
- }[];
22
- };
23
- };
24
- height: string;
25
- };
26
- };
27
- };
28
- export declare const MeterChartNoStatus: {
29
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
30
- args: {
31
- isInverse: boolean;
32
- type: CarbonChartType;
33
- dataSet: {
34
- group: string;
35
- value: number;
36
- }[];
37
- options: {
38
- title: string;
39
- meter: {
40
- peak: number;
41
- };
42
- height: string;
43
- };
44
- };
45
- };
46
- export declare const ProportionalMeterChart: {
47
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
48
- args: {
49
- isInverse: boolean;
50
- type: CarbonChartType;
51
- dataSet: {
52
- group: string;
53
- value: number;
54
- }[];
55
- options: {
56
- title: string;
57
- height: string;
58
- meter: {
59
- proportional: {
60
- total: number;
61
- unit: string;
62
- };
63
- };
64
- color: {
65
- pairing: {
66
- option: number;
67
- };
68
- };
69
- };
70
- };
71
- };
72
- export declare const ProportionalMeterChartPeakAndStatuses: {
73
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
74
- args: {
75
- isInverse: boolean;
76
- type: CarbonChartType;
77
- dataSet: {
78
- group: string;
79
- value: number;
80
- }[];
81
- options: {
82
- title: string;
83
- height: string;
84
- meter: {
85
- peak: number;
86
- proportional: {
87
- total: number;
88
- unit: string;
89
- };
90
- status: {
91
- ranges: {
92
- range: number[];
93
- status: string;
94
- }[];
95
- };
96
- };
97
- color: {
98
- pairing: {
99
- option: number;
100
- };
101
- };
102
- };
103
- };
104
- };
105
- export declare const ProportionalMeterChartTruncated: {
106
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
107
- args: {
108
- isInverse: boolean;
109
- type: CarbonChartType;
110
- dataSet: {
111
- group: string;
112
- value: number;
113
- }[];
114
- options: {
115
- title: string;
116
- height: string;
117
- meter: {
118
- proportional: {
119
- total: number;
120
- unit: string;
121
- totalFormatter: (e: any) => string;
122
- breakdownFormatter: (e: any) => string;
123
- };
124
- };
125
- };
126
- };
127
- };
@@ -1,101 +0,0 @@
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 Pie: {
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
- legend: {
18
- truncation: {
19
- type: string;
20
- };
21
- };
22
- };
23
- };
24
- };
25
- export declare const PieCentered: {
26
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
27
- args: {
28
- isInverse: boolean;
29
- type: CarbonChartType;
30
- dataSet: {
31
- group: string;
32
- value: number;
33
- }[];
34
- options: {
35
- title: string;
36
- resizable: boolean;
37
- pie: {
38
- alignment: string;
39
- };
40
- height: string;
41
- legend: {
42
- truncation: {
43
- type: string;
44
- };
45
- };
46
- };
47
- };
48
- };
49
- export declare const PieValueMapsToCount: {
50
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
51
- args: {
52
- isInverse: boolean;
53
- type: CarbonChartType;
54
- dataSet: {
55
- group: string;
56
- count: number;
57
- }[];
58
- options: {
59
- title: string;
60
- resizable: boolean;
61
- pie: {
62
- valueMapsTo: string;
63
- };
64
- height: string;
65
- legend: {
66
- truncation: {
67
- type: string;
68
- };
69
- };
70
- };
71
- };
72
- };
73
- export declare const PieEmptyState: {
74
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
75
- args: {
76
- isInverse: boolean;
77
- type: CarbonChartType;
78
- dataSet: never[];
79
- options: {
80
- title: string;
81
- resizable: boolean;
82
- height: string;
83
- };
84
- };
85
- };
86
- export declare const PieSkeleton: {
87
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
88
- args: {
89
- isInverse: boolean;
90
- type: CarbonChartType;
91
- dataSet: never[];
92
- options: {
93
- title: string;
94
- resizable: boolean;
95
- data: {
96
- loading: boolean;
97
- };
98
- height: string;
99
- };
100
- };
101
- };
@@ -1,98 +0,0 @@
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 Radar: {
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
- product: string;
11
- feature: string;
12
- score: number;
13
- }[];
14
- options: {
15
- title: string;
16
- radar: {
17
- axes: {
18
- angle: string;
19
- value: string;
20
- };
21
- };
22
- data: {
23
- groupMapsTo: string;
24
- };
25
- height: string;
26
- };
27
- };
28
- };
29
- export declare const RadarCentered: {
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
- product: string;
36
- feature: string;
37
- score: number;
38
- }[];
39
- options: {
40
- title: string;
41
- radar: {
42
- axes: {
43
- angle: string;
44
- value: string;
45
- };
46
- alignment: string;
47
- };
48
- data: {
49
- groupMapsTo: string;
50
- };
51
- legend: {
52
- alignment: string;
53
- };
54
- height: string;
55
- };
56
- };
57
- };
58
- export declare const RadarMissingDatapoints: {
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
- key: string;
66
- value: number;
67
- }[];
68
- options: {
69
- title: string;
70
- height: string;
71
- };
72
- };
73
- };
74
- export declare const RadarDense: {
75
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
76
- args: {
77
- isInverse: boolean;
78
- type: CarbonChartType;
79
- dataSet: {
80
- month: string;
81
- activity: string;
82
- hoursAvg: number;
83
- }[];
84
- options: {
85
- title: string;
86
- radar: {
87
- axes: {
88
- angle: string;
89
- value: string;
90
- };
91
- };
92
- data: {
93
- groupMapsTo: string;
94
- };
95
- height: string;
96
- };
97
- };
98
- };
@@ -1,173 +0,0 @@
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 ScatterLinearXAndY: {
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
- employees: number;
12
- sales: number;
13
- }[];
14
- options: {
15
- title: string;
16
- axes: {
17
- bottom: {
18
- title: string;
19
- mapsTo: string;
20
- scaleType: string;
21
- };
22
- left: {
23
- title: string;
24
- mapsTo: string;
25
- scaleType: string;
26
- };
27
- };
28
- height: string;
29
- };
30
- };
31
- };
32
- export declare const ScatterTimeSeries: {
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
- date: string;
40
- value: number;
41
- } | {
42
- group: string;
43
- date: string;
44
- value: null;
45
- })[];
46
- options: {
47
- title: string;
48
- axes: {
49
- bottom: {
50
- title: string;
51
- scaleType: string;
52
- mapsTo: string;
53
- };
54
- left: {
55
- mapsTo: string;
56
- };
57
- };
58
- height: string;
59
- };
60
- };
61
- };
62
- export declare const ScatterDiscrete: {
63
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
64
- args: {
65
- isInverse: boolean;
66
- type: CarbonChartType;
67
- dataSet: {
68
- group: string;
69
- key: string;
70
- value: number;
71
- }[];
72
- options: {
73
- title: string;
74
- axes: {
75
- bottom: {
76
- title: string;
77
- scaleType: string;
78
- mapsTo: string;
79
- };
80
- left: {
81
- mapsTo: string;
82
- };
83
- };
84
- height: string;
85
- };
86
- };
87
- };
88
- export declare const ScatterDualAxes: {
89
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
90
- args: {
91
- isInverse: boolean;
92
- type: CarbonChartType;
93
- dataSet: ({
94
- group: string;
95
- date: string;
96
- orderCount: number;
97
- productCount?: undefined;
98
- } | {
99
- group: string;
100
- date: string;
101
- productCount: number;
102
- orderCount?: undefined;
103
- })[];
104
- options: {
105
- title: string;
106
- axes: {
107
- bottom: {
108
- mapsTo: string;
109
- scaleType: string;
110
- };
111
- left: {
112
- title: string;
113
- mapsTo: string;
114
- scaleType: string;
115
- };
116
- right: {
117
- title: string;
118
- mapsTo: string;
119
- scaleType: string;
120
- correspondingDatasets: string[];
121
- };
122
- };
123
- height: string;
124
- };
125
- };
126
- };
127
- export declare const ScatterEmptyState: {
128
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
129
- args: {
130
- isInverse: boolean;
131
- type: CarbonChartType;
132
- dataSet: never[];
133
- options: {
134
- title: string;
135
- axes: {
136
- bottom: {
137
- title: string;
138
- scaleType: string;
139
- mapsTo: string;
140
- };
141
- left: {
142
- mapsTo: string;
143
- };
144
- };
145
- height: string;
146
- };
147
- };
148
- };
149
- export declare const ScatterSkeleton: {
150
- render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, CarbonChartProps>;
151
- args: {
152
- isInverse: boolean;
153
- type: CarbonChartType;
154
- dataSet: never[];
155
- options: {
156
- title: string;
157
- axes: {
158
- bottom: {
159
- title: string;
160
- scaleType: string;
161
- mapsTo: string;
162
- };
163
- left: {
164
- mapsTo: string;
165
- };
166
- };
167
- data: {
168
- loading: boolean;
169
- };
170
- height: string;
171
- };
172
- };
173
- };
@@ -1,51 +0,0 @@
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 AreaSparkline: {
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: string;
12
- value: number;
13
- }[];
14
- options: {
15
- title: string;
16
- height: string;
17
- grid: {
18
- x: {
19
- enabled: boolean;
20
- };
21
- y: {
22
- enabled: boolean;
23
- };
24
- };
25
- axes: {
26
- bottom: {
27
- visible: boolean;
28
- title: string;
29
- mapsTo: string;
30
- scaleType: string;
31
- };
32
- left: {
33
- visible: boolean;
34
- mapsTo: string;
35
- scaleType: string;
36
- };
37
- };
38
- color: {
39
- gradient: {
40
- enabled: boolean;
41
- };
42
- };
43
- points: {
44
- enabled: boolean;
45
- };
46
- legend: {
47
- enabled: boolean;
48
- };
49
- };
50
- };
51
- };
@@ -1,38 +0,0 @@
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 StepTimeSeries: {
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: string;
12
- value: number;
13
- surplus: number;
14
- } | {
15
- group: string;
16
- date: string;
17
- value: null;
18
- surplus: number;
19
- })[];
20
- options: {
21
- title: string;
22
- axes: {
23
- bottom: {
24
- title: string;
25
- mapsTo: string;
26
- scaleType: string;
27
- };
28
- left: {
29
- mapsTo: string;
30
- title: string;
31
- scaleType: string;
32
- };
33
- };
34
- curve: string;
35
- height: string;
36
- };
37
- };
38
- };
@@ -1,27 +0,0 @@
1
- import * as React from 'react';
2
- import { LineChartProps } from './LineChart';
3
- interface BaseChartProps {
4
- /**
5
- * Description of what the line chart data represents placed above the chart
6
- */
7
- description?: string;
8
- /**
9
- * @internal
10
- */
11
- testId?: string;
12
- /**
13
- * Title of the line chart
14
- */
15
- title: string;
16
- /**
17
- * Type of chart - for now just 'line' is accepted
18
- */
19
- type: string;
20
- }
21
- export interface ChartProps<T extends any> extends BaseChartProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>, LineChartProps<T> {
22
- }
23
- declare function BaseChart<T>(props: ChartProps<T>, ref: React.Ref<HTMLDivElement>): React.JSX.Element;
24
- export declare const Chart: <T>(props: ChartProps<T> & {
25
- ref?: React.MutableRefObject<HTMLDivElement> | undefined;
26
- }) => ReturnType<typeof BaseChart>;
27
- export {};
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
- import { VictoryAxisProps } from 'victory';
3
- export declare function toCamelCase(str: string): string;
4
- export interface DataTableProps {
5
- data?: any[];
6
- xData: {
7
- keyValue?: string | number | symbol;
8
- label?: VictoryAxisProps['label'];
9
- tickFormat?: Partial<VictoryAxisProps['tickFormat']>;
10
- tickValues?: VictoryAxisProps['tickValues'];
11
- };
12
- yData: {
13
- keyValue?: string | number | symbol;
14
- tickFormat?: Partial<VictoryAxisProps['tickFormat']>;
15
- };
16
- }
17
- export declare const ChartDataTable: (props: DataTableProps) => React.JSX.Element;
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- import { LineSegmentProps } from 'victory';
3
- export declare const CustomAxisComponent: React.FunctionComponent<LineSegmentProps>;