@devtable/dashboard 8.43.0 → 8.44.1
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/dashboard.es.js +4602 -4582
- package/dist/dashboard.umd.js +68 -68
- package/dist/main/use-panel-full-screen.d.ts +2 -2
- package/dist/model/panels/index.d.ts +7 -7
- package/dist/model/panels/layout.d.ts +1 -1
- package/dist/model/panels/panel.d.ts +1 -1
- package/dist/plugins/common-echarts-fields/regression-line/index.d.ts +2 -0
- package/dist/plugins/common-echarts-fields/regression-line/option.d.ts +2 -0
- package/dist/plugins/common-echarts-fields/regression-line/types.d.ts +27 -0
- package/dist/plugins/plugin-context.d.ts +2 -2
- package/dist/plugins/viz-components/boxplot-chart/type.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/migrators/index.d.ts +19 -0
- package/dist/plugins/viz-components/cartesian/option/events.d.ts +2 -0
- package/dist/plugins/viz-components/cartesian/option/regression.d.ts +3 -18
- package/dist/plugins/viz-components/cartesian/option/x-axis.d.ts +17 -1
- package/dist/plugins/viz-components/cartesian/type.d.ts +5 -20
- package/dist/plugins/viz-components/cartesian/viz-cartesian-editor.d.ts +3 -0
- package/dist/plugins/viz-components/heatmap/type.d.ts +1 -1
- package/dist/plugins/viz-components/horizontal-bar-chart/type.d.ts +1 -1
- package/dist/plugins/viz-components/pareto-chart/type.d.ts +2 -2
- package/dist/plugins/viz-components/regression-chart/option/regression-series.d.ts +1 -9
- package/dist/plugins/viz-components/regression-chart/regression-item.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/type.d.ts +1 -1
- package/dist/plugins/viz-components/scatter-chart/type.d.ts +1 -1
- package/package.json +1 -3
- package/dist/plugins/viz-components/cartesian/viz-cartesian-panel.d.ts +0 -3
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/echarts-zooming-field/get-echarts-data-zoom-option.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/echarts-zooming-field/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/echarts-zooming-field/types.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-areas/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-areas/reference-area.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-lines/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-lines/reference-line.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/regressions/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/regressions/regression-item.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/dynamic-size-function-editor.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/dynamic.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/get-echarts-symbol-size.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/static.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/types.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/series/fields.bar.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/series/fields.line.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/series/fields.scatter.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/series/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/series/series-item.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/stats/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/x-axis/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/x-axis/x-axis-label-formatter/function-editor.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/x-axis/x-axis-label-formatter/index.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/x-axis/x-axis-label-formatter/types.d.ts +0 -0
- /package/dist/plugins/viz-components/cartesian/{panel → editors}/y-axes.d.ts +0 -0
|
@@ -27,7 +27,7 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
27
27
|
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
28
28
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
29
29
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
30
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
30
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
31
31
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
32
32
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
33
33
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -1535,7 +1535,7 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
1535
1535
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
1536
1536
|
layout: import("mobx-state-tree").IModelType<{
|
|
1537
1537
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
1538
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
1538
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
1539
1539
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
1540
1540
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
1541
1541
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -8,7 +8,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
8
8
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
9
9
|
layout: import("mobx-state-tree").IModelType<{
|
|
10
10
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
11
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
11
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
12
12
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
13
13
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
14
14
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -1459,7 +1459,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
1459
1459
|
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
1460
1460
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
1461
1461
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
1462
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
1462
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
1463
1463
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
1464
1464
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
1465
1465
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -2967,7 +2967,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
2967
2967
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
2968
2968
|
layout: import("mobx-state-tree").IModelType<{
|
|
2969
2969
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
2970
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
2970
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
2971
2971
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
2972
2972
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
2973
2973
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -4227,7 +4227,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
4227
4227
|
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
4228
4228
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
4229
4229
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
4230
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
4230
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
4231
4231
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
4232
4232
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
4233
4233
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -5735,7 +5735,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
5735
5735
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
5736
5736
|
layout: import("mobx-state-tree").IModelType<{
|
|
5737
5737
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
5738
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
5738
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
5739
5739
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
5740
5740
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
5741
5741
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -6997,7 +6997,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
6997
6997
|
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
6998
6998
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
6999
6999
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
7000
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
7000
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
7001
7001
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
7002
7002
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
7003
7003
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -8505,7 +8505,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
|
|
|
8505
8505
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
8506
8506
|
layout: import("mobx-state-tree").IModelType<{
|
|
8507
8507
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
8508
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
8508
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
8509
8509
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
8510
8510
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
8511
8511
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -2,7 +2,7 @@ import { Instance } from 'mobx-state-tree';
|
|
|
2
2
|
import { Layout } from 'react-grid-layout';
|
|
3
3
|
export declare const PanelLayoutModel: import("mobx-state-tree").IModelType<{
|
|
4
4
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
5
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
5
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
6
6
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
7
7
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
8
8
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -6,7 +6,7 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
6
6
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
7
7
|
layout: import("mobx-state-tree").IModelType<{
|
|
8
8
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
9
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
9
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
10
10
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
11
11
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
12
12
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AnyObject } from '~/types';
|
|
2
|
+
export interface IRegressionTransform {
|
|
3
|
+
type: 'ecStat:regression';
|
|
4
|
+
config: {
|
|
5
|
+
method: 'linear' | 'exponential' | 'logarithmic' | 'polynomial';
|
|
6
|
+
order: number;
|
|
7
|
+
formulaOn: 'end';
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface IRegressionLineConf {
|
|
11
|
+
type: 'line';
|
|
12
|
+
yAxisIndex: number;
|
|
13
|
+
color: string;
|
|
14
|
+
lineStyle: {
|
|
15
|
+
type: 'solid' | 'dashed' | 'dotted';
|
|
16
|
+
width: number;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface IRegressionSeriesItem extends IRegressionLineConf {
|
|
20
|
+
data: number[][];
|
|
21
|
+
name: string;
|
|
22
|
+
showSymbol: boolean;
|
|
23
|
+
tooltip: Record<string, $TSFixMe>;
|
|
24
|
+
smooth: boolean;
|
|
25
|
+
custom?: AnyObject;
|
|
26
|
+
}
|
|
27
|
+
export declare type TDataForReg = number[][];
|
|
@@ -43,7 +43,7 @@ export declare const tokens: {
|
|
|
43
43
|
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
44
44
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
45
45
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
46
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
46
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
47
47
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
48
48
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
49
49
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -1551,7 +1551,7 @@ export declare const tokens: {
|
|
|
1551
1551
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
1552
1552
|
layout: import("mobx-state-tree").IModelType<{
|
|
1553
1553
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
1554
|
-
y: import("mobx-state-tree").ISimpleType<number>;
|
|
1554
|
+
y: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
1555
1555
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
1556
1556
|
h: import("mobx-state-tree").ISimpleType<number>;
|
|
1557
1557
|
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
|
-
import { IXAxisLabelFormatter } from '../cartesian/
|
|
3
|
+
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
4
4
|
export interface IBoxplotReferenceLine {
|
|
5
5
|
name: string;
|
|
6
6
|
template: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VersionBasedMigrator } from '~/plugins/plugin-data-migrator';
|
|
2
2
|
import { VizComponent } from '~/types/plugin';
|
|
3
3
|
export declare class VizCartesianMigrator extends VersionBasedMigrator {
|
|
4
|
-
readonly VERSION = 14;
|
|
5
4
|
configVersions(): void;
|
|
5
|
+
readonly VERSION = 15;
|
|
6
6
|
}
|
|
7
7
|
export declare const CartesianVizComponent: VizComponent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AnyObject } from '~/types';
|
|
2
|
+
import { ITemplateVariable } from '~/utils/template';
|
|
3
|
+
import { ICartesianChartConf } from '../type';
|
|
4
|
+
export declare function updateSchema2(legacyConf: ICartesianChartConf & {
|
|
5
|
+
variables: ITemplateVariable[];
|
|
6
|
+
}): AnyObject;
|
|
7
|
+
export declare function updateToSchema3(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
8
|
+
export declare function updateToSchema4(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
9
|
+
export declare function v5(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
10
|
+
export declare function v6(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
11
|
+
export declare function v7(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
12
|
+
export declare function v8(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
13
|
+
export declare function v9(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
14
|
+
export declare function v10(legacyConf: $TSFixMe): ICartesianChartConf;
|
|
15
|
+
export declare function v11(legacyConf: any): ICartesianChartConf;
|
|
16
|
+
export declare function v12(legacyConf: any): ICartesianChartConf;
|
|
17
|
+
export declare function v13(legacyConf: any): ICartesianChartConf;
|
|
18
|
+
export declare function v14(legacyConf: any): ICartesianChartConf;
|
|
19
|
+
export declare function v15(legacyConf: any): ICartesianChartConf;
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
fromDatasetId?: string;
|
|
5
|
-
source?: number[][];
|
|
6
|
-
transform?: IRegressionTransform;
|
|
7
|
-
}
|
|
8
|
-
interface IRegressionSeriesItem extends IRegressionLineConf {
|
|
9
|
-
datasetId: string;
|
|
10
|
-
xAxisId: string;
|
|
11
|
-
name: string;
|
|
12
|
-
showSymbol: boolean;
|
|
13
|
-
tooltip: Record<string, $TSFixMe>;
|
|
14
|
-
}
|
|
15
|
-
export declare function getRegressionConfs({ regressions }: ICartesianChartConf, data: TVizData): {
|
|
16
|
-
regressionDataSets: IRegressionDataSetItem[];
|
|
1
|
+
import { IRegressionSeriesItem } from '~/plugins/common-echarts-fields/regression-line';
|
|
2
|
+
import { ICartesianChartConf } from '../type';
|
|
3
|
+
export declare function getRegressionConfs({ regressions, x_axis_data_key }: ICartesianChartConf, rawData: TVizData): {
|
|
17
4
|
regressionSeries: IRegressionSeriesItem[];
|
|
18
|
-
regressionXAxes: Record<string, any>[];
|
|
19
5
|
};
|
|
20
|
-
export {};
|
|
@@ -1,2 +1,18 @@
|
|
|
1
1
|
import { ICartesianChartConf } from '../type';
|
|
2
|
-
export declare function getXAxes(conf: ICartesianChartConf, xAxisData: $TSFixMe[]
|
|
2
|
+
export declare function getXAxes(conf: ICartesianChartConf, xAxisData: $TSFixMe[]): {
|
|
3
|
+
data: any[];
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
axisTick: {
|
|
7
|
+
show: boolean;
|
|
8
|
+
alignWithLabel: boolean;
|
|
9
|
+
};
|
|
10
|
+
type: string;
|
|
11
|
+
axisLabel: {
|
|
12
|
+
formatter: (value: string | number, index: number) => any;
|
|
13
|
+
width: number;
|
|
14
|
+
overflow: "truncate" | "break" | "breakAll";
|
|
15
|
+
ellipsis: "...";
|
|
16
|
+
rotate: number;
|
|
17
|
+
};
|
|
18
|
+
}[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
|
+
import { IRegressionLineConf, IRegressionTransform } from '~/plugins/common-echarts-fields/regression-line';
|
|
3
4
|
import { AggregationType } from '~/utils/aggregation';
|
|
4
|
-
import { TEchartsDataZoomConfig } from './
|
|
5
|
-
import { TScatterSize } from './
|
|
6
|
-
import { IXAxisLabelFormatter } from './
|
|
5
|
+
import { TEchartsDataZoomConfig } from './editors/echarts-zooming-field/types';
|
|
6
|
+
import { TScatterSize } from './editors/scatter-size-select/types';
|
|
7
|
+
import { IXAxisLabelFormatter } from './editors/x-axis/x-axis-label-formatter/types';
|
|
7
8
|
export interface ICartesianChartSeriesItem {
|
|
8
9
|
type: 'line' | 'bar' | 'scatter';
|
|
9
10
|
name: string;
|
|
@@ -38,28 +39,12 @@ export interface IYAxisConf {
|
|
|
38
39
|
nameAlignment: 'left' | 'center' | 'right';
|
|
39
40
|
label_formatter: TNumbroFormat;
|
|
40
41
|
}
|
|
41
|
-
export interface IRegressionTransform {
|
|
42
|
-
type: 'ecStat:regression';
|
|
43
|
-
config: {
|
|
44
|
-
method: 'linear' | 'exponential' | 'logarithmic' | 'polynomial';
|
|
45
|
-
order: number;
|
|
46
|
-
formulaOn: 'end';
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export interface IRegressionLineConf {
|
|
50
|
-
type: 'line';
|
|
51
|
-
yAxisIndex: number;
|
|
52
|
-
color: string;
|
|
53
|
-
lineStyle: {
|
|
54
|
-
type: 'solid' | 'dashed' | 'dotted';
|
|
55
|
-
width: number;
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
42
|
export interface IRegressionConf {
|
|
59
43
|
transform: IRegressionTransform;
|
|
60
44
|
plot: IRegressionLineConf;
|
|
61
45
|
name: string;
|
|
62
46
|
y_axis_data_key: string;
|
|
47
|
+
group_by_key: string;
|
|
63
48
|
}
|
|
64
49
|
export interface ICartesianReferenceLine {
|
|
65
50
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
3
|
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
4
|
-
import { IXAxisLabelFormatter } from '../cartesian/
|
|
4
|
+
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
5
5
|
export interface IHeatmapConf {
|
|
6
6
|
x_axis: {
|
|
7
7
|
name: string;
|
|
@@ -2,7 +2,7 @@ import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
3
|
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
4
4
|
import { AggregationType } from '~/utils/aggregation';
|
|
5
|
-
import { IXAxisLabelFormatter } from '../cartesian/
|
|
5
|
+
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
6
6
|
export interface IHorizontalBarChartReferenceLine {
|
|
7
7
|
id: string;
|
|
8
8
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
2
2
|
import { IAxisLabelOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
3
|
-
import { TEchartsDataZoomConfig } from '../cartesian/
|
|
4
|
-
import { IXAxisLabelFormatter } from '../cartesian/
|
|
3
|
+
import { TEchartsDataZoomConfig } from '../cartesian/editors/echarts-zooming-field/types';
|
|
4
|
+
import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
|
|
5
5
|
export declare const DEFAULT_PARETO_MARK_LINE: {
|
|
6
6
|
label_template: string;
|
|
7
7
|
color: string;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRegressionSeriesItem } from '~/plugins/common-echarts-fields/regression-line';
|
|
2
2
|
import { IRegressionChartConf } from '../type';
|
|
3
|
-
interface IRegressionSeriesItem extends IRegressionLineConf {
|
|
4
|
-
data: number[][];
|
|
5
|
-
name: string;
|
|
6
|
-
showSymbol: boolean;
|
|
7
|
-
tooltip: Record<string, $TSFixMe>;
|
|
8
|
-
smooth: boolean;
|
|
9
|
-
}
|
|
10
3
|
export declare function getRegressionConf({ regression }: IRegressionChartConf, data: number[][]): {
|
|
11
4
|
regressionSeries: IRegressionSeriesItem[];
|
|
12
5
|
regressionXAxes: Record<string, any>[];
|
|
13
6
|
};
|
|
14
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* NOTE: this file is almost a duplicate of cartesian/
|
|
2
|
+
* NOTE: this file is almost a duplicate of cartesian/editors/regressions/regression-item.tsx
|
|
3
3
|
* FIXME: extract common input widgets & configs, then improve this file
|
|
4
4
|
*/
|
|
5
5
|
/// <reference types="react" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TEchartsDataZoomConfig } from '../cartesian/
|
|
1
|
+
import { TEchartsDataZoomConfig } from '../cartesian/editors/echarts-zooming-field/types';
|
|
2
2
|
import { TSeriesColor } from './editors/scatter/series-color-select/types';
|
|
3
3
|
import { IEchartsOverflow } from '~/plugins/common-echarts-fields/axis-label-overflow';
|
|
4
4
|
import { IEchartsReferenceArea } from '~/plugins/common-echarts-fields/reference-area/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devtable/dashboard",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.44.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
"echarts": "^5.3.2",
|
|
85
85
|
"echarts-for-react": "^3.0.2",
|
|
86
86
|
"echarts-gl": "^2.0.9",
|
|
87
|
-
"echarts-stat": "1.2.0",
|
|
88
87
|
"jsdom": "^20.0.0",
|
|
89
88
|
"jsdom-testing-mocks": "^1.5.0",
|
|
90
89
|
"lodash": "^4.17.21",
|
|
@@ -136,7 +135,6 @@
|
|
|
136
135
|
"echarts": "^5.3.2",
|
|
137
136
|
"echarts-for-react": "^3.0.2",
|
|
138
137
|
"echarts-gl": "^2.0.9",
|
|
139
|
-
"echarts-stat": "1.2.0",
|
|
140
138
|
"eventemitter2": "^6.4.6",
|
|
141
139
|
"jszip": "3.10.1",
|
|
142
140
|
"lodash": "^4.17.21",
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/echarts-zooming-field/index.d.ts
RENAMED
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/echarts-zooming-field/types.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-areas/reference-area.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/reference-lines/reference-line.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/regressions/regression-item.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/dynamic.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/index.d.ts
RENAMED
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/static.d.ts
RENAMED
|
File without changes
|
/package/dist/plugins/viz-components/cartesian/{panel → editors}/scatter-size-select/types.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|