@databrainhq/plugin 0.10.3 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/timeseries.d.ts +2 -0
- package/dist/index.es.js +8591 -8398
- package/dist/index.umd.js +88 -88
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +3 -1
- package/dist/utils/getChartAttributes.d.ts +9 -1
- package/package.json +1 -1
package/dist/types/app.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type ChildrenProps = {
|
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
};
|
|
7
7
|
export type TimeSeriesGroupType = 'yearly' | 'monthly' | 'weekly' | 'daily' | 'quarterly';
|
|
8
|
-
export type TimeSeriesType = 'bar' | 'line' | 'area';
|
|
8
|
+
export type TimeSeriesType = 'bar' | 'line' | 'area' | 'stack';
|
|
9
9
|
export type TimeSeriesSettingsType = {
|
|
10
10
|
seriesType: {
|
|
11
11
|
type: TimeSeriesType;
|
|
@@ -114,6 +114,8 @@ export type ChartSettingsType = {
|
|
|
114
114
|
axisSettings?: AxisSettings;
|
|
115
115
|
backGroundColor?: BackgroundSettings;
|
|
116
116
|
timeSeriesSettings?: TimeSeriesSettingsType;
|
|
117
|
+
isMultiDimension?: boolean;
|
|
118
|
+
seriesField?: string;
|
|
117
119
|
};
|
|
118
120
|
export type SelectedColumns = {
|
|
119
121
|
column: string;
|
|
@@ -6,8 +6,11 @@ type Params = {
|
|
|
6
6
|
step: string | undefined;
|
|
7
7
|
sankeyValues: string[] | undefined;
|
|
8
8
|
singleValue: string | undefined;
|
|
9
|
+
seriesField: string | undefined;
|
|
10
|
+
isTimeSeries: boolean;
|
|
11
|
+
selectedFormat: string | undefined;
|
|
9
12
|
};
|
|
10
|
-
export declare const getChartAttributes: ({ data, measure, sankeyValues, singleValue, step, xAxis, yAxisList, }: Params) => {
|
|
13
|
+
export declare const getChartAttributes: ({ data, measure, sankeyValues, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, }: Params) => {
|
|
11
14
|
labels: string[];
|
|
12
15
|
datasets: {
|
|
13
16
|
label: string;
|
|
@@ -20,5 +23,10 @@ export declare const getChartAttributes: ({ data, measure, sankeyValues, singleV
|
|
|
20
23
|
}[];
|
|
21
24
|
sankeyData: any[][] | undefined;
|
|
22
25
|
singleValueData: any[];
|
|
26
|
+
xAxisData: any[];
|
|
27
|
+
seriesData: {
|
|
28
|
+
name: any;
|
|
29
|
+
data: any[];
|
|
30
|
+
}[];
|
|
23
31
|
};
|
|
24
32
|
export {};
|