@devtable/dashboard 10.50.1 → 10.52.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.
- package/dist/components/plugins/viz-components/boxplot-chart/option/index.d.ts +31 -28
- package/dist/components/plugins/viz-components/boxplot-chart/option/series/custom/box.d.ts +3 -0
- package/dist/components/plugins/viz-components/boxplot-chart/option/series/custom/index.d.ts +3 -0
- package/dist/components/plugins/viz-components/boxplot-chart/option/series/custom/outliers.d.ts +2 -0
- package/dist/components/plugins/viz-components/boxplot-chart/option/series/custom/scatter.d.ts +2 -0
- package/dist/components/plugins/viz-components/boxplot-chart/option/series/custom/type.d.ts +25 -0
- package/dist/components/plugins/viz-components/boxplot-chart/option/series/custom/utils.d.ts +8 -0
- package/dist/components/plugins/viz-components/boxplot-chart/option/{series.d.ts → series/index.d.ts} +12 -12
- package/dist/components/plugins/viz-components/boxplot-chart/option/tooltip/additional-metrics.d.ts +3 -0
- package/dist/components/plugins/viz-components/boxplot-chart/option/tooltip/index.d.ts +6 -3
- package/dist/components/plugins/viz-components/boxplot-chart/option/tooltip/outlier.d.ts +2 -0
- package/dist/components/plugins/viz-components/boxplot-chart/option/tooltip/scatter.d.ts +2 -2
- package/dist/components/plugins/viz-components/boxplot-chart/type.d.ts +1 -1
- package/dist/dashboard.es.js +4580 -4378
- package/dist/dashboard.umd.js +86 -80
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -23,10 +23,13 @@ export declare function getOption({ config, data, variables }: IGetOption): {
|
|
|
23
23
|
trigger: string;
|
|
24
24
|
confine: boolean;
|
|
25
25
|
formatter: (params: {
|
|
26
|
-
|
|
26
|
+
seriesName: "Scatter";
|
|
27
|
+
value: import("../type").TScatterDataItem;
|
|
28
|
+
} | {
|
|
29
|
+
seriesName: "Outlier";
|
|
27
30
|
value: import("../type").TOutlierDataItem;
|
|
28
31
|
} | {
|
|
29
|
-
|
|
32
|
+
seriesName: "Box";
|
|
30
33
|
value: import("../type").IBoxplotDataItem;
|
|
31
34
|
}) => string;
|
|
32
35
|
};
|
|
@@ -35,14 +38,30 @@ export declare function getOption({ config, data, variables }: IGetOption): {
|
|
|
35
38
|
series: ({
|
|
36
39
|
name: string;
|
|
37
40
|
type: string;
|
|
41
|
+
data: never[];
|
|
42
|
+
markLine: {
|
|
43
|
+
data: {
|
|
44
|
+
name: string;
|
|
45
|
+
yAxis: number;
|
|
46
|
+
}[];
|
|
47
|
+
silent: boolean;
|
|
48
|
+
symbol: string[];
|
|
49
|
+
symbolRotate: number;
|
|
50
|
+
symbolSize: number[];
|
|
51
|
+
label: {
|
|
52
|
+
formatter: () => string;
|
|
53
|
+
position: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
} | import("./series/custom/type").ScatterSeries | {
|
|
57
|
+
name: string;
|
|
58
|
+
type: string;
|
|
59
|
+
ignore: boolean;
|
|
60
|
+
silent: boolean;
|
|
38
61
|
itemStyle: {
|
|
39
62
|
color: string;
|
|
40
63
|
borderColor: string;
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
emphasis: {
|
|
44
|
-
disabled: boolean;
|
|
45
|
-
scale?: undefined;
|
|
64
|
+
opacity: number;
|
|
46
65
|
};
|
|
47
66
|
boxWidth: number[];
|
|
48
67
|
datasetIndex: number;
|
|
@@ -53,6 +72,7 @@ export declare function getOption({ config, data, variables }: IGetOption): {
|
|
|
53
72
|
tooltip: (keyof import("../type").IBoxplotDataItem)[];
|
|
54
73
|
};
|
|
55
74
|
symbolSize?: undefined;
|
|
75
|
+
emphasis?: undefined;
|
|
56
76
|
} | {
|
|
57
77
|
name: string;
|
|
58
78
|
type: string;
|
|
@@ -60,33 +80,16 @@ export declare function getOption({ config, data, variables }: IGetOption): {
|
|
|
60
80
|
itemStyle: {
|
|
61
81
|
color: string;
|
|
62
82
|
borderColor?: undefined;
|
|
63
|
-
|
|
83
|
+
opacity?: undefined;
|
|
64
84
|
};
|
|
85
|
+
ignore: boolean;
|
|
86
|
+
silent: boolean;
|
|
65
87
|
emphasis: {
|
|
66
|
-
|
|
67
|
-
disabled?: undefined;
|
|
88
|
+
disabled: boolean;
|
|
68
89
|
};
|
|
69
90
|
datasetIndex: number;
|
|
70
91
|
boxWidth?: undefined;
|
|
71
92
|
encode?: undefined;
|
|
72
|
-
} | {
|
|
73
|
-
name: string;
|
|
74
|
-
type: string;
|
|
75
|
-
data: never[];
|
|
76
|
-
markLine: {
|
|
77
|
-
data: {
|
|
78
|
-
name: string;
|
|
79
|
-
yAxis: number;
|
|
80
|
-
}[];
|
|
81
|
-
silent: boolean;
|
|
82
|
-
symbol: string[];
|
|
83
|
-
symbolRotate: number;
|
|
84
|
-
symbolSize: number[];
|
|
85
|
-
label: {
|
|
86
|
-
formatter: () => string;
|
|
87
|
-
position: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
93
|
})[];
|
|
91
94
|
};
|
|
92
95
|
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IBoxplotDataItem, TOutlierDataItem } from '../../../type';
|
|
2
|
+
export type BoxplotDataset = {
|
|
3
|
+
source: IBoxplotDataItem[];
|
|
4
|
+
};
|
|
5
|
+
export type OutlierDataset = {
|
|
6
|
+
source: TOutlierDataItem[];
|
|
7
|
+
};
|
|
8
|
+
export type BoxplotSeries = {
|
|
9
|
+
name: string;
|
|
10
|
+
type: 'custom';
|
|
11
|
+
itemStyle: {
|
|
12
|
+
color: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
borderWidth: number;
|
|
15
|
+
};
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
export type ScatterSeries = {
|
|
19
|
+
name: string;
|
|
20
|
+
type: 'custom';
|
|
21
|
+
itemStyle: {
|
|
22
|
+
color: string;
|
|
23
|
+
};
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { IBoxplotChartConf } from '
|
|
2
|
-
export declare function getSeries(conf: IBoxplotChartConf): ({
|
|
1
|
+
import { IBoxplotChartConf } from '../../type';
|
|
2
|
+
export declare function getSeries(conf: IBoxplotChartConf, dataset: any[]): (import("./custom/type").ScatterSeries | {
|
|
3
3
|
name: string;
|
|
4
4
|
type: string;
|
|
5
|
+
ignore: boolean;
|
|
6
|
+
silent: boolean;
|
|
5
7
|
itemStyle: {
|
|
6
8
|
color: string;
|
|
7
9
|
borderColor: string;
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
emphasis: {
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
scale?: undefined;
|
|
10
|
+
opacity: number;
|
|
13
11
|
};
|
|
14
12
|
boxWidth: number[];
|
|
15
13
|
datasetIndex: number;
|
|
16
14
|
encode: {
|
|
17
|
-
y: (keyof import("
|
|
15
|
+
y: (keyof import("../../type").IBoxplotDataItem)[];
|
|
18
16
|
x: string;
|
|
19
17
|
itemName: string[];
|
|
20
|
-
tooltip: (keyof import("
|
|
18
|
+
tooltip: (keyof import("../../type").IBoxplotDataItem)[];
|
|
21
19
|
};
|
|
22
20
|
symbolSize?: undefined;
|
|
21
|
+
emphasis?: undefined;
|
|
23
22
|
} | {
|
|
24
23
|
name: string;
|
|
25
24
|
type: string;
|
|
@@ -27,11 +26,12 @@ export declare function getSeries(conf: IBoxplotChartConf): ({
|
|
|
27
26
|
itemStyle: {
|
|
28
27
|
color: string;
|
|
29
28
|
borderColor?: undefined;
|
|
30
|
-
|
|
29
|
+
opacity?: undefined;
|
|
31
30
|
};
|
|
31
|
+
ignore: boolean;
|
|
32
|
+
silent: boolean;
|
|
32
33
|
emphasis: {
|
|
33
|
-
|
|
34
|
-
disabled?: undefined;
|
|
34
|
+
disabled: boolean;
|
|
35
35
|
};
|
|
36
36
|
datasetIndex: number;
|
|
37
37
|
boxWidth?: undefined;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { IBoxplotChartConf, IBoxplotDataItem, TOutlierDataItem } from '../../type';
|
|
1
|
+
import { IBoxplotChartConf, IBoxplotDataItem, TOutlierDataItem, TScatterDataItem } from '../../type';
|
|
2
2
|
type TTooltipFormatterParams = {
|
|
3
|
-
|
|
3
|
+
seriesName: 'Scatter';
|
|
4
|
+
value: TScatterDataItem;
|
|
5
|
+
} | {
|
|
6
|
+
seriesName: 'Outlier';
|
|
4
7
|
value: TOutlierDataItem;
|
|
5
8
|
} | {
|
|
6
|
-
|
|
9
|
+
seriesName: 'Box';
|
|
7
10
|
value: IBoxplotDataItem;
|
|
8
11
|
};
|
|
9
12
|
export declare function getTooltip({ config }: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IBoxplotChartConf,
|
|
2
|
-
export declare function getScatterTooltipContent(config: IBoxplotChartConf, value:
|
|
1
|
+
import { IBoxplotChartConf, TScatterDataItem } from '../../type';
|
|
2
|
+
export declare function getScatterTooltipContent(config: IBoxplotChartConf, value: TScatterDataItem): string;
|
|
@@ -42,6 +42,7 @@ export interface IBoxplotChartConf {
|
|
|
42
42
|
}
|
|
43
43
|
export declare const DEFAULT_CONFIG: IBoxplotChartConf;
|
|
44
44
|
export type TOutlierDataItem = [string, number, AnyObject];
|
|
45
|
+
export type TScatterDataItem = [string, number, AnyObject];
|
|
45
46
|
export interface IBoxplotDataItem {
|
|
46
47
|
name: string;
|
|
47
48
|
min: number;
|
|
@@ -49,5 +50,4 @@ export interface IBoxplotDataItem {
|
|
|
49
50
|
median: number;
|
|
50
51
|
q3: number;
|
|
51
52
|
max: number;
|
|
52
|
-
outliers: TOutlierDataItem[];
|
|
53
53
|
}
|