@redsift/charts 11.5.0 → 11.6.0-muiv5-alpha.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/_virtual/_rollupPluginBabelHelpers.js +93 -0
- package/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/components/Arc/Arc.d.ts +6 -0
- package/components/Arc/Arc.js +74 -0
- package/components/Arc/Arc.js.map +1 -0
- package/components/Arc/styles.d.ts +17 -0
- package/components/Arc/styles.js +49 -0
- package/components/Arc/styles.js.map +1 -0
- package/components/Arc/types.d.ts +20 -0
- package/components/Arcs/Arcs.d.ts +6 -0
- package/components/Arcs/Arcs.js +90 -0
- package/components/Arcs/Arcs.js.map +1 -0
- package/components/Arcs/styles.d.ts +9 -0
- package/components/Arcs/styles.js +9 -0
- package/components/Arcs/styles.js.map +1 -0
- package/components/Arcs/types.d.ts +17 -0
- package/components/Axis/Axis.d.ts +7 -0
- package/components/Axis/Axis.js +211 -0
- package/components/Axis/Axis.js.map +1 -0
- package/components/Axis/computeTicks.js +117 -0
- package/components/Axis/computeTicks.js.map +1 -0
- package/components/Axis/styles.d.ts +14 -0
- package/components/Axis/styles.js +51 -0
- package/components/Axis/styles.js.map +1 -0
- package/components/Axis/types.d.ts +89 -0
- package/components/Axis/types.js +24 -0
- package/components/Axis/types.js.map +1 -0
- package/components/Bar/Bar.d.ts +6 -0
- package/components/Bar/Bar.js +95 -0
- package/components/Bar/Bar.js.map +1 -0
- package/components/Bar/styles.d.ts +16 -0
- package/components/Bar/styles.js +66 -0
- package/components/Bar/styles.js.map +1 -0
- package/components/Bar/types.d.ts +46 -0
- package/components/Bar/types.js +18 -0
- package/components/Bar/types.js.map +1 -0
- package/components/BarChart/BarChart.d.ts +29 -0
- package/components/BarChart/BarChart.js +141 -0
- package/components/BarChart/BarChart.js.map +1 -0
- package/components/BarChart/BarChartBars.js +168 -0
- package/components/BarChart/BarChartBars.js.map +1 -0
- package/components/BarChart/BarChartSection.js +139 -0
- package/components/BarChart/BarChartSection.js.map +1 -0
- package/components/BarChart/EmptyBarChart.js +57 -0
- package/components/BarChart/EmptyBarChart.js.map +1 -0
- package/components/BarChart/LoadingBarChart.js +18 -0
- package/components/BarChart/LoadingBarChart.js.map +1 -0
- package/components/BarChart/RenderedLinearBarChart.js +549 -0
- package/components/BarChart/RenderedLinearBarChart.js.map +1 -0
- package/components/BarChart/RenderedOrdinalBarChart.js +236 -0
- package/components/BarChart/RenderedOrdinalBarChart.js.map +1 -0
- package/components/BarChart/context.js +13 -0
- package/components/BarChart/context.js.map +1 -0
- package/components/BarChart/intl/en-US.json.js +17 -0
- package/components/BarChart/intl/en-US.json.js.map +1 -0
- package/components/BarChart/intl/fr-FR.json.js +17 -0
- package/components/BarChart/intl/fr-FR.json.js.map +1 -0
- package/components/BarChart/intl/index.js +10 -0
- package/components/BarChart/intl/index.js.map +1 -0
- package/components/BarChart/styles.d.ts +19 -0
- package/components/BarChart/styles.js +71 -0
- package/components/BarChart/styles.js.map +1 -0
- package/components/BarChart/types.d.ts +177 -0
- package/components/BarChart/types.js +17 -0
- package/components/BarChart/types.js.map +1 -0
- package/components/BarChart/utils.js +69 -0
- package/components/BarChart/utils.js.map +1 -0
- package/components/ChartContainer/ChartContainer.d.ts +9 -0
- package/components/ChartContainer/ChartContainer.js +167 -0
- package/components/ChartContainer/ChartContainer.js.map +1 -0
- package/components/ChartContainer/context.js +6 -0
- package/components/ChartContainer/context.js.map +1 -0
- package/components/ChartContainer/intl/en-US.json.js +14 -0
- package/components/ChartContainer/intl/en-US.json.js.map +1 -0
- package/components/ChartContainer/intl/fr-FR.json.js +14 -0
- package/components/ChartContainer/intl/fr-FR.json.js.map +1 -0
- package/components/ChartContainer/intl/index.js +10 -0
- package/components/ChartContainer/intl/index.js.map +1 -0
- package/components/ChartContainer/styles.d.ts +17 -0
- package/components/ChartContainer/styles.js +76 -0
- package/components/ChartContainer/styles.js.map +1 -0
- package/components/ChartContainer/types.d.ts +48 -0
- package/components/DataPoint/DataPoint.d.ts +6 -0
- package/components/DataPoint/DataPoint.js +104 -0
- package/components/DataPoint/DataPoint.js.map +1 -0
- package/components/DataPoint/styles.d.ts +12 -0
- package/components/DataPoint/styles.js +10 -0
- package/components/DataPoint/styles.js.map +1 -0
- package/components/DataPoint/types.d.ts +60 -0
- package/components/Dot/Dot.d.ts +6 -0
- package/components/Dot/Dot.js +55 -0
- package/components/Dot/Dot.js.map +1 -0
- package/components/Dot/styles.d.ts +16 -0
- package/components/Dot/styles.js +49 -0
- package/components/Dot/styles.js.map +1 -0
- package/components/Dot/types.d.ts +30 -0
- package/components/Dot/types.js +14 -0
- package/components/Dot/types.js.map +1 -0
- package/components/Legend/Legend.d.ts +6 -0
- package/components/Legend/Legend.js +73 -0
- package/components/Legend/Legend.js.map +1 -0
- package/components/Legend/styles.d.ts +11 -0
- package/components/Legend/styles.js +15 -0
- package/components/Legend/styles.js.map +1 -0
- package/components/Legend/types.d.ts +44 -0
- package/components/LegendItem/LegendItem.js +96 -0
- package/components/LegendItem/LegendItem.js.map +1 -0
- package/components/LegendItem/styles.js +63 -0
- package/components/LegendItem/styles.js.map +1 -0
- package/components/LegendItem/types.d.ts +20 -0
- package/components/Line/Line.d.ts +6 -0
- package/components/Line/Line.js +55 -0
- package/components/Line/Line.js.map +1 -0
- package/components/Line/styles.d.ts +9 -0
- package/components/Line/styles.js +9 -0
- package/components/Line/styles.js.map +1 -0
- package/components/Line/types.d.ts +21 -0
- package/components/LineChart/EmptyLineChart.js +58 -0
- package/components/LineChart/EmptyLineChart.js.map +1 -0
- package/components/LineChart/LineChart.d.ts +6 -0
- package/components/LineChart/LineChart.js +96 -0
- package/components/LineChart/LineChart.js.map +1 -0
- package/components/LineChart/LoadingLineChart.js +18 -0
- package/components/LineChart/LoadingLineChart.js.map +1 -0
- package/components/LineChart/RenderedLineChart.js +372 -0
- package/components/LineChart/RenderedLineChart.js.map +1 -0
- package/components/LineChart/intl/en-US.json.js +17 -0
- package/components/LineChart/intl/en-US.json.js.map +1 -0
- package/components/LineChart/intl/fr-FR.json.js +17 -0
- package/components/LineChart/intl/fr-FR.json.js.map +1 -0
- package/components/LineChart/intl/index.js +10 -0
- package/components/LineChart/intl/index.js.map +1 -0
- package/components/LineChart/styles.d.ts +17 -0
- package/components/LineChart/styles.js +53 -0
- package/components/LineChart/styles.js.map +1 -0
- package/components/LineChart/types.d.ts +90 -0
- package/components/LineChart/types.js +17 -0
- package/components/LineChart/types.js.map +1 -0
- package/components/LineChart/utils.js +67 -0
- package/components/LineChart/utils.js.map +1 -0
- package/components/PieChart/EmptyPieChart.js +85 -0
- package/components/PieChart/EmptyPieChart.js.map +1 -0
- package/components/PieChart/LoadingPieChart.js +18 -0
- package/components/PieChart/LoadingPieChart.js.map +1 -0
- package/components/PieChart/PieChart.d.ts +6 -0
- package/components/PieChart/PieChart.js +98 -0
- package/components/PieChart/PieChart.js.map +1 -0
- package/components/PieChart/RenderedPieChart.js +198 -0
- package/components/PieChart/RenderedPieChart.js.map +1 -0
- package/components/PieChart/intl/en-US.json.js +9 -0
- package/components/PieChart/intl/en-US.json.js.map +1 -0
- package/components/PieChart/intl/fr-FR.json.js +9 -0
- package/components/PieChart/intl/fr-FR.json.js.map +1 -0
- package/components/PieChart/intl/index.js +10 -0
- package/components/PieChart/intl/index.js.map +1 -0
- package/components/PieChart/styles.d.ts +24 -0
- package/components/PieChart/styles.js +168 -0
- package/components/PieChart/styles.js.map +1 -0
- package/components/PieChart/types.d.ts +115 -0
- package/components/PieChart/types.js +27 -0
- package/components/PieChart/types.js.map +1 -0
- package/components/PieChart/utils.js +37 -0
- package/components/PieChart/utils.js.map +1 -0
- package/components/ScatterPlot/EmptyScatterPlot.js +58 -0
- package/components/ScatterPlot/EmptyScatterPlot.js.map +1 -0
- package/components/ScatterPlot/LoadingScatterPlot.js +18 -0
- package/components/ScatterPlot/LoadingScatterPlot.js.map +1 -0
- package/components/ScatterPlot/RenderedScatterPlot.js +352 -0
- package/components/ScatterPlot/RenderedScatterPlot.js.map +1 -0
- package/components/ScatterPlot/ScatterPlot.d.ts +6 -0
- package/components/ScatterPlot/ScatterPlot.js +105 -0
- package/components/ScatterPlot/ScatterPlot.js.map +1 -0
- package/components/ScatterPlot/intl/en-US.json.js +12 -0
- package/components/ScatterPlot/intl/en-US.json.js.map +1 -0
- package/components/ScatterPlot/intl/fr-FR.json.js +17 -0
- package/components/ScatterPlot/intl/fr-FR.json.js.map +1 -0
- package/components/ScatterPlot/intl/index.js +10 -0
- package/components/ScatterPlot/intl/index.js.map +1 -0
- package/components/ScatterPlot/styles.d.ts +17 -0
- package/components/ScatterPlot/styles.js +53 -0
- package/components/ScatterPlot/styles.js.map +1 -0
- package/components/ScatterPlot/types.d.ts +109 -0
- package/components/ScatterPlot/types.js +24 -0
- package/components/ScatterPlot/types.js.map +1 -0
- package/components/ScatterPlot/utils.js +70 -0
- package/components/ScatterPlot/utils.js.map +1 -0
- package/config.js +15 -0
- package/config.js.map +1 -0
- package/design-system/src/react-aria/react-aria/i18n/useMessageFormatter.d.ts +5 -0
- package/hooks/useBrush.d.ts +17 -0
- package/hooks/useBrush.js +48 -0
- package/hooks/useBrush.js.map +1 -0
- package/hooks/useColor.d.ts +18 -0
- package/hooks/useColor.js +20 -0
- package/hooks/useColor.js.map +1 -0
- package/hooks/useFormatCategoricalData.d.ts +26 -0
- package/hooks/useFormatCategoricalData.js +57 -0
- package/hooks/useFormatCategoricalData.js.map +1 -0
- package/hooks/useZoom.d.ts +26 -0
- package/hooks/useZoom.js +39 -0
- package/hooks/useZoom.js.map +1 -0
- package/index.d.ts +51 -1277
- package/index.js +42 -5118
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/scheme.d.ts +32 -0
- package/scheme.js +47 -0
- package/scheme.js.map +1 -0
- package/types/axis.d.ts +48 -0
- package/types/data.d.ts +72 -0
- package/types/legend.d.ts +30 -0
- package/types/legend.js +21 -0
- package/types/legend.js.map +1 -0
- package/types/scale.d.ts +48 -0
- package/types/size.d.ts +20 -0
- package/types/size.js +8 -0
- package/types/size.js.map +1 -0
- package/types/theme.d.ts +23 -0
- package/types/theme.js +13 -0
- package/types/theme.js.map +1 -0
- package/utils/index.d.ts +11 -0
- package/utils/index.js +44 -0
- package/utils/index.js.map +1 -0
package/index.d.ts
CHANGED
|
@@ -1,1277 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
grid?: boolean | {
|
|
53
|
-
length?: number;
|
|
54
|
-
stroke?: string;
|
|
55
|
-
strokeWidth?: number;
|
|
56
|
-
strokeDasharray?: string;
|
|
57
|
-
opacity?: number;
|
|
58
|
-
};
|
|
59
|
-
legend?: string;
|
|
60
|
-
legendOffset?: number;
|
|
61
|
-
legendPosition?: 'start' | 'middle' | 'end';
|
|
62
|
-
legendX?: number;
|
|
63
|
-
legendY?: number;
|
|
64
|
-
legendRotation?: number;
|
|
65
|
-
legendStyle?: React.CSSProperties;
|
|
66
|
-
/** Length of the axis. */
|
|
67
|
-
length?: number;
|
|
68
|
-
/** Position of axis. top|bottom means this is an x axis, right|left means this is an y axis. */
|
|
69
|
-
position?: AxisPosition;
|
|
70
|
-
/** Scale (d3.js) used to generate the axis. */
|
|
71
|
-
scale?: AnyScale;
|
|
72
|
-
tickFormat?: ((d: NumericValue) => string) | ((d: StringValue) => string) | ((d: Date) => string) | ((d: ScaleValue) => string);
|
|
73
|
-
tickPadding?: number;
|
|
74
|
-
tickRotation?: number;
|
|
75
|
-
tickSize?: number;
|
|
76
|
-
tickValues?: TicksSpec;
|
|
77
|
-
tickRemodelling?: (tickValues: any[]) => any[];
|
|
78
|
-
/** Variant. */
|
|
79
|
-
variant?: AxisVariant;
|
|
80
|
-
/** X position. */
|
|
81
|
-
x?: number;
|
|
82
|
-
/** Y position. */
|
|
83
|
-
y?: number;
|
|
84
|
-
/** Chart width, used for horizontal grid. */
|
|
85
|
-
chartWidth?: number;
|
|
86
|
-
/** Chart height, used for horizontal grid. */
|
|
87
|
-
chartHeight?: number;
|
|
88
|
-
/** Section height, used for horizontal grid within a section. */
|
|
89
|
-
sectionHeight?: number;
|
|
90
|
-
/** Color used for tick values. */
|
|
91
|
-
textColor?: string;
|
|
92
|
-
/** Custom method to choose which tick value to color if not all. */
|
|
93
|
-
tickToColor?: (tick?: {
|
|
94
|
-
textX: number;
|
|
95
|
-
textY: number;
|
|
96
|
-
lineX: number;
|
|
97
|
-
lineY: number;
|
|
98
|
-
x: number;
|
|
99
|
-
y: number;
|
|
100
|
-
key: string;
|
|
101
|
-
value: ScaleValue;
|
|
102
|
-
}, index?: number) => boolean;
|
|
103
|
-
}
|
|
104
|
-
type StyledAxisProps = Omit<AxisProps, 'areXLabelsRotated' | 'size' | 'scale'> & {
|
|
105
|
-
$theme: Theme;
|
|
106
|
-
$color?: string;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
declare const getAxisType: (position: AxisPosition) => "x" | "y";
|
|
110
|
-
declare const Axis: Comp<AxisProps, SVGGElement>;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Component style.
|
|
114
|
-
*/
|
|
115
|
-
declare const StyledAxis: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, Omit<AxisProps, "size" | "scale" | "areXLabelsRotated"> & {
|
|
116
|
-
$theme: Theme;
|
|
117
|
-
$color?: string | undefined;
|
|
118
|
-
}, never>;
|
|
119
|
-
|
|
120
|
-
type ChartAxesProps = {
|
|
121
|
-
/** String to Date. */
|
|
122
|
-
dateParser?: (value: string) => Date;
|
|
123
|
-
/** X axis variant. */
|
|
124
|
-
xAxisVariant?: AxisVariant;
|
|
125
|
-
/** X axis placement. */
|
|
126
|
-
xAxisPlacement?: 'bottom' | 'top' | 'both';
|
|
127
|
-
/** X axis tick format. */
|
|
128
|
-
xAxisTickFormat?: AxisProps['tickFormat'];
|
|
129
|
-
/** X axis tick values. */
|
|
130
|
-
xAxisTickPadding?: AxisProps['tickPadding'];
|
|
131
|
-
/** X axis tick values. */
|
|
132
|
-
xAxisTickRotation?: AxisProps['tickRotation'];
|
|
133
|
-
/** X axis tick values. */
|
|
134
|
-
xAxisTickSize?: AxisProps['tickSize'];
|
|
135
|
-
/** X axis tick values. */
|
|
136
|
-
xAxisTickValues?: AxisProps['tickValues'];
|
|
137
|
-
/** X axis min value. */
|
|
138
|
-
xAxisMinValue?: number | string;
|
|
139
|
-
/** X axis min value. */
|
|
140
|
-
xAxisMaxValue?: number | string;
|
|
141
|
-
/** Y axis tick remodelling. */
|
|
142
|
-
xAxisTickRemodelling?: (tickValues: any[]) => any[];
|
|
143
|
-
/** Y axis variant. */
|
|
144
|
-
yAxisVariant?: AxisVariant;
|
|
145
|
-
/** Y axis placement. */
|
|
146
|
-
yAxisPlacement?: 'right' | 'left' | 'both';
|
|
147
|
-
/** Y axis tick format. */
|
|
148
|
-
yAxisTickFormat?: AxisProps['tickFormat'];
|
|
149
|
-
/** Y axis tick values. */
|
|
150
|
-
yAxisTickPadding?: AxisProps['tickPadding'];
|
|
151
|
-
/** Y axis tick values. */
|
|
152
|
-
yAxisTickRotation?: AxisProps['tickRotation'];
|
|
153
|
-
/** Y axis tick values. */
|
|
154
|
-
yAxisTickSize?: AxisProps['tickSize'];
|
|
155
|
-
/** Y axis tick values. */
|
|
156
|
-
yAxisTickValues?: AxisProps['tickValues'];
|
|
157
|
-
/** Y axis min value. */
|
|
158
|
-
yAxisMinValue?: number | string;
|
|
159
|
-
/** Y axis min value. */
|
|
160
|
-
yAxisMaxValue?: number | string;
|
|
161
|
-
/** Y axis tick remodelling. */
|
|
162
|
-
yAxisTickRemodelling?: (tickValues: any[]) => any[];
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
type JSONValue = string | number | boolean | Date | {
|
|
166
|
-
[x: string]: JSONValue;
|
|
167
|
-
} | Array<JSONValue> | undefined | null;
|
|
168
|
-
type JSONObject = {
|
|
169
|
-
[x: string]: JSONValue;
|
|
170
|
-
};
|
|
171
|
-
type JSONArray = Array<JSONObject>;
|
|
172
|
-
type Datum<T> = {
|
|
173
|
-
key: T;
|
|
174
|
-
value: number;
|
|
175
|
-
percent?: number;
|
|
176
|
-
cumulativeValue?: number;
|
|
177
|
-
};
|
|
178
|
-
type EmptyDatum<T> = {
|
|
179
|
-
key: T;
|
|
180
|
-
value?: number | null;
|
|
181
|
-
percent?: number;
|
|
182
|
-
};
|
|
183
|
-
type CategoryDim = string;
|
|
184
|
-
type LinearDim = number | Date | string;
|
|
185
|
-
type CategoricalOrLinearDim = CategoryDim | LinearDim;
|
|
186
|
-
type TwoCategoryDim = [CategoricalOrLinearDim, CategoryDim | undefined | null];
|
|
187
|
-
type CoordinatesCategoryDim = [number, number, CategoryDim | undefined | null];
|
|
188
|
-
type CategoryDatum = Datum<CategoryDim>;
|
|
189
|
-
type LinearDatum = Datum<LinearDim>;
|
|
190
|
-
type TwoCategoryDatum = EmptyDatum<TwoCategoryDim>;
|
|
191
|
-
type CoordinatesCategoryDatum = Datum<CoordinatesCategoryDim>;
|
|
192
|
-
type CategoryData = CategoryDatum[];
|
|
193
|
-
type LinearData = LinearDatum[];
|
|
194
|
-
type TwoCategoryData = TwoCategoryDatum[];
|
|
195
|
-
type CoordinatesCategoryData = CoordinatesCategoryDatum[];
|
|
196
|
-
type ArcDatum = PieArcDatum<CategoryDatum>;
|
|
197
|
-
type BarDatum = {
|
|
198
|
-
data: CategoryDatum | LinearDatum | Datum<TwoCategoryDim>;
|
|
199
|
-
height?: number;
|
|
200
|
-
width?: number;
|
|
201
|
-
category?: string | null;
|
|
202
|
-
};
|
|
203
|
-
type DotDatum = {
|
|
204
|
-
data: EmptyDatum<CoordinatesCategoryDim | TwoCategoryDim>;
|
|
205
|
-
x: string | number | Date;
|
|
206
|
-
y?: number | null;
|
|
207
|
-
r: number;
|
|
208
|
-
category?: string | null;
|
|
209
|
-
};
|
|
210
|
-
type LinePointDatum = {
|
|
211
|
-
x?: number | string | Date;
|
|
212
|
-
y?: number;
|
|
213
|
-
category?: string | null;
|
|
214
|
-
};
|
|
215
|
-
type Statistic = {
|
|
216
|
-
key: string;
|
|
217
|
-
value: number;
|
|
218
|
-
percent?: number;
|
|
219
|
-
min?: number;
|
|
220
|
-
max?: number;
|
|
221
|
-
values?: number[];
|
|
222
|
-
first?: number;
|
|
223
|
-
last?: number;
|
|
224
|
-
trending?: {
|
|
225
|
-
overall?: number;
|
|
226
|
-
latest?: number;
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
type Statistics = Statistic[];
|
|
230
|
-
type LegendItemDatum = {
|
|
231
|
-
data: Statistic;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
/** TOOLTIP */
|
|
235
|
-
declare const TooltipVariant: {
|
|
236
|
-
none: string;
|
|
237
|
-
label: string;
|
|
238
|
-
value: string;
|
|
239
|
-
percent: string;
|
|
240
|
-
custom: string;
|
|
241
|
-
};
|
|
242
|
-
type TooltipVariant = ValueOf<typeof TooltipVariant>;
|
|
243
|
-
/** LEGEND */
|
|
244
|
-
declare const LegendVariant: {
|
|
245
|
-
readonly none: "none";
|
|
246
|
-
readonly label: "label";
|
|
247
|
-
readonly value: "value";
|
|
248
|
-
readonly percent: "percent";
|
|
249
|
-
readonly custom: "custom";
|
|
250
|
-
};
|
|
251
|
-
type LegendVariant = ValueOf<typeof LegendVariant>;
|
|
252
|
-
declare const LabelVariant: {
|
|
253
|
-
readonly none: "none";
|
|
254
|
-
readonly label: "label";
|
|
255
|
-
readonly value: "value";
|
|
256
|
-
readonly percent: "percent";
|
|
257
|
-
readonly custom: "custom";
|
|
258
|
-
};
|
|
259
|
-
type LabelVariant = LegendVariant;
|
|
260
|
-
|
|
261
|
-
type Coordinates = {
|
|
262
|
-
x: number;
|
|
263
|
-
y: number;
|
|
264
|
-
};
|
|
265
|
-
type NumericValue = {
|
|
266
|
-
valueOf(): number;
|
|
267
|
-
};
|
|
268
|
-
type StringValue = {
|
|
269
|
-
toString(): string;
|
|
270
|
-
};
|
|
271
|
-
type ScaleValue = NumericValue | StringValue | Date;
|
|
272
|
-
interface ScaleLinear<Output> extends ScaleLinear$2<number, Output, never> {
|
|
273
|
-
type: 'linear';
|
|
274
|
-
stacked: boolean;
|
|
275
|
-
}
|
|
276
|
-
interface ScaleLog extends ScaleLogarithmic<number, number> {
|
|
277
|
-
type: 'log';
|
|
278
|
-
}
|
|
279
|
-
interface ScaleSymlog extends ScaleSymLog<number, number> {
|
|
280
|
-
type: 'symlog';
|
|
281
|
-
}
|
|
282
|
-
interface ScalePoint<Input extends StringValue> extends ScalePoint$1<Input> {
|
|
283
|
-
type: 'point';
|
|
284
|
-
}
|
|
285
|
-
interface ScaleBand<Input extends StringValue> extends ScaleBand$1<Input> {
|
|
286
|
-
type: 'band';
|
|
287
|
-
}
|
|
288
|
-
interface ScaleTime<Input> extends ScaleTime$1<Input, number> {
|
|
289
|
-
type: 'time';
|
|
290
|
-
useUTC: boolean;
|
|
291
|
-
}
|
|
292
|
-
interface ScaleTypeToScale<Input, Output> {
|
|
293
|
-
linear: Input extends NumericValue ? ScaleLinear<Output> : never;
|
|
294
|
-
log: Input extends NumericValue ? ScaleLog : never;
|
|
295
|
-
symlog: Input extends NumericValue ? ScaleSymlog : never;
|
|
296
|
-
point: Input extends StringValue ? ScalePoint<Input> : never;
|
|
297
|
-
band: Input extends StringValue ? ScaleBand<Input> : never;
|
|
298
|
-
time: Input extends StringValue | Date ? ScaleTime<Input> : never;
|
|
299
|
-
}
|
|
300
|
-
type Scale<Input, Output> = ScaleTypeToScale<Input, Output>[keyof ScaleTypeToScale<Input, Output>];
|
|
301
|
-
type AnyScale = Scale<any, any>;
|
|
302
|
-
type ScaleWithBandwidth = ScaleBand<any> | ScalePoint<any>;
|
|
303
|
-
type TicksSpec = number | string | ScaleValue[] | CountableTimeInterval;
|
|
304
|
-
|
|
305
|
-
type ChartDimensions = {
|
|
306
|
-
width: number;
|
|
307
|
-
height: number;
|
|
308
|
-
};
|
|
309
|
-
declare const ChartSize: {
|
|
310
|
-
readonly small: "small";
|
|
311
|
-
readonly medium: "medium";
|
|
312
|
-
readonly large: "large";
|
|
313
|
-
};
|
|
314
|
-
type ChartSize = ValueOf<typeof ChartSize>;
|
|
315
|
-
type MarginProps = {
|
|
316
|
-
top?: number;
|
|
317
|
-
right?: number;
|
|
318
|
-
bottom?: number;
|
|
319
|
-
left?: number;
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
declare const ColorTheme: {
|
|
323
|
-
readonly default: "default";
|
|
324
|
-
readonly dark: "dark";
|
|
325
|
-
readonly darker: "darker";
|
|
326
|
-
readonly darkerer: "darkerer";
|
|
327
|
-
readonly light: "light";
|
|
328
|
-
readonly lighter: "lighter";
|
|
329
|
-
readonly lighterer: "lighterer";
|
|
330
|
-
readonly monochrome: "monochrome";
|
|
331
|
-
};
|
|
332
|
-
type ColorTheme = ValueOf<typeof ColorTheme>;
|
|
333
|
-
type SuccessDangerColorTheme = {
|
|
334
|
-
success: string;
|
|
335
|
-
warning: string;
|
|
336
|
-
danger: string;
|
|
337
|
-
neutral?: string;
|
|
338
|
-
};
|
|
339
|
-
type CustomColorTheme = Record<string, string>;
|
|
340
|
-
type ChartTheme = ColorTheme | SuccessDangerColorTheme | CustomColorTheme;
|
|
341
|
-
|
|
342
|
-
interface UseColorProps {
|
|
343
|
-
/** Dataset to use to generate the chart. */
|
|
344
|
-
data: JSONArray;
|
|
345
|
-
/** Color palette to use. */
|
|
346
|
-
colorTheme: ChartTheme;
|
|
347
|
-
/** Name of the field that will be used to categorize the data. */
|
|
348
|
-
category: string | ((d: JSONObject) => string);
|
|
349
|
-
/** Theme */
|
|
350
|
-
theme: Theme;
|
|
351
|
-
}
|
|
352
|
-
declare const useColor: ({ data, colorTheme, category, theme }: UseColorProps) => ScaleOrdinal<string, string, never>;
|
|
353
|
-
|
|
354
|
-
type SortingMethod = 'none' | 'asc-key' | 'desc-key' | 'asc-value' | 'desc-value' | string[] | ((a: CategoryDatum, b: CategoryDatum) => 1 | -1);
|
|
355
|
-
declare const getSortingMethod: (sortingMethod: SortingMethod) => (a: CategoryDatum, b: CategoryDatum) => 1 | -1;
|
|
356
|
-
declare const isValidDate: (value: string) => boolean;
|
|
357
|
-
declare const mergeLegends: (arr1: Statistics, arr2: Statistics) => {
|
|
358
|
-
key: any;
|
|
359
|
-
value: any;
|
|
360
|
-
}[];
|
|
361
|
-
|
|
362
|
-
interface UseFormatCategoricalDataProps {
|
|
363
|
-
/** Dataset to use to generate the chart, should be a list of objects containing a key and a value. */
|
|
364
|
-
data: CategoryData;
|
|
365
|
-
/** Color palette to use. */
|
|
366
|
-
colorTheme: ChartTheme;
|
|
367
|
-
/** Define how to sort categories. */
|
|
368
|
-
sortingMethod: SortingMethod;
|
|
369
|
-
/** Number of categories to use, the rest being put into a new category called "Others". */
|
|
370
|
-
caping?: number;
|
|
371
|
-
/** Whether a category should be displayed for categories that has been removed by the caping option. Optionaly, this prop can be used to change the label of this category. */
|
|
372
|
-
others?: boolean | string;
|
|
373
|
-
/** Theme */
|
|
374
|
-
theme: Theme;
|
|
375
|
-
}
|
|
376
|
-
declare const useFormatCategoricalData: ({ data, caping, sortingMethod, others, colorTheme, theme, }: UseFormatCategoricalDataProps) => {
|
|
377
|
-
data: CategoryData;
|
|
378
|
-
colorScale: d3_scale.ScaleOrdinal<string, string, never>;
|
|
379
|
-
};
|
|
380
|
-
|
|
381
|
-
interface UseZoomProps {
|
|
382
|
-
svgRef: MutableRefObject<SVGSVGElement | undefined>;
|
|
383
|
-
scaleX: ScaleLinear$1<number, number>;
|
|
384
|
-
scaleY: ScaleLinear$1<number, number>;
|
|
385
|
-
defaultTransform?: {
|
|
386
|
-
k: number;
|
|
387
|
-
x: number;
|
|
388
|
-
y: number;
|
|
389
|
-
};
|
|
390
|
-
size?: any;
|
|
391
|
-
onZoom?: () => void;
|
|
392
|
-
}
|
|
393
|
-
declare const useZoom: ({ svgRef, scaleX, scaleY, defaultTransform, size, onZoom, }: UseZoomProps) => {
|
|
394
|
-
transform: {
|
|
395
|
-
k: number;
|
|
396
|
-
x: number;
|
|
397
|
-
y: number;
|
|
398
|
-
};
|
|
399
|
-
scaleX: ScaleLinear$1<number, number, never>;
|
|
400
|
-
scaleY: ScaleLinear$1<number, number, never>;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
declare const monochrome = "#73C5EB";
|
|
404
|
-
declare const empty = "#BFBFBF";
|
|
405
|
-
declare const scheme: {
|
|
406
|
-
default: string[];
|
|
407
|
-
dark: string[];
|
|
408
|
-
darker: string[];
|
|
409
|
-
darkerer: string[];
|
|
410
|
-
light: string[];
|
|
411
|
-
lighter: string[];
|
|
412
|
-
lighterer: string[];
|
|
413
|
-
monochrome: string[];
|
|
414
|
-
empty: string[];
|
|
415
|
-
};
|
|
416
|
-
declare const successDangerScheme: {
|
|
417
|
-
success: string;
|
|
418
|
-
warning: string;
|
|
419
|
-
danger: string;
|
|
420
|
-
neutralLight: string;
|
|
421
|
-
neutralDark: string;
|
|
422
|
-
};
|
|
423
|
-
declare const getColorScale: ({ colorTheme, domain, isEmpty, theme, }: {
|
|
424
|
-
colorTheme: ChartTheme;
|
|
425
|
-
domain?: string[] | undefined;
|
|
426
|
-
isEmpty?: boolean | undefined;
|
|
427
|
-
theme: Theme;
|
|
428
|
-
}) => ScaleOrdinal<string, string>;
|
|
429
|
-
|
|
430
|
-
type AnchorProps = ComponentProps<'a'> & {
|
|
431
|
-
as?: any;
|
|
432
|
-
};
|
|
433
|
-
/**
|
|
434
|
-
* Component props.
|
|
435
|
-
*/
|
|
436
|
-
interface DataPointProps<T> extends Omit<ComponentProps<'g'>, 'onClick' | 'scale'> {
|
|
437
|
-
/** Anchor props to use when the component is a navigation link. */
|
|
438
|
-
anchorProps?: AnchorProps;
|
|
439
|
-
/** Color of the DataPoint. */
|
|
440
|
-
color?: string;
|
|
441
|
-
/** Data. Also state to which the component should end the animation, if any. */
|
|
442
|
-
data: T;
|
|
443
|
-
/** Entire dataset in which the data point is a part of. */
|
|
444
|
-
dataset: any[];
|
|
445
|
-
/** Disable animations. */
|
|
446
|
-
disableAnimations?: boolean;
|
|
447
|
-
/** Group of data in which the data point is a part of. */
|
|
448
|
-
groupedData?: any[];
|
|
449
|
-
/** Id. Used for accessibility. */
|
|
450
|
-
id?: string;
|
|
451
|
-
/** Position in the list of siblings. Used for placement and selection. */
|
|
452
|
-
index?: number;
|
|
453
|
-
/** Whether the component is selected or not. Used only if the component is selectable. Set to `undefined` to make nor selected nor unselected. */
|
|
454
|
-
isSelected?: boolean;
|
|
455
|
-
/** Method modifying the label before displaying it. */
|
|
456
|
-
labelDecorator?: (data: T, props?: {
|
|
457
|
-
index?: number;
|
|
458
|
-
isSelected?: boolean;
|
|
459
|
-
color?: string;
|
|
460
|
-
}) => string | ReactElement;
|
|
461
|
-
/** Method called when a click or keydown occurs on the component. */
|
|
462
|
-
onClick?: (data: T, dataset: any[]) => void;
|
|
463
|
-
/** State from which the component should start the animation, if any. */
|
|
464
|
-
previousData?: T;
|
|
465
|
-
/** Role. Will be set to 'button' if onClick is provided. If 'option', then the component becomes selectable. */
|
|
466
|
-
role?: 'img' | 'button' | 'link' | 'option';
|
|
467
|
-
/** Theme. */
|
|
468
|
-
theme?: Theme;
|
|
469
|
-
/** Tooltip variant. */
|
|
470
|
-
tooltipVariant?: TooltipVariant;
|
|
471
|
-
/** Method modifying what's displayed within the tooltip when the tooltipVariant is "custom". */
|
|
472
|
-
tooltipDecorator?: (data: T, props?: {
|
|
473
|
-
index?: number;
|
|
474
|
-
isSelected?: boolean;
|
|
475
|
-
color?: string;
|
|
476
|
-
}, dataset?: any[], groupedData?: any[]) => string | ReactElement;
|
|
477
|
-
/** Default placement of the tooltip. */
|
|
478
|
-
tooltipProps?: Partial<Omit<TooltipProps, 'ref'>>;
|
|
479
|
-
}
|
|
480
|
-
type StyledDataPointProps = Omit<DataPointProps<any>, 'data' | 'dataset'> & {
|
|
481
|
-
$clickable: boolean;
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
declare const DataPoint: Comp<DataPointProps<any>, SVGGElement>;
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Component style.
|
|
488
|
-
*/
|
|
489
|
-
declare const StyledDataPoint: styled_components.StyledComponent<_react_spring_web.AnimatedComponent<"g">, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
|
|
490
|
-
$clickable: boolean;
|
|
491
|
-
}, never>;
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* Component props.
|
|
495
|
-
*/
|
|
496
|
-
interface ArcProps extends DataPointProps<ArcDatum> {
|
|
497
|
-
/** Arc generator used to determine the width of the arc. */
|
|
498
|
-
createArc: Arc$1<any, ArcDatum>;
|
|
499
|
-
/** Whether the arc has a stroke or not. Used to create a gap between two siblings. */
|
|
500
|
-
hasStroke?: boolean;
|
|
501
|
-
}
|
|
502
|
-
type StyledArcProps = StyledDataPointProps & Omit<ArcProps, 'createArc'> & {
|
|
503
|
-
$hasStroke: ArcProps['hasStroke'];
|
|
504
|
-
$theme: Theme;
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
declare const Arc: Comp<ArcProps, SVGGElement>;
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* Component style.
|
|
511
|
-
*/
|
|
512
|
-
declare const StyledArc: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
|
|
513
|
-
$clickable: boolean;
|
|
514
|
-
} & Omit<ArcProps, "createArc"> & {
|
|
515
|
-
$hasStroke: boolean | undefined;
|
|
516
|
-
$theme: Theme;
|
|
517
|
-
}, never>;
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* Component props.
|
|
521
|
-
*/
|
|
522
|
-
interface ArcsProps extends Omit<ComponentProps<'g'>, 'onClick' | 'role'>, Pick<ArcProps, 'id' | 'disableAnimations' | 'labelDecorator' | 'onClick' | 'role' | 'hasStroke' | 'tooltipDecorator' | 'tooltipVariant'> {
|
|
523
|
-
/** Arc props. */
|
|
524
|
-
arcs: Omit<ArcProps, 'ref'>[];
|
|
525
|
-
/** Whether arcs have internal labels or not. */
|
|
526
|
-
hasLabels?: boolean;
|
|
527
|
-
/** Native HTML props to forward to each slice. */
|
|
528
|
-
sliceProps?: Omit<ComponentProps<'g'>, 'onClick' | 'ref' | 'width'>;
|
|
529
|
-
}
|
|
530
|
-
type StyledArcsProps = Omit<ArcsProps, 'arcs'> & {};
|
|
531
|
-
|
|
532
|
-
declare const Arcs: Comp<ArcsProps, SVGGElement>;
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* Component style.
|
|
536
|
-
*/
|
|
537
|
-
declare const StyledArcs: styled_components.StyledComponent<"g", any, Omit<ArcsProps, "arcs">, never>;
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Component variant.
|
|
541
|
-
*/
|
|
542
|
-
declare const BarOrientation: {
|
|
543
|
-
horizontal: string;
|
|
544
|
-
vertical: string;
|
|
545
|
-
};
|
|
546
|
-
type BarOrientation = ValueOf<typeof BarOrientation>;
|
|
547
|
-
declare const BarDirection: {
|
|
548
|
-
up: string;
|
|
549
|
-
down: string;
|
|
550
|
-
};
|
|
551
|
-
type BarDirection = ValueOf<typeof BarDirection>;
|
|
552
|
-
/**
|
|
553
|
-
* Component props.
|
|
554
|
-
*/
|
|
555
|
-
interface BarProps extends DataPointProps<BarDatum> {
|
|
556
|
-
/** Gap between two siblings. */
|
|
557
|
-
gap?: number;
|
|
558
|
-
/** Height of the bar in horizontal orientation. */
|
|
559
|
-
height?: number;
|
|
560
|
-
/** Maximum height of the bar. */
|
|
561
|
-
maxHeight?: number;
|
|
562
|
-
/** Orientation of the bar. */
|
|
563
|
-
orientation?: BarOrientation;
|
|
564
|
-
/** Direction of the bar, works only with vertical orientation. */
|
|
565
|
-
direction?: BarOrientation;
|
|
566
|
-
/** A linear continuous scale defined over a numeric domain used to determine the width or height of the bar (depending on the orientation). */
|
|
567
|
-
scale: ScaleLinear$1<number, number, never>;
|
|
568
|
-
/** A scale defined over a numeric/time/ordinal domain used to determine the position of the bar. */
|
|
569
|
-
scalePosition: ScaleLinear$1<number, number, never> | ScaleTime$2<number, number, never> | ScalePoint$2<string>;
|
|
570
|
-
/** Width of the bar in vertical orientation. */
|
|
571
|
-
width?: number;
|
|
572
|
-
/** Min width of the bar in vertical orientation. */
|
|
573
|
-
minWidth?: number;
|
|
574
|
-
}
|
|
575
|
-
type StyledBarProps = StyledDataPointProps & Omit<BarProps, 'scale' | 'scalePosition'> & {
|
|
576
|
-
$theme: Theme;
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
declare const Bar: Comp<BarProps, SVGGElement>;
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* Component style.
|
|
583
|
-
*/
|
|
584
|
-
declare const StyledBar: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
|
|
585
|
-
$clickable: boolean;
|
|
586
|
-
} & Omit<BarProps, "scale" | "scalePosition"> & {
|
|
587
|
-
$theme: Theme;
|
|
588
|
-
}, never>;
|
|
589
|
-
|
|
590
|
-
/**
|
|
591
|
-
* Component props.
|
|
592
|
-
*/
|
|
593
|
-
interface ChartContainerProps extends Omit<ComponentProps<'div'>, 'title'>, ContainerProps {
|
|
594
|
-
/** Native HTML props to pass to the chart. */
|
|
595
|
-
chartProps?: ComponentProps<'div'>;
|
|
596
|
-
/** Ref to the chart. */
|
|
597
|
-
chartRef?: RefObject<HTMLDivElement>;
|
|
598
|
-
/** Description. */
|
|
599
|
-
description?: string | ReactElement;
|
|
600
|
-
/** Whether the description should be placed below the title or below the chart. */
|
|
601
|
-
descriptionPosition?: 'belowTitle' | 'belowChart';
|
|
602
|
-
/** Disable animations. */
|
|
603
|
-
disableAnimations?: boolean;
|
|
604
|
-
/** Id. */
|
|
605
|
-
id?: string;
|
|
606
|
-
/** Method called when the Reset button is displayed (defines whether or not the button should be displayed). */
|
|
607
|
-
onReset?: () => void;
|
|
608
|
-
/** Title. */
|
|
609
|
-
title?: string | ReactElement;
|
|
610
|
-
/** Theme. */
|
|
611
|
-
theme?: Theme;
|
|
612
|
-
/** Description that won't be visually displayed but will be used for assistive technology. If you want to display the description, use `description` instead. */
|
|
613
|
-
descriptionForAssistiveTechnology?: string;
|
|
614
|
-
/** Whether the chart is static or interactive. */
|
|
615
|
-
mode?: string;
|
|
616
|
-
/** Small text explaining which kind of chart is presenting and what's its basic composition. */
|
|
617
|
-
definition?: string;
|
|
618
|
-
/** Small text explaining the basic composition of the x-axis, if any. */
|
|
619
|
-
xAxisDefinition?: string;
|
|
620
|
-
/** Small text explaining the basic composition of the y-axis, if any. */
|
|
621
|
-
yAxisDefinition?: string;
|
|
622
|
-
/** Small text explaining how the chart is interactive, if any. */
|
|
623
|
-
interactionExplanation?: string;
|
|
624
|
-
/** Table representation of the chart. */
|
|
625
|
-
dataTableRepresentation?: {
|
|
626
|
-
header: ReactElement;
|
|
627
|
-
body: ReactElement;
|
|
628
|
-
};
|
|
629
|
-
}
|
|
630
|
-
type StyledChartContainerProps = Omit<ChartContainerProps, 'theme'> & {
|
|
631
|
-
$theme: Theme;
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
declare const ChartContainer: Comp<ChartContainerProps, HTMLDivElement>;
|
|
635
|
-
declare const ChartContainerTitle: Comp<Pick<ChartContainerProps, 'onReset'> & ComponentProps<'div'>, HTMLDivElement>;
|
|
636
|
-
declare const ChartContainerDescription: Comp<ComponentProps<'div'>, HTMLDivElement>;
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Component style.
|
|
640
|
-
*/
|
|
641
|
-
declare const StyledChartContainer: styled_components.StyledComponent<"div", any, Omit<ChartContainerProps, "theme"> & {
|
|
642
|
-
$theme: Theme;
|
|
643
|
-
}, never>;
|
|
644
|
-
declare const StyledChartContainerTitle: styled_components.StyledComponent<_redsift_design_system.Comp<_redsift_design_system.FlexboxProps, HTMLDivElement>, any, Omit<ChartContainerProps, "theme"> & {
|
|
645
|
-
$theme: Theme;
|
|
646
|
-
}, never>;
|
|
647
|
-
declare const StyledChartContainerCaption: styled_components.StyledComponent<"p", any, Omit<StyledChartContainerProps, "onReset">, never>;
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* Component props.
|
|
651
|
-
*/
|
|
652
|
-
interface LegendItemProps extends Pick<DataPointProps<LegendItemDatum>, 'color' | 'data' | 'dataset' | 'id' | 'index' | 'isSelected' | 'labelDecorator' | 'onClick' | 'previousData' | 'role' | 'tooltipVariant'>, Omit<ComponentProps<'li'>, 'onClick' | 'role'> {
|
|
653
|
-
/** Method modifying what's displayed within the legend when the variant is "custom". */
|
|
654
|
-
legendDecorator?: (datum: LegendItemDatum, props?: {
|
|
655
|
-
index?: number;
|
|
656
|
-
isSelected?: boolean;
|
|
657
|
-
color?: string;
|
|
658
|
-
}) => string | ReactElement;
|
|
659
|
-
/** Variant. */
|
|
660
|
-
variant?: LegendVariant;
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/**
|
|
664
|
-
* Component props.
|
|
665
|
-
*/
|
|
666
|
-
interface LegendProps extends Omit<ComponentProps<'ul'>, 'onClick' | 'children'>, ContainerProps {
|
|
667
|
-
/** Children */
|
|
668
|
-
children?: ReactElement | ReactElement[] | ((data: (Statistic & {
|
|
669
|
-
color: string;
|
|
670
|
-
})[], total?: number) => ReactElement);
|
|
671
|
-
/** Data. */
|
|
672
|
-
data?: (Statistic & {
|
|
673
|
-
color: string;
|
|
674
|
-
})[];
|
|
675
|
-
/** Method to determine whether a legend is selected or not. */
|
|
676
|
-
isLegendItemSelected?: (datum: LegendItemDatum) => void;
|
|
677
|
-
/** Method to override the data labels. */
|
|
678
|
-
labelDecorator?: (datum: LegendItemDatum, props?: {
|
|
679
|
-
index?: number;
|
|
680
|
-
isSelected?: boolean;
|
|
681
|
-
color?: string;
|
|
682
|
-
}) => string | ReactElement;
|
|
683
|
-
/** Method modifying what's displayed within the legend when the variant is "custom". */
|
|
684
|
-
legendDecorator?: (datum: LegendItemDatum, props?: {
|
|
685
|
-
index?: number;
|
|
686
|
-
isSelected?: boolean;
|
|
687
|
-
color?: string;
|
|
688
|
-
}) => string | ReactElement;
|
|
689
|
-
/** Method to be called on a click on a legend item. */
|
|
690
|
-
onLegendItemClick?: (datum: LegendItemDatum, data: LegendItemDatum[]) => void;
|
|
691
|
-
/** LegendItem role. Used to indicate that legend items are to be considered buttons or links. If an onClick is provided, the legend items will have the role `button` unless specifically set to `link` with this prop. */
|
|
692
|
-
legendItemRole?: LegendItemProps['role'];
|
|
693
|
-
/** Variant. */
|
|
694
|
-
variant?: LegendVariant;
|
|
695
|
-
}
|
|
696
|
-
type StyledLegendProps = Omit<LegendProps, 'data'> & {
|
|
697
|
-
$width?: LegendProps['width'];
|
|
698
|
-
};
|
|
699
|
-
|
|
700
|
-
declare const Legend: Comp<LegendProps, HTMLUListElement>;
|
|
701
|
-
|
|
702
|
-
/**
|
|
703
|
-
* Component style.
|
|
704
|
-
*/
|
|
705
|
-
declare const StyledLegend: styled_components.StyledComponent<"ul", any, Omit<LegendProps, "data"> & {
|
|
706
|
-
$width?: string | number | undefined;
|
|
707
|
-
}, never>;
|
|
708
|
-
|
|
709
|
-
type FormatMessage = (key: string, variables?: {
|
|
710
|
-
[key: string]: any;
|
|
711
|
-
}) => string;
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* Component's labels variant.
|
|
715
|
-
*/
|
|
716
|
-
declare const BarChartLegendVariant: {
|
|
717
|
-
readonly none: "none";
|
|
718
|
-
readonly externalLabel: "externalLabel";
|
|
719
|
-
readonly externalLabelValue: "externalLabelValue";
|
|
720
|
-
readonly externalLabelPercent: "externalLabelPercent";
|
|
721
|
-
readonly custom: "custom";
|
|
722
|
-
};
|
|
723
|
-
type BarChartLegendVariant = ValueOf<typeof BarChartLegendVariant>;
|
|
724
|
-
interface LocaleText$3 {
|
|
725
|
-
emptyChartText: string;
|
|
726
|
-
}
|
|
727
|
-
type BarChartDimensions = ChartDimensions & {
|
|
728
|
-
fontSize: number;
|
|
729
|
-
minWidth?: number;
|
|
730
|
-
maxWidth?: number;
|
|
731
|
-
};
|
|
732
|
-
type XScaleType = 'number' | 'Date' | 'dateString' | undefined;
|
|
733
|
-
/**
|
|
734
|
-
* Component props.
|
|
735
|
-
*/
|
|
736
|
-
interface BarChartProps extends ChartContainerProps, ChartAxesProps {
|
|
737
|
-
/** @deprecated: Use xAxisTickRotation instead. Whether the x axis labels are rotated or not. */
|
|
738
|
-
areXLabelsRotated?: boolean;
|
|
739
|
-
/** Native HTML props to forward to each bar. */
|
|
740
|
-
barProps?: Omit<ComponentProps<'g'>, 'onClick' | 'orientation' | 'ref' | 'scale' | 'direction'> & {
|
|
741
|
-
minWidth?: number;
|
|
742
|
-
};
|
|
743
|
-
/** Bar role. If an onClick is provided, the bars will have the role `button`. For a navigation link, please use `getBarAnchorProps` instead. */
|
|
744
|
-
barRole?: BarProps['role'];
|
|
745
|
-
/** Number of categories to use, the rest being put into a new category called "Others". */
|
|
746
|
-
caping?: number;
|
|
747
|
-
/** Color palette to use. You can choose among the list of available color palette or also choose to use the success/warning/danger theme for which you have to specify which key corresponds to which status. */
|
|
748
|
-
colorTheme?: ChartTheme;
|
|
749
|
-
/** Dataset to use to generate the chart, should be a list of objects containing a key and a value. */
|
|
750
|
-
data?: CategoryData | LinearData | TwoCategoryData;
|
|
751
|
-
/** Data type override to skip data type inferrence. */
|
|
752
|
-
dataType?: 'TwoCategoryData' | 'LinearData' | 'CategoryData';
|
|
753
|
-
/**
|
|
754
|
-
* Direction of the bars. Only applied when the orientation is vertical. By default bars go "up" but can go "down".
|
|
755
|
-
* They can also go both ways in which case you need to indicates which category go which direction. The concatenation of the two arrays will be used to determine the order of the categories instead of the sortingMethod prop.
|
|
756
|
-
*/
|
|
757
|
-
direction?: BarDirection;
|
|
758
|
-
/** Component to use if the chart is empty (replacing the default one). */
|
|
759
|
-
emptyComponent?: ReactNode;
|
|
760
|
-
/** Method used to define the anchor props to use when the bar is a navigation link. */
|
|
761
|
-
getBarAnchorProps?: (datum: BarDatum) => AnchorProps;
|
|
762
|
-
/** Method to determine whether a bar is selected or not. */
|
|
763
|
-
isBarSelected?: (datum: BarDatum) => void;
|
|
764
|
-
/** Method to override the data labels. */
|
|
765
|
-
labelDecorator?: (datum: BarDatum, props?: {
|
|
766
|
-
index?: number;
|
|
767
|
-
isSelected?: boolean;
|
|
768
|
-
color?: string;
|
|
769
|
-
}) => string | ReactElement;
|
|
770
|
-
/** Method modifying what's displayed within the legend when the legendVariant is "custom". */
|
|
771
|
-
legendDecorator?: (datum: BarDatum, props?: {
|
|
772
|
-
index?: number;
|
|
773
|
-
isSelected?: boolean;
|
|
774
|
-
color?: string;
|
|
775
|
-
}) => string | ReactElement;
|
|
776
|
-
/** Define whether the labels should be displayed inside or outside the charts and if they should contain raw or percentage values. If set to "custom", use `legendDecorator` to customize it. */
|
|
777
|
-
legendVariant?: BarChartLegendVariant;
|
|
778
|
-
/** Props to forward to the Legend block. Can be used to make the legend selectable. */
|
|
779
|
-
legendProps?: Omit<LegendProps, 'data' | 'ref' | 'variant' | 'width'> & {
|
|
780
|
-
extraLegendItems?: Statistics;
|
|
781
|
-
};
|
|
782
|
-
/** Labels and texts. */
|
|
783
|
-
localeText?: LocaleText$3;
|
|
784
|
-
/** Custom margins, used to give more space for axes labels and legend for instance. */
|
|
785
|
-
margins?: MarginProps;
|
|
786
|
-
/** Method to be called on a click on a bar. For a navigation link, please use `getBarAnchorProps` instead. */
|
|
787
|
-
onBarClick?: (datum: BarDatum, data: BarDatum[]) => void;
|
|
788
|
-
/** Orientation of the bar. */
|
|
789
|
-
orientation?: BarOrientation;
|
|
790
|
-
/** Whether a category should be displayed for categories that has been removed by the caping option. Optionaly, this prop can be used to change the label of this category. */
|
|
791
|
-
others?: boolean | string;
|
|
792
|
-
/** BarChart size. */
|
|
793
|
-
size?: ChartSize | BarChartDimensions;
|
|
794
|
-
/** Define how to sort categories. */
|
|
795
|
-
sortingMethod?: SortingMethod;
|
|
796
|
-
/** Method modifying what's displayed within the tooltip when the tooltipVariant is "custom". */
|
|
797
|
-
tooltipDecorator?: (data: BarDatum, props?: {
|
|
798
|
-
index?: number;
|
|
799
|
-
isSelected?: boolean;
|
|
800
|
-
color?: string;
|
|
801
|
-
}, dataset?: ComputedBarProps[], groupedData?: ComputedBarProps[]) => string | ReactElement;
|
|
802
|
-
/** Tooltip variant. */
|
|
803
|
-
tooltipVariant?: TooltipVariant | 'grouped';
|
|
804
|
-
/** Theme. */
|
|
805
|
-
theme?: Theme;
|
|
806
|
-
/** X-scale type override to skip x-scale type inferrence. */
|
|
807
|
-
xScaleType?: XScaleType;
|
|
808
|
-
/**
|
|
809
|
-
* In case of a datetime x-axis, if the xAxisTickValues prop is passed with a d3.js method having an offset function (for instance `timeDay`), the following prop will be used as argument.
|
|
810
|
-
* For reference, the line of code using it is: xAxisTickValues.offset(new Date(domain[0]), xAxisStartDateOffset)
|
|
811
|
-
*/
|
|
812
|
-
xAxisStartDateOffset?: number;
|
|
813
|
-
/**
|
|
814
|
-
* In case of a datetime x-axis, if the xAxisTickValues prop is passed with a d3.js method having an offset function (for instance `timeDay`), the following prop will be used as argument.
|
|
815
|
-
* For reference, the line of code using it is: xAxisTickValues.offset(new Date(domain[1]), xAxisEndDateOffset)
|
|
816
|
-
*/
|
|
817
|
-
xAxisEndDateOffset?: number;
|
|
818
|
-
/** If set, the Y axis will use a logarithmic scale using this base. Set this value to 10 to use a default logarithmic scale. */
|
|
819
|
-
yScaleLogBase?: number;
|
|
820
|
-
}
|
|
821
|
-
type StyledBarChartProps = BarChartProps & {};
|
|
822
|
-
interface RenderedLinearBarChartProps extends Omit<BarChartProps, 'data' | 'caping' | 'orientation' | 'others'> {
|
|
823
|
-
data: LinearData | TwoCategoryData;
|
|
824
|
-
}
|
|
825
|
-
interface ComputedBarProps {
|
|
826
|
-
category: string;
|
|
827
|
-
key: LinearDim;
|
|
828
|
-
value: number;
|
|
829
|
-
cumulativeValue: number;
|
|
830
|
-
}
|
|
831
|
-
interface BarChartState extends ChartAxesProps, Required<Pick<RenderedLinearBarChartProps, 'margins'>>, Pick<RenderedLinearBarChartProps, 'barProps' | 'barRole' | 'colorTheme' | 'direction' | 'disableAnimations' | 'getBarAnchorProps' | 'id' | 'isBarSelected' | 'labelDecorator' | 'onBarClick' | 'tooltipVariant' | 'tooltipDecorator'> {
|
|
832
|
-
bars: ComputedBarProps[];
|
|
833
|
-
barWidth: number;
|
|
834
|
-
cache: React.MutableRefObject<LinearData | TwoCategoryData | undefined>;
|
|
835
|
-
categories: string[];
|
|
836
|
-
chartHeight: number;
|
|
837
|
-
chartWidth: number;
|
|
838
|
-
colorScale?: ScaleOrdinal<string, string>;
|
|
839
|
-
format: FormatMessage;
|
|
840
|
-
gap: number;
|
|
841
|
-
hasCategory: boolean;
|
|
842
|
-
scaleX: ScaleLinear$1<number, number, never> | ScaleTime$2<number, number, never> | ScalePoint$2<string>;
|
|
843
|
-
scaleY: ScaleLinear$1<number, number>;
|
|
844
|
-
sectionHeight?: number;
|
|
845
|
-
xScaleType?: XScaleType;
|
|
846
|
-
}
|
|
847
|
-
interface BarChartSectionProps extends Omit<ComponentProps<'g'>, 'onClick' | 'role' | 'color'> {
|
|
848
|
-
/** Starting point in percentage of the chart height. */
|
|
849
|
-
from?: number;
|
|
850
|
-
/** Ending point in percentage of the chart height. */
|
|
851
|
-
to?: number;
|
|
852
|
-
/** Color. */
|
|
853
|
-
color?: 'red' | 'green' | {
|
|
854
|
-
textColor: string;
|
|
855
|
-
backgroundColor?: string;
|
|
856
|
-
};
|
|
857
|
-
/** Section title */
|
|
858
|
-
title?: string;
|
|
859
|
-
/** Title position relative to section */
|
|
860
|
-
titlePosition?: 'left' | 'center' | 'right';
|
|
861
|
-
scaleX?: ScaleLinear$1<number, number, never> | ScaleTime$2<number, number, never> | ScalePoint$2<string>;
|
|
862
|
-
scaleY?: ScaleLinear$1<number, number, never>;
|
|
863
|
-
direction?: BarDirection;
|
|
864
|
-
}
|
|
865
|
-
interface StyledBarChartSectionProps {
|
|
866
|
-
$theme: Theme;
|
|
867
|
-
$textColor: string;
|
|
868
|
-
}
|
|
869
|
-
interface BarChartBarsProps extends Omit<ComponentProps<'g'>, 'onClick' | 'role'> {
|
|
870
|
-
category?: string;
|
|
871
|
-
}
|
|
872
|
-
type StyledBarChartBarsProps = Omit<BarChartBarsProps, 'category'> & {};
|
|
873
|
-
|
|
874
|
-
declare const BaseBarChart: Comp<BarChartProps, HTMLDivElement>;
|
|
875
|
-
declare const BarChart: Comp<BarChartProps, HTMLDivElement> & {
|
|
876
|
-
Section: Comp<BarChartSectionProps, SVGGElement>;
|
|
877
|
-
Bars: Comp<BarChartBarsProps, SVGGElement>;
|
|
878
|
-
Axis: Comp<AxisProps, SVGGElement>;
|
|
879
|
-
GroupedTooltip: React$1.FC<{
|
|
880
|
-
dateFormatter: (date: Date) => string;
|
|
881
|
-
categories: string[];
|
|
882
|
-
categoryDecorator?: ((category: string) => string) | undefined;
|
|
883
|
-
categoryColor: (category: string) => string;
|
|
884
|
-
datum: BarDatum;
|
|
885
|
-
groupedData: ComputedBarProps[] | undefined;
|
|
886
|
-
}>;
|
|
887
|
-
Legend: Comp<LegendProps, HTMLUListElement>;
|
|
888
|
-
LegendItem: Comp<LegendItemProps, HTMLLIElement>;
|
|
889
|
-
Title: Comp<Pick<ChartContainerProps, "onReset"> & React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
890
|
-
Description: Comp<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HTMLDivElement>;
|
|
891
|
-
};
|
|
892
|
-
|
|
893
|
-
/**
|
|
894
|
-
* Component style.
|
|
895
|
-
*/
|
|
896
|
-
declare const StyledBarChart: styled_components.StyledComponent<_redsift_design_system.Comp<ChartContainerProps, HTMLDivElement>, any, BarChartProps, never>;
|
|
897
|
-
declare const StyledBarChartSection: styled_components.StyledComponent<"g", any, StyledBarChartSectionProps, never>;
|
|
898
|
-
declare const StyledBarChartBars: styled_components.StyledComponent<"g", any, Omit<BarChartBarsProps, "category">, never>;
|
|
899
|
-
declare const StyledBarChartEmptyText: styled_components.StyledComponent<"div", any, {
|
|
900
|
-
$maxWidth: number;
|
|
901
|
-
$textSize: number;
|
|
902
|
-
$theme: Theme;
|
|
903
|
-
}, never>;
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* Component's variant.
|
|
907
|
-
*/
|
|
908
|
-
declare const DotVariant: {
|
|
909
|
-
readonly plain: "plain";
|
|
910
|
-
readonly hollow: "hollow";
|
|
911
|
-
};
|
|
912
|
-
type DotVariant = ValueOf<typeof DotVariant>;
|
|
913
|
-
/**
|
|
914
|
-
* Component props.
|
|
915
|
-
*/
|
|
916
|
-
interface DotProps extends DataPointProps<DotDatum> {
|
|
917
|
-
/** A scale defined over a numeric/time/ordinal domain used to determine the x position based on the coordinates. */
|
|
918
|
-
scaleX: ScaleLinear$1<number, number, never> | ScaleTime$2<number, number, never> | ScalePoint$2<string>;
|
|
919
|
-
/** A linear continuous scale defined over a numeric domain used to determine the y position based on the coordinates. */
|
|
920
|
-
scaleY: ScaleLinear$1<number, number, never>;
|
|
921
|
-
/** Variant. */
|
|
922
|
-
variant?: DotVariant;
|
|
923
|
-
}
|
|
924
|
-
type StyledDotProps = StyledDataPointProps & Omit<DotProps, 'scaleX' | 'scaleY'> & {
|
|
925
|
-
$variant: DotProps['variant'];
|
|
926
|
-
$theme: Theme;
|
|
927
|
-
};
|
|
928
|
-
|
|
929
|
-
declare const Dot: Comp<DotProps, SVGGElement>;
|
|
930
|
-
|
|
931
|
-
/**
|
|
932
|
-
* Component style.
|
|
933
|
-
*/
|
|
934
|
-
declare const StyledDot: styled_components.StyledComponent<_redsift_design_system.Comp<DataPointProps<any>, SVGGElement>, any, Omit<DataPointProps<any>, "data" | "dataset"> & {
|
|
935
|
-
$clickable: boolean;
|
|
936
|
-
} & Omit<DotProps, "scaleX" | "scaleY"> & {
|
|
937
|
-
$variant: DotVariant | undefined;
|
|
938
|
-
$theme: _redsift_design_system.Theme;
|
|
939
|
-
}, never>;
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
* Component props.
|
|
943
|
-
*/
|
|
944
|
-
interface LineProps extends Omit<ComponentProps<'g'>, 'onClick' | 'role'>, Pick<DotProps, 'id' | 'isSelected' | 'role'> {
|
|
945
|
-
/** Line generator used to determine the path of the line. */
|
|
946
|
-
createLine: Line$1<LinePointDatum>;
|
|
947
|
-
/** Points used to compute the line path. */
|
|
948
|
-
data: LinePointDatum[];
|
|
949
|
-
/** Disable animations. */
|
|
950
|
-
disableAnimations?: boolean;
|
|
951
|
-
/** Previous data used for animation. */
|
|
952
|
-
previousData?: LinePointDatum[];
|
|
953
|
-
}
|
|
954
|
-
type StyledLineProps = Omit<LineProps, 'createLine' | 'data'>;
|
|
955
|
-
|
|
956
|
-
declare const Line: Comp<LineProps, SVGGElement>;
|
|
957
|
-
|
|
958
|
-
/**
|
|
959
|
-
* Component style.
|
|
960
|
-
*/
|
|
961
|
-
declare const StyledLine: styled_components.StyledComponent<"g", any, StyledLineProps, never>;
|
|
962
|
-
|
|
963
|
-
/**
|
|
964
|
-
* Component's labels variant.
|
|
965
|
-
*/
|
|
966
|
-
declare const LineChartLegendVariant: {
|
|
967
|
-
readonly none: "none";
|
|
968
|
-
readonly externalLabel: "externalLabel";
|
|
969
|
-
readonly externalLabelValue: "externalLabelValue";
|
|
970
|
-
readonly externalLabelPercent: "externalLabelPercent";
|
|
971
|
-
readonly custom: "custom";
|
|
972
|
-
};
|
|
973
|
-
type LineChartLegendVariant = ValueOf<typeof LineChartLegendVariant>;
|
|
974
|
-
interface LocaleText$2 {
|
|
975
|
-
emptyChartText: string;
|
|
976
|
-
}
|
|
977
|
-
type LineChartDimensions = ChartDimensions & {
|
|
978
|
-
fontSize: number;
|
|
979
|
-
};
|
|
980
|
-
/**
|
|
981
|
-
* Component props.
|
|
982
|
-
*/
|
|
983
|
-
interface LineChartProps extends ChartContainerProps, ChartAxesProps {
|
|
984
|
-
/** Dataset to use to generate the chart. */
|
|
985
|
-
data?: TwoCategoryData;
|
|
986
|
-
/** Dot role. If an onClick is provided, the dots will have the role `button`. For a navigation link, please use `getDotAnchorProps` instead. */
|
|
987
|
-
dotRole?: DotProps['role'];
|
|
988
|
-
/** Component to use if the chart is empty (replacing the default one). */
|
|
989
|
-
emptyComponent?: ReactNode;
|
|
990
|
-
/** Method used to define the anchor props to use when the dot is a navigation link. */
|
|
991
|
-
getDotAnchorProps?: (datum: DotDatum) => AnchorProps;
|
|
992
|
-
/** Method to determine whether a dot is selected or not. */
|
|
993
|
-
isDotSelected?: (datum: DotDatum) => boolean | undefined;
|
|
994
|
-
/** Method to override the data point labels. */
|
|
995
|
-
labelDecorator?: (datum: DotDatum, props?: {
|
|
996
|
-
index?: number;
|
|
997
|
-
isSelected?: boolean;
|
|
998
|
-
color?: string;
|
|
999
|
-
}) => string | ReactElement;
|
|
1000
|
-
/** Method modifying what's displayed within the legend when the legendVariant is "custom". */
|
|
1001
|
-
legendDecorator?: (datum: DotDatum, props?: {
|
|
1002
|
-
index?: number;
|
|
1003
|
-
isSelected?: boolean;
|
|
1004
|
-
color?: string;
|
|
1005
|
-
}) => string | ReactElement;
|
|
1006
|
-
/** Define whether the labels should be displayed inside or outside the charts and if they should contain raw or percentage values. If set to "custom", use `legendDecorator` to customize it. */
|
|
1007
|
-
legendVariant?: LineChartLegendVariant;
|
|
1008
|
-
/** Props to forward to the Legend block. Can be used to make the legend selectable. */
|
|
1009
|
-
legendProps?: Omit<LegendProps, 'data' | 'ref' | 'variant' | 'width'> & {
|
|
1010
|
-
extraLegendItems?: Statistics;
|
|
1011
|
-
};
|
|
1012
|
-
/** Labels and texts. */
|
|
1013
|
-
localeText?: LocaleText$2;
|
|
1014
|
-
/** Custom margins, used to give more space for axes labels and legend for instance. */
|
|
1015
|
-
margins?: MarginProps;
|
|
1016
|
-
/** Method to be called on a click on a dot. For a navigation link, please use `getDotAnchorProps` instead. */
|
|
1017
|
-
onDotClick?: (datum: DotDatum) => void;
|
|
1018
|
-
/** LineChart size. */
|
|
1019
|
-
size?: ChartSize | LineChartDimensions;
|
|
1020
|
-
/** Define how to sort categories. */
|
|
1021
|
-
sortingMethod?: SortingMethod;
|
|
1022
|
-
/** Reference to the SVG tag. */
|
|
1023
|
-
svgRef?: MutableRefObject<SVGSVGElement>;
|
|
1024
|
-
/** Color palette to use. You can choose among the list of available color palette or also choose to use the success/warning/danger theme for which you have to specify which key corresponds to which status. */
|
|
1025
|
-
colorTheme?: ChartTheme;
|
|
1026
|
-
/** Method modifying what's displayed within the tooltip when the tooltipVariant is "custom". */
|
|
1027
|
-
tooltipDecorator?: (data: DotDatum, props?: {
|
|
1028
|
-
index?: number;
|
|
1029
|
-
isSelected?: boolean;
|
|
1030
|
-
color?: string;
|
|
1031
|
-
}) => string | ReactElement;
|
|
1032
|
-
/** Tooltip variant. */
|
|
1033
|
-
tooltipVariant?: TooltipVariant;
|
|
1034
|
-
/** Theme. */
|
|
1035
|
-
theme?: Theme;
|
|
1036
|
-
}
|
|
1037
|
-
type StyledLineChartProps = LineChartProps & {};
|
|
1038
|
-
|
|
1039
|
-
declare const LineChart: Comp<LineChartProps, HTMLDivElement>;
|
|
1040
|
-
|
|
1041
|
-
/**
|
|
1042
|
-
* Component style.
|
|
1043
|
-
*/
|
|
1044
|
-
declare const StyledLineChart: styled_components.StyledComponent<_redsift_design_system.Comp<ChartContainerProps, HTMLDivElement>, any, LineChartProps, never>;
|
|
1045
|
-
declare const StyledLineChartEmptyText: styled_components.StyledComponent<"div", any, {
|
|
1046
|
-
$maxWidth: number;
|
|
1047
|
-
$textSize: number;
|
|
1048
|
-
$theme: Theme;
|
|
1049
|
-
}, never>;
|
|
1050
|
-
|
|
1051
|
-
/**
|
|
1052
|
-
* Component variant.
|
|
1053
|
-
*/
|
|
1054
|
-
declare const PieChartVariant: {
|
|
1055
|
-
readonly plain: "plain";
|
|
1056
|
-
readonly spaced: "spaced";
|
|
1057
|
-
readonly donut: "donut";
|
|
1058
|
-
readonly spacedDonut: "spacedDonut";
|
|
1059
|
-
};
|
|
1060
|
-
type PieChartVariant = ValueOf<typeof PieChartVariant>;
|
|
1061
|
-
/**
|
|
1062
|
-
* Component's labels variant.
|
|
1063
|
-
*/
|
|
1064
|
-
declare const PieChartLegendVariant: {
|
|
1065
|
-
readonly none: "none";
|
|
1066
|
-
readonly internal: "internal";
|
|
1067
|
-
readonly externalLabel: "externalLabel";
|
|
1068
|
-
readonly externalLabelValue: "externalLabelValue";
|
|
1069
|
-
readonly externalLabelPercent: "externalLabelPercent";
|
|
1070
|
-
readonly custom: "custom";
|
|
1071
|
-
};
|
|
1072
|
-
type PieChartLegendVariant = ValueOf<typeof PieChartLegendVariant>;
|
|
1073
|
-
interface LocaleText$1 {
|
|
1074
|
-
emptyChartText: string;
|
|
1075
|
-
}
|
|
1076
|
-
type PieChartDimensions = ChartDimensions & {
|
|
1077
|
-
smallFontSize: number;
|
|
1078
|
-
fontSize: number;
|
|
1079
|
-
innerRadius: number;
|
|
1080
|
-
};
|
|
1081
|
-
/**
|
|
1082
|
-
* Component props.
|
|
1083
|
-
*/
|
|
1084
|
-
interface PieChartProps extends ChartContainerProps {
|
|
1085
|
-
/** Number of categories to use, the rest being put into a new category called "Others". */
|
|
1086
|
-
caping?: number;
|
|
1087
|
-
/** Dataset to use to generate the chart, should be a list of objects containing a key and a value. */
|
|
1088
|
-
data?: CategoryData;
|
|
1089
|
-
/** Component to use if the chart is empty (replacing the default one). */
|
|
1090
|
-
emptyComponent?: ReactNode;
|
|
1091
|
-
/** Method used to define the anchor props to use when the slice is a navigation link. */
|
|
1092
|
-
getSliceAnchorProps?: (datum: ArcDatum) => AnchorProps;
|
|
1093
|
-
/** Whether the pie or donut is cut in half or not. */
|
|
1094
|
-
isHalf?: boolean;
|
|
1095
|
-
/** Method to determine whether a slice is selected or not. */
|
|
1096
|
-
isSliceSelected?: (datum: ArcDatum) => boolean | undefined;
|
|
1097
|
-
/** Method to override the data labels. */
|
|
1098
|
-
labelDecorator?: (datum: ArcDatum, props?: {
|
|
1099
|
-
index?: number;
|
|
1100
|
-
isSelected?: boolean;
|
|
1101
|
-
color?: string;
|
|
1102
|
-
}) => string | ReactElement;
|
|
1103
|
-
/** Method modifying what's displayed within the legend when the legendVariant is "custom". */
|
|
1104
|
-
legendDecorator?: (datum: ArcDatum, props?: {
|
|
1105
|
-
index?: number;
|
|
1106
|
-
isSelected?: boolean;
|
|
1107
|
-
color?: string;
|
|
1108
|
-
}) => string | ReactElement;
|
|
1109
|
-
/** Define whether the labels should be displayed inside or outside the charts and if they should contain raw or percentage values. If set to "custom", use `legendDecorator` to customize it. */
|
|
1110
|
-
legendVariant?: PieChartLegendVariant;
|
|
1111
|
-
/** Props to forward to the Legend block. Can be used to make the legend selectable. */
|
|
1112
|
-
legendProps?: Omit<LegendProps, 'data' | 'ref' | 'variant'> & {
|
|
1113
|
-
extraLegendItems?: Statistics;
|
|
1114
|
-
};
|
|
1115
|
-
/** Labels and texts. */
|
|
1116
|
-
localeText?: LocaleText$1;
|
|
1117
|
-
/** Method to be called on a click on a slice. For a navigation link, please use `getSliceAnchorProps` instead. */
|
|
1118
|
-
onSliceClick?: (datum: ArcDatum) => void;
|
|
1119
|
-
/** Whether a category should be displayed for categories that has been removed by the caping option. Optionaly, this prop can be used to change the label of this category. */
|
|
1120
|
-
others?: boolean | string;
|
|
1121
|
-
/** PieChart size. */
|
|
1122
|
-
size?: ChartSize | PieChartDimensions;
|
|
1123
|
-
/** Native HTML props to forward to each slice. */
|
|
1124
|
-
sliceProps?: Omit<ComponentProps<'g'>, 'onClick' | 'ref' | 'width'>;
|
|
1125
|
-
/** Slice role. If an onClick is provided, the slices will have the role `button`. For a navigation link, please use `getSliceAnchorProps` instead. */
|
|
1126
|
-
sliceRole?: ArcProps['role'];
|
|
1127
|
-
/** Define how to sort categories. */
|
|
1128
|
-
sortingMethod?: SortingMethod;
|
|
1129
|
-
/** Secondary text to be displayed in the middle of the chart, between the main text and subtext. Recommended to be used with donut variants only. */
|
|
1130
|
-
middleText?: string | ReactElement | ((data: PieArcDatum<CategoryDatum>[], total: number) => string | ReactElement);
|
|
1131
|
-
/** Secondary text to be displayed in the middle of the chart, above the main text. Recommended to be used with `donut` variants only. */
|
|
1132
|
-
subtext?: string | ReactElement | ((data: PieArcDatum<CategoryDatum>[], total: number) => string | ReactElement);
|
|
1133
|
-
/** Main text to be displayed in the middle of the chart. Recommended to be used with `donut` variants only. */
|
|
1134
|
-
text?: string | ReactElement | ((data: PieArcDatum<CategoryDatum>[], total: number) => string | ReactElement);
|
|
1135
|
-
/** Color palette to use. You can choose among the list of available color palette or also choose to use the success/warning/danger theme for which you have to specify which key corresponds to which status. */
|
|
1136
|
-
colorTheme?: ChartTheme;
|
|
1137
|
-
/** PieChart variant. */
|
|
1138
|
-
variant?: PieChartVariant;
|
|
1139
|
-
/** Method modifying what's displayed within the tooltip when the tooltipVariant is "custom". */
|
|
1140
|
-
tooltipDecorator?: (data: ArcDatum, props?: {
|
|
1141
|
-
index?: number;
|
|
1142
|
-
isSelected?: boolean;
|
|
1143
|
-
color?: string;
|
|
1144
|
-
}) => string | ReactElement;
|
|
1145
|
-
/** Tooltip variant. */
|
|
1146
|
-
tooltipVariant?: TooltipVariant;
|
|
1147
|
-
/** Theme. */
|
|
1148
|
-
theme?: Theme;
|
|
1149
|
-
}
|
|
1150
|
-
type StyledPieChartProps = PieChartProps & {};
|
|
1151
|
-
|
|
1152
|
-
declare const PieChart: Comp<PieChartProps, HTMLDivElement>;
|
|
1153
|
-
|
|
1154
|
-
/**
|
|
1155
|
-
* Component style.
|
|
1156
|
-
*/
|
|
1157
|
-
declare const StyledPieChart: styled_components.StyledComponent<_redsift_design_system.Comp<ChartContainerProps, HTMLDivElement>, any, PieChartProps, never>;
|
|
1158
|
-
declare const StyledPieChartCenterText: styled_components.StyledComponent<"div", any, {
|
|
1159
|
-
$maxWidth: number;
|
|
1160
|
-
$textSize: number;
|
|
1161
|
-
$smallTextSize: number;
|
|
1162
|
-
$theme: Theme;
|
|
1163
|
-
}, never>;
|
|
1164
|
-
declare const StyledPieChartEmptyText: styled_components.StyledComponent<"div", any, {
|
|
1165
|
-
$maxWidth: number;
|
|
1166
|
-
$textSize: number;
|
|
1167
|
-
$isDonut: boolean;
|
|
1168
|
-
$theme: Theme;
|
|
1169
|
-
}, never>;
|
|
1170
|
-
|
|
1171
|
-
/**
|
|
1172
|
-
* Component variant.
|
|
1173
|
-
*/
|
|
1174
|
-
declare const ScatterPlotVariant: {
|
|
1175
|
-
readonly default: "default";
|
|
1176
|
-
readonly gridded: "gridded";
|
|
1177
|
-
};
|
|
1178
|
-
type ScatterPlotVariant = ValueOf<typeof ScatterPlotVariant>;
|
|
1179
|
-
/**
|
|
1180
|
-
* Component's labels variant.
|
|
1181
|
-
*/
|
|
1182
|
-
declare const ScatterPlotLegendVariant: {
|
|
1183
|
-
readonly none: "none";
|
|
1184
|
-
readonly externalLabel: "externalLabel";
|
|
1185
|
-
readonly externalLabelValue: "externalLabelValue";
|
|
1186
|
-
readonly externalLabelPercent: "externalLabelPercent";
|
|
1187
|
-
readonly custom: "custom";
|
|
1188
|
-
};
|
|
1189
|
-
type ScatterPlotLegendVariant = ValueOf<typeof ScatterPlotLegendVariant>;
|
|
1190
|
-
interface LocaleText {
|
|
1191
|
-
emptyChartText: string;
|
|
1192
|
-
}
|
|
1193
|
-
type ScatterPlotDimensions = ChartDimensions & {
|
|
1194
|
-
fontSize: number;
|
|
1195
|
-
};
|
|
1196
|
-
/**
|
|
1197
|
-
* Component props.
|
|
1198
|
-
*/
|
|
1199
|
-
interface ScatterPlotProps extends ChartContainerProps, ChartAxesProps {
|
|
1200
|
-
/** Dataset to use to generate the chart. */
|
|
1201
|
-
data?: CoordinatesCategoryData;
|
|
1202
|
-
/** Method used to define the anchor props to use when the dot is a navigation link. */
|
|
1203
|
-
getDotAnchorProps?: (datum: DotDatum) => AnchorProps;
|
|
1204
|
-
/** Dot role. If an onClick is provided, the dots will have the role `button`. For a navigation link, please use `getDotAnchorProps` instead. */
|
|
1205
|
-
dotRole?: DotProps['role'];
|
|
1206
|
-
/** Component to use if the chart is empty (replacing the default one). */
|
|
1207
|
-
emptyComponent?: ReactNode;
|
|
1208
|
-
/** Whether the Control Keys panel is displayed or not. */
|
|
1209
|
-
hideControlKeyPanel?: boolean;
|
|
1210
|
-
/** Whether the scatter plot dots are selectable using brush or not. */
|
|
1211
|
-
isBrushable?: boolean;
|
|
1212
|
-
/** Method to determine whether a dot is selected or not. */
|
|
1213
|
-
isDotSelected?: (datum: DotDatum) => boolean | undefined;
|
|
1214
|
-
/** Method to override the data point labels. */
|
|
1215
|
-
labelDecorator?: (datum: DotDatum, props?: {
|
|
1216
|
-
index?: number;
|
|
1217
|
-
isSelected?: boolean;
|
|
1218
|
-
color?: string;
|
|
1219
|
-
}) => string | ReactElement;
|
|
1220
|
-
/** Method modifying what's displayed within the legend when the legendVariant is "custom". */
|
|
1221
|
-
legendDecorator?: (datum: DotDatum, props?: {
|
|
1222
|
-
index?: number;
|
|
1223
|
-
isSelected?: boolean;
|
|
1224
|
-
color?: string;
|
|
1225
|
-
}) => string | ReactElement;
|
|
1226
|
-
/** Define whether the labels should be displayed inside or outside the charts and if they should contain raw or percentage values. If set to "custom", use `legendDecorator` to customize it. */
|
|
1227
|
-
legendVariant?: ScatterPlotLegendVariant;
|
|
1228
|
-
/** Props to forward to the Legend block. Can be used to make the legend selectable. */
|
|
1229
|
-
legendProps?: Omit<LegendProps, 'data' | 'ref' | 'variant' | 'width'> & {
|
|
1230
|
-
extraLegendItems?: Statistics;
|
|
1231
|
-
};
|
|
1232
|
-
/** Labels and texts. */
|
|
1233
|
-
localeText?: LocaleText;
|
|
1234
|
-
/** Custom margins, used to give more space for axes labels and legend for instance. */
|
|
1235
|
-
margins?: MarginProps;
|
|
1236
|
-
/** Method called on brush. */
|
|
1237
|
-
onBrush?: (selection: [[number, number], [number, number]] | null, scaleX: ScaleLinear$1<number, number>, scaleY: ScaleLinear$1<number, number>) => void;
|
|
1238
|
-
/** Method called on brush end. */
|
|
1239
|
-
onBrushEnd?: (selection: [[number, number], [number, number]] | null, scaleX?: ScaleLinear$1<number, number>, scaleY?: ScaleLinear$1<number, number>) => void;
|
|
1240
|
-
/** Method to be called on a click on a dot. For a navigation link, please use `getDotAnchorProps` instead. */
|
|
1241
|
-
onDotClick?: (datum: DotDatum) => void;
|
|
1242
|
-
/** ScatterPlot size. */
|
|
1243
|
-
size?: ChartSize | ScatterPlotDimensions;
|
|
1244
|
-
/** Define how to sort categories. */
|
|
1245
|
-
sortingMethod?: SortingMethod;
|
|
1246
|
-
/** Reference to the SVG tag. */
|
|
1247
|
-
svgRef?: MutableRefObject<SVGSVGElement>;
|
|
1248
|
-
/** Color palette to use. You can choose among the list of available color palette or also choose to use the success/warning/danger theme for which you have to specify which key corresponds to which status. */
|
|
1249
|
-
colorTheme?: ChartTheme;
|
|
1250
|
-
/** Method modifying what's displayed within the tooltip when the tooltipVariant is "custom". */
|
|
1251
|
-
tooltipDecorator?: (data: DotDatum, props?: {
|
|
1252
|
-
index?: number;
|
|
1253
|
-
isSelected?: boolean;
|
|
1254
|
-
color?: string;
|
|
1255
|
-
}) => string | ReactElement;
|
|
1256
|
-
/** Tooltip variant. */
|
|
1257
|
-
tooltipVariant?: TooltipVariant;
|
|
1258
|
-
/** Variant. */
|
|
1259
|
-
variant?: ScatterPlotVariant;
|
|
1260
|
-
/** Theme. */
|
|
1261
|
-
theme?: Theme;
|
|
1262
|
-
}
|
|
1263
|
-
type StyledScatterPlotProps = ScatterPlotProps & {};
|
|
1264
|
-
|
|
1265
|
-
declare const ScatterPlot: Comp<ScatterPlotProps, HTMLDivElement>;
|
|
1266
|
-
|
|
1267
|
-
/**
|
|
1268
|
-
* Component style.
|
|
1269
|
-
*/
|
|
1270
|
-
declare const StyledScatterPlot: styled_components.StyledComponent<_redsift_design_system.Comp<ChartContainerProps, HTMLDivElement>, any, ScatterPlotProps, never>;
|
|
1271
|
-
declare const StyledScatterPlotEmptyText: styled_components.StyledComponent<"div", any, {
|
|
1272
|
-
$maxWidth: number;
|
|
1273
|
-
$textSize: number;
|
|
1274
|
-
$theme: Theme;
|
|
1275
|
-
}, never>;
|
|
1276
|
-
|
|
1277
|
-
export { AnchorProps, AnyScale, Arc, ArcDatum, ArcProps, Arcs, ArcsProps, Axis, AxisPosition, AxisProps, AxisVariant, Bar, BarChart, BarChartBarsProps, BarChartDimensions, BarChartLegendVariant, BarChartProps, BarChartSectionProps, BarChartState, BarDatum, BarDirection, BarOrientation, BarProps, BaseBarChart, CategoricalOrLinearDim, CategoryData, CategoryDatum, CategoryDim, ChartAxesProps, ChartContainer, ChartContainerDescription, ChartContainerProps, ChartContainerTitle, ChartDimensions, ChartSize, ChartTheme, ColorTheme, ComputedBarProps, Coordinates, CoordinatesCategoryData, CoordinatesCategoryDatum, CoordinatesCategoryDim, CustomColorTheme, DataPoint, DataPointProps, Datum, Dot, DotDatum, DotProps, DotVariant, EmptyDatum, JSONArray, JSONObject, JSONValue, LabelVariant, Legend, LegendItemDatum, LegendProps, LegendVariant, Line, LineChart, LineChartDimensions, LineChartLegendVariant, LineChartProps, LinePointDatum, LineProps, LinearData, LinearDatum, LinearDim, MarginProps, NumericValue, PieChart, PieChartDimensions, PieChartLegendVariant, PieChartProps, PieChartVariant, RenderedLinearBarChartProps, Scale, ScaleBand, ScaleLinear, ScaleLog, ScalePoint, ScaleSymlog, ScaleTime, ScaleTypeToScale, ScaleValue, ScaleWithBandwidth, ScatterPlot, ScatterPlotDimensions, ScatterPlotLegendVariant, ScatterPlotProps, ScatterPlotVariant, SortingMethod, Statistic, Statistics, StringValue, StyledArc, StyledArcProps, StyledArcs, StyledArcsProps, StyledAxis, StyledAxisProps, StyledBar, StyledBarChart, StyledBarChartBars, StyledBarChartBarsProps, StyledBarChartEmptyText, StyledBarChartProps, StyledBarChartSection, StyledBarChartSectionProps, StyledBarProps, StyledChartContainer, StyledChartContainerCaption, StyledChartContainerProps, StyledChartContainerTitle, StyledDataPoint, StyledDataPointProps, StyledDot, StyledDotProps, StyledLegend, StyledLegendProps, StyledLine, StyledLineChart, StyledLineChartEmptyText, StyledLineChartProps, StyledLineProps, StyledPieChart, StyledPieChartCenterText, StyledPieChartEmptyText, StyledPieChartProps, StyledScatterPlot, StyledScatterPlotEmptyText, StyledScatterPlotProps, SuccessDangerColorTheme, TicksSpec, TooltipVariant, TwoCategoryData, TwoCategoryDatum, TwoCategoryDim, UseBrushProps, UseColorProps, UseFormatCategoricalDataProps, UseZoomProps, XScaleType, empty, getAxisType, getColorScale, getSortingMethod, isValidDate, mergeLegends, monochrome, scheme, successDangerScheme, useBrush, useColor, useFormatCategoricalData, useZoom };
|
|
1
|
+
export { empty, getColorScale, monochrome, scheme, successDangerScheme } from './scheme.js';
|
|
2
|
+
export { SortingMethod, getSortingMethod, isValidDate, mergeLegends } from './utils/index.js';
|
|
3
|
+
export { UseBrushProps, useBrush } from './hooks/useBrush.js';
|
|
4
|
+
export { UseColorProps, useColor } from './hooks/useColor.js';
|
|
5
|
+
export { UseFormatCategoricalDataProps, useFormatCategoricalData } from './hooks/useFormatCategoricalData.js';
|
|
6
|
+
export { UseZoomProps, useZoom } from './hooks/useZoom.js';
|
|
7
|
+
export { ChartAxesProps } from './types/axis.js';
|
|
8
|
+
export { ArcDatum, BarDatum, CategoricalOrLinearDim, CategoryData, CategoryDatum, CategoryDim, CoordinatesCategoryData, CoordinatesCategoryDatum, CoordinatesCategoryDim, Datum, DotDatum, EmptyDatum, JSONArray, JSONObject, JSONValue, LegendItemDatum, LinePointDatum, LinearData, LinearDatum, LinearDim, Statistic, Statistics, TwoCategoryData, TwoCategoryDatum, TwoCategoryDim } from './types/data.js';
|
|
9
|
+
export { LabelVariant, LegendVariant, TooltipVariant } from './types/legend.js';
|
|
10
|
+
export { AnyScale, Coordinates, NumericValue, Scale, ScaleBand, ScaleLinear, ScaleLog, ScalePoint, ScaleSymlog, ScaleTime, ScaleTypeToScale, ScaleValue, ScaleWithBandwidth, StringValue, TicksSpec } from './types/scale.js';
|
|
11
|
+
export { ChartDimensions, ChartSize, MarginProps } from './types/size.js';
|
|
12
|
+
export { ChartTheme, ColorTheme, CustomColorTheme, SuccessDangerColorTheme } from './types/theme.js';
|
|
13
|
+
export { Arc } from './components/Arc/Arc.js';
|
|
14
|
+
export { ArcProps, StyledArcProps } from './components/Arc/types.js';
|
|
15
|
+
export { StyledArc } from './components/Arc/styles.js';
|
|
16
|
+
export { Arcs } from './components/Arcs/Arcs.js';
|
|
17
|
+
export { ArcsProps, StyledArcsProps } from './components/Arcs/types.js';
|
|
18
|
+
export { StyledArcs } from './components/Arcs/styles.js';
|
|
19
|
+
export { Axis, getAxisType } from './components/Axis/Axis.js';
|
|
20
|
+
export { AxisPosition, AxisProps, AxisVariant, StyledAxisProps } from './components/Axis/types.js';
|
|
21
|
+
export { StyledAxis } from './components/Axis/styles.js';
|
|
22
|
+
export { Bar } from './components/Bar/Bar.js';
|
|
23
|
+
export { BarDirection, BarOrientation, BarProps, StyledBarProps } from './components/Bar/types.js';
|
|
24
|
+
export { StyledBar } from './components/Bar/styles.js';
|
|
25
|
+
export { BarChart, BaseBarChart } from './components/BarChart/BarChart.js';
|
|
26
|
+
export { BarChartBarsProps, BarChartDimensions, BarChartLegendVariant, BarChartProps, BarChartSectionProps, BarChartState, ComputedBarProps, RenderedLinearBarChartProps, StyledBarChartBarsProps, StyledBarChartProps, StyledBarChartSectionProps, XScaleType } from './components/BarChart/types.js';
|
|
27
|
+
export { StyledBarChart, StyledBarChartBars, StyledBarChartEmptyText, StyledBarChartSection } from './components/BarChart/styles.js';
|
|
28
|
+
export { ChartContainer, ChartContainerDescription, ChartContainerTitle } from './components/ChartContainer/ChartContainer.js';
|
|
29
|
+
export { ChartContainerProps, StyledChartContainerProps } from './components/ChartContainer/types.js';
|
|
30
|
+
export { StyledChartContainer, StyledChartContainerCaption, StyledChartContainerTitle } from './components/ChartContainer/styles.js';
|
|
31
|
+
export { DataPoint } from './components/DataPoint/DataPoint.js';
|
|
32
|
+
export { AnchorProps, DataPointProps, StyledDataPointProps } from './components/DataPoint/types.js';
|
|
33
|
+
export { StyledDataPoint } from './components/DataPoint/styles.js';
|
|
34
|
+
export { Dot } from './components/Dot/Dot.js';
|
|
35
|
+
export { DotProps, DotVariant, StyledDotProps } from './components/Dot/types.js';
|
|
36
|
+
export { StyledDot } from './components/Dot/styles.js';
|
|
37
|
+
export { Legend } from './components/Legend/Legend.js';
|
|
38
|
+
export { LegendProps, StyledLegendProps } from './components/Legend/types.js';
|
|
39
|
+
export { StyledLegend } from './components/Legend/styles.js';
|
|
40
|
+
export { Line } from './components/Line/Line.js';
|
|
41
|
+
export { LineProps, StyledLineProps } from './components/Line/types.js';
|
|
42
|
+
export { StyledLine } from './components/Line/styles.js';
|
|
43
|
+
export { LineChart } from './components/LineChart/LineChart.js';
|
|
44
|
+
export { LineChartDimensions, LineChartLegendVariant, LineChartProps, StyledLineChartProps } from './components/LineChart/types.js';
|
|
45
|
+
export { StyledLineChart, StyledLineChartEmptyText } from './components/LineChart/styles.js';
|
|
46
|
+
export { PieChart } from './components/PieChart/PieChart.js';
|
|
47
|
+
export { PieChartDimensions, PieChartLegendVariant, PieChartProps, PieChartVariant, StyledPieChartProps } from './components/PieChart/types.js';
|
|
48
|
+
export { StyledPieChart, StyledPieChartCenterText, StyledPieChartEmptyText } from './components/PieChart/styles.js';
|
|
49
|
+
export { ScatterPlot } from './components/ScatterPlot/ScatterPlot.js';
|
|
50
|
+
export { ScatterPlotDimensions, ScatterPlotLegendVariant, ScatterPlotProps, ScatterPlotVariant, StyledScatterPlotProps } from './components/ScatterPlot/types.js';
|
|
51
|
+
export { StyledScatterPlot, StyledScatterPlotEmptyText } from './components/ScatterPlot/styles.js';
|