@mesh.ai/rabbit 0.0.11 → 0.0.13
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChartColorsType } from '../../utils/chartColors';
|
|
2
2
|
export type ChartDataType = {
|
|
3
3
|
x: string;
|
|
4
|
-
y: number;
|
|
4
|
+
y: number | null;
|
|
5
5
|
nodeId: string;
|
|
6
6
|
color: ChartColorsType;
|
|
7
7
|
};
|
|
@@ -13,6 +13,12 @@ export type Node = {
|
|
|
13
13
|
id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
};
|
|
16
|
+
export type LineSeriesWrapperProps = {
|
|
17
|
+
data: ChartDataType[];
|
|
18
|
+
xAccessor: (d: ChartDataType) => ChartDataType['x'];
|
|
19
|
+
yAccessor: (d: ChartDataType) => ChartDataType['y'];
|
|
20
|
+
connectNulls: boolean;
|
|
21
|
+
};
|
|
16
22
|
export type LineChartProps = {
|
|
17
23
|
/** the maximum number of characters to show in a x-axis label */
|
|
18
24
|
xAxisCharLimit?: number;
|
|
@@ -39,7 +45,7 @@ export type LineChartProps = {
|
|
|
39
45
|
/** Id of the matching node. This will be used to fetch tooltip details for the line */
|
|
40
46
|
id: string;
|
|
41
47
|
/** Data with respect to y-Axis. This should be in the same order as xAxis values giving rise to [x,y] pairs. */
|
|
42
|
-
data:
|
|
48
|
+
data: ChartDataType['y'][];
|
|
43
49
|
}[];
|
|
44
50
|
/** Title name for the tooltip of the chart */
|
|
45
51
|
tooltipTitle: string;
|
|
@@ -49,6 +55,8 @@ export type LineChartProps = {
|
|
|
49
55
|
xAxisDomain?: [number, number];
|
|
50
56
|
/** Domain of y-Axis - The start and end of values for yAxis */
|
|
51
57
|
yAxisDomain?: [number, number];
|
|
58
|
+
/** Should a Line connect if there are missing values */
|
|
59
|
+
connectNulls?: boolean;
|
|
52
60
|
};
|
|
53
61
|
export type DownloadRef = {
|
|
54
62
|
download(): void;
|