@databrainhq/plugin 0.12.26 → 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: {
@@ -117,6 +117,8 @@ export type CustomSettings = {
117
117
  labelPrefix?: string;
118
118
  labelSuffix?: string;
119
119
  cumulativeBar?: boolean;
120
+ showFunnelShadow?: boolean;
121
+ stepPadding?: number;
120
122
  };
121
123
  export type TableSettings = {
122
124
  contentAlignment?: string;
@@ -11,8 +11,10 @@ type Params = {
11
11
  fillXAxis: boolean;
12
12
  isDynamicXaxis: boolean;
13
13
  isCumulativeBar: boolean;
14
+ chartType: string;
15
+ seriesType: string;
14
16
  };
15
- export declare const getChartAttributes: ({ data, measure, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, isDynamicXaxis, isCumulativeBar, }: Params) => {
17
+ export declare const getChartAttributes: ({ data, measure, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, isDynamicXaxis, isCumulativeBar, chartType, seriesType, }: Params) => {
16
18
  labels: string[];
17
19
  datasets: any;
18
20
  funnelData: {