@databrainhq/plugin 0.12.25 → 0.12.27

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.
@@ -4,7 +4,7 @@ interface TimeSeriesData {
4
4
  valuekeys: string[];
5
5
  data: Record<string, any>[];
6
6
  }
7
- export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, fillXAxis, }: {
7
+ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, fillXAxis, isCumulativeBar, }: {
8
8
  dataArray: Record<string, any>[];
9
9
  timeStampKey: string;
10
10
  valuekeys: string[];
@@ -14,6 +14,7 @@ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuek
14
14
  customSettings: CustomSettings;
15
15
  backGroundColor: BackgroundSettings;
16
16
  fillXAxis: boolean;
17
+ isCumulativeBar: boolean;
17
18
  }) => ({
18
19
  stack?: string | undefined;
19
20
  barWidth?: string | undefined;
@@ -27,7 +28,7 @@ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuek
27
28
  areaStyle: {
28
29
  opacity?: undefined;
29
30
  };
30
- data: [string, any][];
31
+ data: any;
31
32
  type: "line" | "bar";
32
33
  name: string;
33
34
  label: {
@@ -50,7 +51,7 @@ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuek
50
51
  areaStyle: {
51
52
  opacity: number;
52
53
  };
53
- data: [string, any][];
54
+ data: any;
54
55
  type: "line" | "bar";
55
56
  name: string;
56
57
  label: {
@@ -116,6 +116,9 @@ export type CustomSettings = {
116
116
  };
117
117
  labelPrefix?: string;
118
118
  labelSuffix?: string;
119
+ cumulativeBar?: boolean;
120
+ showFunnelShadow?: boolean;
121
+ stepPadding?: number;
119
122
  };
120
123
  export type TableSettings = {
121
124
  contentAlignment?: string;
@@ -10,24 +10,20 @@ type Params = {
10
10
  selectedFormat: string | undefined;
11
11
  fillXAxis: boolean;
12
12
  isDynamicXaxis: boolean;
13
+ isCumulativeBar: boolean;
14
+ chartType: string;
15
+ seriesType: string;
13
16
  };
14
- export declare const getChartAttributes: ({ data, measure, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, isDynamicXaxis, }: Params) => {
17
+ export declare const getChartAttributes: ({ data, measure, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, }: Params) => {
15
18
  labels: string[];
16
- datasets: {
17
- label: string;
18
- data: any[];
19
- borderColor: string;
20
- }[] | undefined;
19
+ datasets: any;
21
20
  funnelData: {
22
21
  value: any;
23
22
  name: any;
24
23
  }[];
25
24
  singleValueData: any[];
26
25
  xAxisData: any[];
27
- seriesData: {
28
- name: any;
29
- data: any[];
30
- }[];
26
+ seriesData: any;
31
27
  };
32
28
  export declare const transformDataToSankey: ({ data, source, target, value, }: {
33
29
  data: Record<string, any>[];