@devtable/dashboard 14.44.3 → 14.44.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.
@@ -1,5 +1,6 @@
1
1
  import { ITemplateVariable } from '../../../../../utils';
2
2
  import { IParetoChartConf } from '../type';
3
+ import { BarData } from './types';
3
4
  export declare function getOption(conf: IParetoChartConf, data: TPanelData, variables: ITemplateVariable[]): {
4
5
  dataZoom: ({
5
6
  type: string;
@@ -51,7 +52,7 @@ export declare function getOption(conf: IParetoChartConf, data: TPanelData, vari
51
52
  formatter: (payload: any) => void;
52
53
  };
53
54
  yAxisIndex: number;
54
- data: any[][];
55
+ data: BarData;
55
56
  symbolSize?: undefined;
56
57
  lineStyle?: undefined;
57
58
  markLine?: undefined;
@@ -149,4 +150,13 @@ export declare function getOption(conf: IParetoChartConf, data: TPanelData, vari
149
150
  bottom: number;
150
151
  containLabel: boolean;
151
152
  };
153
+ } | {
154
+ series: never[];
155
+ grid: {
156
+ top: number;
157
+ left: number;
158
+ right: number;
159
+ bottom: number;
160
+ containLabel: boolean;
161
+ };
152
162
  };
@@ -1,7 +1,7 @@
1
1
  import { IParetoChartConf } from '../type';
2
- import { TLineDataItem } from './types';
2
+ import { BarData, TLineDataItem } from './types';
3
3
  import { TParetoFormatters } from './utils';
4
- export declare function getSeries(conf: IParetoChartConf, data: TPanelData, formatters: TParetoFormatters): ({
4
+ export declare function getSeries(conf: IParetoChartConf, barData: BarData, formatters: TParetoFormatters): ({
5
5
  name: string;
6
6
  type: string;
7
7
  barMaxWidth: number;
@@ -14,7 +14,7 @@ export declare function getSeries(conf: IParetoChartConf, data: TPanelData, form
14
14
  formatter: (payload: any) => void;
15
15
  };
16
16
  yAxisIndex: number;
17
- data: any[][];
17
+ data: BarData;
18
18
  symbolSize?: undefined;
19
19
  lineStyle?: undefined;
20
20
  markLine?: undefined;
@@ -1 +1,2 @@
1
1
  export type TLineDataItem = [string | number, number];
2
+ export type BarData = [string | number, number][];
@@ -1,2 +1,2 @@
1
1
  import { IParetoChartConf } from '../type';
2
- export declare function getXAxis(conf: IParetoChartConf): any[];
2
+ export declare function getXAxis(conf: IParetoChartConf, xAxisData: Array<string | number>): any[];