@devtable/dashboard 9.5.2 → 9.6.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.
@@ -0,0 +1,6 @@
1
+ import { IBoxplotChartConf, IBoxplotDataItem } from '../type';
2
+ export declare function getDataset(conf: IBoxplotChartConf, data: TVizData): ({
3
+ source: IBoxplotDataItem[];
4
+ } | {
5
+ source: [string, number][];
6
+ })[];
@@ -1,14 +1,21 @@
1
1
  import { AnyObject } from '~/types';
2
2
  import { ITemplateVariable } from '~/utils/template';
3
- import { IBoxplotChartConf, IBoxplotDataItem } from '../type';
3
+ import { IBoxplotChartConf } from '../type';
4
4
  interface IGetOption {
5
5
  config: IBoxplotChartConf;
6
6
  data: AnyObject[];
7
7
  variables: ITemplateVariable[];
8
8
  }
9
9
  export declare function getOption({ config, data, variables }: IGetOption): {
10
+ grid: {
11
+ top: number;
12
+ left: number;
13
+ right: number;
14
+ bottom: number;
15
+ containLabel: boolean;
16
+ };
10
17
  dataset: ({
11
- source: IBoxplotDataItem[];
18
+ source: import("../type").IBoxplotDataItem[];
12
19
  } | {
13
20
  source: [string, number][];
14
21
  })[];
@@ -21,6 +28,12 @@ export declare function getOption({ config, data, variables }: IGetOption): {
21
28
  xAxis: {
22
29
  type: string;
23
30
  name: string;
31
+ nameGap: number;
32
+ nameLocation: string;
33
+ nameTextStyle: {
34
+ fontWeight: string;
35
+ align: string;
36
+ };
24
37
  axisTick: {
25
38
  show: boolean;
26
39
  alignWithLabel: boolean;
@@ -35,6 +48,9 @@ export declare function getOption({ config, data, variables }: IGetOption): {
35
48
  }[];
36
49
  yAxis: {
37
50
  name: string;
51
+ nameTextStyle: {
52
+ fontWeight: string;
53
+ };
38
54
  axisLine: {
39
55
  show: boolean;
40
56
  };
@@ -43,22 +59,6 @@ export declare function getOption({ config, data, variables }: IGetOption): {
43
59
  };
44
60
  }[];
45
61
  series: ({
46
- name: string;
47
- type: string;
48
- data: never[];
49
- markLine: {
50
- data: {
51
- name: string;
52
- yAxis: number;
53
- }[];
54
- silent: boolean;
55
- symbol: string[];
56
- label: {
57
- formatter: () => string;
58
- position: string;
59
- };
60
- };
61
- } | {
62
62
  name: string;
63
63
  type: string;
64
64
  itemStyle: {
@@ -73,10 +73,10 @@ export declare function getOption({ config, data, variables }: IGetOption): {
73
73
  boxWidth: number[];
74
74
  datasetIndex: number;
75
75
  encode: {
76
- y: (keyof IBoxplotDataItem)[];
76
+ y: (keyof import("../type").IBoxplotDataItem)[];
77
77
  x: string;
78
78
  itemName: string[];
79
- tooltip: (keyof IBoxplotDataItem)[];
79
+ tooltip: (keyof import("../type").IBoxplotDataItem)[];
80
80
  };
81
81
  symbolSize?: undefined;
82
82
  } | {
@@ -95,6 +95,22 @@ export declare function getOption({ config, data, variables }: IGetOption): {
95
95
  datasetIndex: number;
96
96
  boxWidth?: undefined;
97
97
  encode?: undefined;
98
+ } | {
99
+ name: string;
100
+ type: string;
101
+ data: never[];
102
+ markLine: {
103
+ data: {
104
+ name: string;
105
+ yAxis: number;
106
+ }[];
107
+ silent: boolean;
108
+ symbol: string[];
109
+ label: {
110
+ formatter: () => string;
111
+ position: string;
112
+ };
113
+ };
98
114
  })[];
99
115
  };
100
116
  export {};
@@ -0,0 +1,19 @@
1
+ import { ITemplateVariable } from '~/utils/template';
2
+ import { IBoxplotReferenceLine } from '../type';
3
+ export declare function getReferenceLines(reference_lines: IBoxplotReferenceLine[], variables: ITemplateVariable[], data: TVizData): {
4
+ name: string;
5
+ type: string;
6
+ data: never[];
7
+ markLine: {
8
+ data: {
9
+ name: string;
10
+ yAxis: number;
11
+ }[];
12
+ silent: boolean;
13
+ symbol: string[];
14
+ label: {
15
+ formatter: () => string;
16
+ position: string;
17
+ };
18
+ };
19
+ }[];
@@ -0,0 +1,39 @@
1
+ import { IBoxplotChartConf } from '../type';
2
+ export declare function getSeries(conf: IBoxplotChartConf): ({
3
+ name: string;
4
+ type: string;
5
+ itemStyle: {
6
+ color: string;
7
+ borderColor: string;
8
+ borderWidth: number;
9
+ };
10
+ emphasis: {
11
+ disabled: boolean;
12
+ scale?: undefined;
13
+ };
14
+ boxWidth: number[];
15
+ datasetIndex: number;
16
+ encode: {
17
+ y: (keyof import("../type").IBoxplotDataItem)[];
18
+ x: string;
19
+ itemName: string[];
20
+ tooltip: (keyof import("../type").IBoxplotDataItem)[];
21
+ };
22
+ symbolSize?: undefined;
23
+ } | {
24
+ name: string;
25
+ type: string;
26
+ symbolSize: number;
27
+ itemStyle: {
28
+ color: string;
29
+ borderColor?: undefined;
30
+ borderWidth?: undefined;
31
+ };
32
+ emphasis: {
33
+ scale: number;
34
+ disabled?: undefined;
35
+ };
36
+ datasetIndex: number;
37
+ boxWidth?: undefined;
38
+ encode?: undefined;
39
+ })[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "9.5.2",
3
+ "version": "9.6.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",