@devtable/dashboard 14.26.0 → 14.28.0

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.
@@ -5,3 +5,4 @@ export declare function v3(legacyConf: any, { panelModel }: IMigrationEnv): IPie
5
5
  export declare function v4(legacyConf: any): IPieChartConf;
6
6
  export declare function v5(legacyConf: any): IPieChartConf;
7
7
  export declare function v6(legacyConf: any): IPieChartConf;
8
+ export declare function v7(legacyConf: any): IPieChartConf;
@@ -3,7 +3,11 @@ type TDataItem = {
3
3
  name: string;
4
4
  value: number;
5
5
  color?: string;
6
+ ratio?: number;
7
+ percentage?: string;
8
+ items?: TDataItem[];
6
9
  };
10
+ export type OthersSectorItem = Required<TDataItem>;
7
11
  export declare function getSeries(conf: IPieChartConf, data: TPanelData, width: number): {
8
12
  type?: undefined;
9
13
  name?: undefined;
@@ -1,4 +1,12 @@
1
1
  import { SeriesOrder } from '../../common-echarts-fields/series-order';
2
+ export type PieChartOthersSector = {
3
+ label: string | null;
4
+ threshold: number | null;
5
+ };
6
+ export declare const getDefaultOthersSector: () => {
7
+ label: null;
8
+ threshold: null;
9
+ };
2
10
  export type NameColorMapRow = {
3
11
  name: string;
4
12
  color: string;
@@ -12,5 +20,6 @@ export interface IPieChartConf {
12
20
  map: NameColorMapRow[];
13
21
  };
14
22
  series_order: SeriesOrder;
23
+ others_sector: PieChartOthersSector;
15
24
  }
16
25
  export declare const DEFAULT_CONFIG: IPieChartConf;