@devtable/dashboard 9.18.4 → 9.19.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/contexts/panel-context.d.ts +4 -4
- package/dist/dashboard.es.js +9444 -8810
- package/dist/dashboard.umd.js +112 -112
- package/dist/filter/filter-multi-select/render/widget.d.ts +1 -1
- package/dist/global.d.ts +3 -1
- package/dist/interactions/components/interaction-settings.d.ts +1 -2
- package/dist/interactions/components/trigger-config-model.d.ts +3 -3
- package/dist/main/dashboard-editor/settings/content/data-preview/index.d.ts +2 -1
- package/dist/main/dashboard-editor/settings/content/edit-panel/variable-config/variable-field.d.ts +1 -1
- package/dist/main/use-panel-full-screen.d.ts +318 -8
- package/dist/model/panels/index.d.ts +1156 -71
- package/dist/model/panels/panel.d.ts +28 -5
- package/dist/model/queries/index.d.ts +1 -0
- package/dist/panel/index.d.ts +1 -1
- package/dist/panel/panel-error-or-state-message.d.ts +7 -0
- package/dist/panel/panel-viz-section.d.ts +8 -0
- package/dist/panel/settings/common/data-field-selector.d.ts +1 -2
- package/dist/panel/viz/index.d.ts +3 -7
- package/dist/plugins/common-echarts-fields/tooltip-metric/types.d.ts +1 -1
- package/dist/plugins/common-echarts-fields/x-axis-label-formatter/index.d.ts +0 -2
- package/dist/plugins/hooks/use-row-data-map.d.ts +2 -0
- package/dist/plugins/plugin-context.d.ts +318 -8
- package/dist/plugins/viz-components/boxplot-chart/editors/tooltip/index.d.ts +1 -2
- package/dist/plugins/viz-components/boxplot-chart/editors/tooltip/metric.d.ts +1 -2
- package/dist/plugins/viz-components/boxplot-chart/editors/tooltip/metrics.d.ts +1 -2
- package/dist/plugins/viz-components/boxplot-chart/editors/x-axis.d.ts +1 -3
- package/dist/plugins/viz-components/boxplot-chart/editors/y-axis.d.ts +1 -3
- package/dist/plugins/viz-components/boxplot-chart/index.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/option/dataset.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/option/index.d.ts +1 -2
- package/dist/plugins/viz-components/boxplot-chart/option/reference-line.d.ts +1 -1
- package/dist/plugins/viz-components/boxplot-chart/type.d.ts +2 -2
- package/dist/plugins/viz-components/calendar-heatmap/editors/calendar/index.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/editors/heat_block/index.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/index.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/metric.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/editors/tooltip/metrics.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/option/index.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/option/series.d.ts +1 -1
- package/dist/plugins/viz-components/calendar-heatmap/option/tooltip.d.ts +1 -2
- package/dist/plugins/viz-components/calendar-heatmap/type.d.ts +2 -2
- package/dist/plugins/viz-components/cartesian/editors/regressions/index.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/regressions/regression-item.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/scatter-size-select/dynamic.d.ts +1 -3
- package/dist/plugins/viz-components/cartesian/editors/scatter-size-select/get-echarts-symbol-size.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/scatter-size-select/index.d.ts +0 -2
- package/dist/plugins/viz-components/cartesian/editors/series/fields.line.d.ts +1 -3
- package/dist/plugins/viz-components/cartesian/editors/series/fields.scatter.d.ts +1 -3
- package/dist/plugins/viz-components/cartesian/editors/series/index.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/series/series-item.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/stats/index.d.ts +0 -1
- package/dist/plugins/viz-components/cartesian/editors/x-axis/index.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -2
- package/dist/plugins/viz-components/cartesian/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/migrators/index.d.ts +2 -0
- package/dist/plugins/viz-components/cartesian/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/regression.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/series/data.d.ts +3 -4
- package/dist/plugins/viz-components/cartesian/option/series/index.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/option/series/reference_lines.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/option/series/series_items.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/option/utils/variables.d.ts +1 -2
- package/dist/plugins/viz-components/cartesian/type.d.ts +3 -3
- package/dist/plugins/viz-components/funnel/editors/series/index.d.ts +1 -2
- package/dist/plugins/viz-components/funnel/editors/series/series-item.d.ts +1 -3
- package/dist/plugins/viz-components/funnel/option/index.d.ts +3 -30
- package/dist/plugins/viz-components/funnel/option/series.d.ts +1 -31
- package/dist/plugins/viz-components/funnel/option/tooltip.d.ts +2 -2
- package/dist/plugins/viz-components/funnel/type.d.ts +2 -2
- package/dist/plugins/viz-components/heatmap/editors/heat_block/index.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/editors/tooltip/index.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/editors/tooltip/metric.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/editors/tooltip/metrics.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/editors/x-axis/index.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -2
- package/dist/plugins/viz-components/heatmap/editors/y-axis/index.d.ts +1 -3
- package/dist/plugins/viz-components/heatmap/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/heatmap/option/series.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/option/tooltip.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/option/x-axis.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/option/y-axis.d.ts +1 -2
- package/dist/plugins/viz-components/heatmap/type.d.ts +3 -3
- package/dist/plugins/viz-components/horizontal-bar-chart/editors/series/index.d.ts +1 -2
- package/dist/plugins/viz-components/horizontal-bar-chart/editors/series/series-item.d.ts +1 -3
- package/dist/plugins/viz-components/horizontal-bar-chart/editors/y-axis/index.d.ts +1 -3
- package/dist/plugins/viz-components/horizontal-bar-chart/option/index.d.ts +1 -70
- package/dist/plugins/viz-components/horizontal-bar-chart/option/series/data.d.ts +4 -5
- package/dist/plugins/viz-components/horizontal-bar-chart/option/series/index.d.ts +1 -2
- package/dist/plugins/viz-components/horizontal-bar-chart/option/series/reference_lines.d.ts +1 -2
- package/dist/plugins/viz-components/horizontal-bar-chart/option/series/series_items.d.ts +1 -2
- package/dist/plugins/viz-components/horizontal-bar-chart/option/utils/variables.d.ts +1 -2
- package/dist/plugins/viz-components/horizontal-bar-chart/type.d.ts +4 -4
- package/dist/plugins/viz-components/merico-estimation-chart/editors/deviation.d.ts +1 -2
- package/dist/plugins/viz-components/merico-estimation-chart/editors/metrics/index.d.ts +1 -2
- package/dist/plugins/viz-components/merico-estimation-chart/editors/metrics/metric.d.ts +1 -2
- package/dist/plugins/viz-components/merico-estimation-chart/editors/x_axis.d.ts +1 -2
- package/dist/plugins/viz-components/merico-estimation-chart/option/data.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/series/index.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/series/series-1.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/series/series-2.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/series/series-3.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/option/series/series-4.d.ts +1 -1
- package/dist/plugins/viz-components/merico-estimation-chart/type.d.ts +3 -3
- package/dist/plugins/viz-components/pareto-chart/editors/bar.d.ts +1 -3
- package/dist/plugins/viz-components/pareto-chart/editors/line.d.ts +1 -3
- package/dist/plugins/viz-components/pareto-chart/editors/mark-line.d.ts +1 -3
- package/dist/plugins/viz-components/pareto-chart/editors/x-axis.d.ts +1 -3
- package/dist/plugins/viz-components/pareto-chart/editors/y-axis.d.ts +1 -3
- package/dist/plugins/viz-components/pareto-chart/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/pareto-chart/option/series.d.ts +1 -2
- package/dist/plugins/viz-components/pie-chart/option/index.d.ts +14 -1
- package/dist/plugins/viz-components/pie-chart/option/series.d.ts +13 -1
- package/dist/plugins/viz-components/pie-chart/type.d.ts +3 -3
- package/dist/plugins/viz-components/radar-chart/editors/dimensions/dimension.d.ts +1 -2
- package/dist/plugins/viz-components/radar-chart/editors/dimensions/index.d.ts +1 -2
- package/dist/plugins/viz-components/radar-chart/option/index.d.ts +1 -62
- package/dist/plugins/viz-components/radar-chart/type.d.ts +2 -2
- package/dist/plugins/viz-components/regression-chart/editors/regression-field.d.ts +1 -2
- package/dist/plugins/viz-components/regression-chart/editors/x-axis.d.ts +1 -2
- package/dist/plugins/viz-components/regression-chart/editors/y-axis.d.ts +1 -2
- package/dist/plugins/viz-components/regression-chart/migrators/index.d.ts +2 -0
- package/dist/plugins/viz-components/regression-chart/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/option/series.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/toolbox/regression-description/desc.d.ts +1 -1
- package/dist/plugins/viz-components/regression-chart/toolbox/regression-description/index.d.ts +2 -2
- package/dist/plugins/viz-components/regression-chart/type.d.ts +1 -1
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/index.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/dynamic.d.ts +1 -3
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/get-echarts-symbol-size.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/index.d.ts +0 -2
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/series-color-select/dynamic.d.ts +1 -3
- package/dist/plugins/viz-components/scatter-chart/editors/scatter/series-color-select/index.d.ts +0 -2
- package/dist/plugins/viz-components/scatter-chart/editors/stats/index.d.ts +0 -1
- package/dist/plugins/viz-components/scatter-chart/editors/tooltip/index.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/tooltip/metric.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/tooltip/metrics.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/x-axis/index.d.ts +1 -2
- package/dist/plugins/viz-components/scatter-chart/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -2
- package/dist/plugins/viz-components/scatter-chart/option/dataset.d.ts +4 -0
- package/dist/plugins/viz-components/scatter-chart/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/scatter-chart/option/series.d.ts +1 -1
- package/dist/plugins/viz-components/scatter-chart/type.d.ts +3 -3
- package/dist/plugins/viz-components/sunburst/editors/data-field.d.ts +1 -2
- package/dist/plugins/viz-components/sunburst/editors/levels/index.d.ts +1 -2
- package/dist/plugins/viz-components/sunburst/editors/levels/level.d.ts +1 -2
- package/dist/plugins/viz-components/sunburst/option/data.d.ts +1 -2
- package/dist/plugins/viz-components/sunburst/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/sunburst/type.d.ts +3 -3
- package/dist/plugins/viz-components/table/editors/columns/column.d.ts +1 -3
- package/dist/plugins/viz-components/table/editors/columns/index.d.ts +1 -3
- package/dist/plugins/viz-components/table/editors/styling.d.ts +1 -2
- package/dist/plugins/viz-components/table/type.d.ts +2 -2
- package/dist/plugins/viz-components/viz-merico-gqm/request/call-expert-system.d.ts +2 -3
- package/dist/types/dashboard.d.ts +1 -1
- package/dist/types/plugin/index.d.ts +4 -3
- package/dist/utils/aggregation.d.ts +3 -2
- package/dist/utils/data.d.ts +24 -0
- package/dist/utils/download.d.ts +2 -2
- package/dist/utils/template/editor/variable-field.d.ts +0 -1
- package/dist/utils/template/render/render-jsx.d.ts +2 -2
- package/dist/utils/template/render/render-string.d.ts +1 -1
- package/dist/utils/template/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/main/dashboard-editor/settings/content/edit-panel/preview-viz.d.ts +0 -6
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { CallbackDataParams } from 'echarts/types/dist/shared';
|
|
2
|
-
import { AnyObject } from '~/types';
|
|
3
2
|
import { IHeatmapConf } from '../type';
|
|
4
3
|
import { LabelFormattersType, ValueFormattersType } from './formatters';
|
|
5
|
-
export declare function getTooltip(conf: IHeatmapConf, data:
|
|
4
|
+
export declare function getTooltip(conf: IHeatmapConf, data: TPanelData, labelFormatters: LabelFormattersType, valueFormatters: ValueFormattersType): {
|
|
6
5
|
confine: boolean;
|
|
7
6
|
formatter: (params: CallbackDataParams) => string;
|
|
8
7
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { AnyObject } from '~/types';
|
|
2
1
|
import { FormatterFuncType } from '../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
|
|
3
2
|
import { IHeatmapConf } from '../type';
|
|
4
|
-
export declare function getXAxis(conf: IHeatmapConf, data:
|
|
3
|
+
export declare function getXAxis(conf: IHeatmapConf, data: TPanelData, formatterFunc: FormatterFuncType): {
|
|
5
4
|
id: string;
|
|
6
5
|
type: string;
|
|
7
6
|
data: any[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { AnyObject } from '~/types';
|
|
2
1
|
import { FormatterFuncType } from '../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
|
|
3
2
|
import { IHeatmapConf } from '../type';
|
|
4
|
-
export declare function getYAxis(conf: IHeatmapConf, data:
|
|
3
|
+
export declare function getYAxis(conf: IHeatmapConf, data: TPanelData, formatterFunc: FormatterFuncType): {
|
|
5
4
|
type: string;
|
|
6
5
|
data: any[];
|
|
7
6
|
axisLabel: {
|
|
@@ -5,7 +5,7 @@ import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-f
|
|
|
5
5
|
export interface IHeatmapConf {
|
|
6
6
|
x_axis: {
|
|
7
7
|
name: string;
|
|
8
|
-
data_key:
|
|
8
|
+
data_key: TDataKey;
|
|
9
9
|
axisLabel: {
|
|
10
10
|
rotate: number;
|
|
11
11
|
formatter: IXAxisLabelFormatter;
|
|
@@ -14,7 +14,7 @@ export interface IHeatmapConf {
|
|
|
14
14
|
};
|
|
15
15
|
y_axis: {
|
|
16
16
|
name: string;
|
|
17
|
-
data_key:
|
|
17
|
+
data_key: TDataKey;
|
|
18
18
|
nameAlignment: 'left' | 'center' | 'right';
|
|
19
19
|
axisLabel: {
|
|
20
20
|
rotate: number;
|
|
@@ -26,7 +26,7 @@ export interface IHeatmapConf {
|
|
|
26
26
|
min: number;
|
|
27
27
|
max: number;
|
|
28
28
|
name: string;
|
|
29
|
-
data_key:
|
|
29
|
+
data_key: TDataKey;
|
|
30
30
|
value_formatter: TNumbroFormat;
|
|
31
31
|
};
|
|
32
32
|
tooltip: {
|
|
@@ -4,7 +4,6 @@ import { IHorizontalBarChartConf } from '../../type';
|
|
|
4
4
|
interface ISeriesField {
|
|
5
5
|
control: Control<IHorizontalBarChartConf, $TSFixMe>;
|
|
6
6
|
watch: UseFormWatch<IHorizontalBarChartConf>;
|
|
7
|
-
data: TVizData;
|
|
8
7
|
}
|
|
9
|
-
export declare function SeriesField({ control, watch
|
|
8
|
+
export declare function SeriesField({ control, watch }: ISeriesField): JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFieldArrayRemove } from 'react-hook-form';
|
|
3
|
-
import { AnyObject } from '~/types';
|
|
4
3
|
import { IHorizontalBarChartConf, IHorizontalBarChartSeriesItem } from '../../type';
|
|
5
4
|
interface ISeriesItemField {
|
|
6
5
|
control: Control<IHorizontalBarChartConf, $TSFixMe>;
|
|
@@ -11,7 +10,6 @@ interface ISeriesItemField {
|
|
|
11
10
|
label: string;
|
|
12
11
|
value: string;
|
|
13
12
|
}[];
|
|
14
|
-
data: AnyObject[];
|
|
15
13
|
}
|
|
16
|
-
export declare function SeriesItemField({ control, index, remove, seriesItem, xAxisOptions
|
|
14
|
+
export declare function SeriesItemField({ control, index, remove, seriesItem, xAxisOptions }: ISeriesItemField): JSX.Element;
|
|
17
15
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
import { AnyObject } from '~/types';
|
|
4
3
|
import { IHorizontalBarChartConf } from '../../type';
|
|
5
4
|
interface IYAxisField {
|
|
6
5
|
control: Control<IHorizontalBarChartConf, $TSFixMe>;
|
|
7
6
|
watch: UseFormWatch<IHorizontalBarChartConf>;
|
|
8
|
-
data: AnyObject[];
|
|
9
7
|
}
|
|
10
|
-
export declare function YAxisField({
|
|
8
|
+
export declare function YAxisField({ control, watch }: IYAxisField): JSX.Element;
|
|
11
9
|
export {};
|
|
@@ -1,72 +1,3 @@
|
|
|
1
1
|
import { ITemplateVariable } from '~/utils/template';
|
|
2
2
|
import { IHorizontalBarChartConf } from '../type';
|
|
3
|
-
export declare function getOption(conf: IHorizontalBarChartConf, data:
|
|
4
|
-
xAxis: {
|
|
5
|
-
type: string;
|
|
6
|
-
min: string | undefined;
|
|
7
|
-
max: string | undefined;
|
|
8
|
-
position: "top" | "bottom";
|
|
9
|
-
axisLabel: {
|
|
10
|
-
show: boolean;
|
|
11
|
-
margin: number;
|
|
12
|
-
formatter: (p: any) => string;
|
|
13
|
-
};
|
|
14
|
-
axisLine: {
|
|
15
|
-
show: boolean;
|
|
16
|
-
};
|
|
17
|
-
axisTick: {
|
|
18
|
-
show: boolean;
|
|
19
|
-
};
|
|
20
|
-
splitLine: {
|
|
21
|
-
show: boolean;
|
|
22
|
-
};
|
|
23
|
-
nameTextStyle: {
|
|
24
|
-
fontWeight: string;
|
|
25
|
-
};
|
|
26
|
-
nameLocation: string;
|
|
27
|
-
nameGap: number;
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
data_key: string;
|
|
31
|
-
label_formatter: import("../../../../panel/settings/common/numbro-format-selector").TNumbroFormat;
|
|
32
|
-
show: boolean;
|
|
33
|
-
}[];
|
|
34
|
-
yAxis: {
|
|
35
|
-
data: any[];
|
|
36
|
-
name: string;
|
|
37
|
-
nameLocation: string;
|
|
38
|
-
nameTextStyle: {
|
|
39
|
-
align: string;
|
|
40
|
-
fontWeight: string;
|
|
41
|
-
};
|
|
42
|
-
id: string;
|
|
43
|
-
axisTick: {
|
|
44
|
-
show: boolean;
|
|
45
|
-
alignWithLabel: boolean;
|
|
46
|
-
};
|
|
47
|
-
type: string;
|
|
48
|
-
axisLabel: {
|
|
49
|
-
formatter: (value: string | number, index: number) => any;
|
|
50
|
-
width: number;
|
|
51
|
-
overflow: "truncate" | "break" | "breakAll";
|
|
52
|
-
ellipsis: "...";
|
|
53
|
-
};
|
|
54
|
-
z: number;
|
|
55
|
-
}[];
|
|
56
|
-
series: any[];
|
|
57
|
-
tooltip: {
|
|
58
|
-
trigger: string;
|
|
59
|
-
axisPointer: {
|
|
60
|
-
type: string;
|
|
61
|
-
};
|
|
62
|
-
formatter: (params: import("echarts/types/dist/shared").CallbackDataParams[]) => string;
|
|
63
|
-
};
|
|
64
|
-
grid: {
|
|
65
|
-
top: number;
|
|
66
|
-
right: number;
|
|
67
|
-
bottom: number;
|
|
68
|
-
left: number;
|
|
69
|
-
containLabel: boolean;
|
|
70
|
-
};
|
|
71
|
-
legend: Record<string, any>;
|
|
72
|
-
};
|
|
3
|
+
export declare function getOption(conf: IHorizontalBarChartConf, data: TPanelData, variables: ITemplateVariable[]): {};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import { AnyObject } from '~/types';
|
|
3
2
|
import { AggregationType } from '~/utils/aggregation';
|
|
4
3
|
import { DataTemplateType } from './types';
|
|
5
4
|
interface IMakeOneSeriesData {
|
|
6
5
|
dataTemplate: DataTemplateType[];
|
|
7
|
-
data:
|
|
6
|
+
data: TPanelData;
|
|
8
7
|
aggregation_on_value?: AggregationType;
|
|
9
8
|
name_data_key: string;
|
|
10
9
|
value_data_key: string;
|
|
11
10
|
valueTypedXAxis: boolean;
|
|
12
11
|
}
|
|
13
|
-
export declare function makeOneSeriesData({ dataTemplate, data, aggregation_on_value, name_data_key, value_data_key, valueTypedXAxis, }: IMakeOneSeriesData):
|
|
12
|
+
export declare function makeOneSeriesData({ dataTemplate, data, aggregation_on_value, name_data_key, value_data_key, valueTypedXAxis, }: IMakeOneSeriesData): (string | number | number[])[][];
|
|
14
13
|
interface IMakeGroupedSeriesData {
|
|
15
14
|
group_by_key: string;
|
|
16
|
-
data:
|
|
15
|
+
data: TPanelData;
|
|
17
16
|
name_data_key: string;
|
|
18
17
|
value_data_key: string;
|
|
19
18
|
}
|
|
20
|
-
export declare function makeGroupedSeriesData({ group_by_key, data, value_data_key, name_data_key }: IMakeGroupedSeriesData): _.Dictionary<
|
|
19
|
+
export declare function makeGroupedSeriesData({ group_by_key, data, value_data_key, name_data_key }: IMakeGroupedSeriesData): _.Dictionary<Record<string, any>[]>;
|
|
21
20
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AnyObject } from '~/types';
|
|
2
1
|
import { ITemplateVariable } from '~/utils/template';
|
|
3
2
|
import { IHorizontalBarChartConf } from '../../type';
|
|
4
|
-
export declare function getSeries(conf: IHorizontalBarChartConf, xAxisData: string[], valueTypedXAxis: boolean, data:
|
|
3
|
+
export declare function getSeries(conf: IHorizontalBarChartConf, xAxisData: string[], valueTypedXAxis: boolean, data: TPanelData, labelFormatters: Record<string, $TSFixMe>, variables: ITemplateVariable[], variableValueMap: Record<string, string | number>): any[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { AnyObject } from '~/types';
|
|
2
1
|
import { ITemplateVariable } from '~/utils/template';
|
|
3
2
|
import { IHorizontalBarChartReferenceLine } from '../../type';
|
|
4
|
-
export declare function getReferenceLines(reference_lines: IHorizontalBarChartReferenceLine[], variables: ITemplateVariable[], variableValueMap: Record<string, string | number>, data:
|
|
3
|
+
export declare function getReferenceLines(reference_lines: IHorizontalBarChartReferenceLine[], variables: ITemplateVariable[], variableValueMap: Record<string, string | number>, data: TPanelData): {
|
|
5
4
|
name: string;
|
|
6
5
|
type: string;
|
|
7
6
|
hide_in_legend: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AnyObject } from '~/types';
|
|
2
1
|
import { IHorizontalBarChartConf, IHorizontalBarChartSeriesItem } from '../../type';
|
|
3
2
|
import { DataTemplateType } from './types';
|
|
4
|
-
export declare function getSeriesItemOrItems({ y_axis }: IHorizontalBarChartConf, { data_key, xAxisIndex, label_position, name, group_by_key, aggregation_on_value, stack, color, hide_in_legend, invisible, id, ...rest }: IHorizontalBarChartSeriesItem, dataTemplate: DataTemplateType[], valueTypedXAxis: boolean, data:
|
|
3
|
+
export declare function getSeriesItemOrItems({ y_axis }: IHorizontalBarChartConf, { data_key, xAxisIndex, label_position, name, group_by_key, aggregation_on_value, stack, color, hide_in_legend, invisible, id, ...rest }: IHorizontalBarChartSeriesItem, dataTemplate: DataTemplateType[], valueTypedXAxis: boolean, data: TPanelData, variableValueMap: Record<string, string | number>, labelFormatters: Record<string, $TSFixMe>): any;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { AnyObject } from '~/types';
|
|
2
1
|
import { ITemplateVariable } from '~/utils/template';
|
|
3
|
-
export declare function getVariableValueMap(data:
|
|
2
|
+
export declare function getVariableValueMap(data: TPanelData, variables: ITemplateVariable[]): Record<string, string | number>;
|
|
@@ -24,12 +24,12 @@ export interface IHorizontalBarChartSeriesItem {
|
|
|
24
24
|
stack: string;
|
|
25
25
|
color?: string;
|
|
26
26
|
barGap?: '0%' | '-100%';
|
|
27
|
-
data_key:
|
|
27
|
+
data_key: TDataKey;
|
|
28
28
|
barWidth: string;
|
|
29
29
|
xAxisIndex: string;
|
|
30
30
|
barMinWidth: string;
|
|
31
31
|
barMaxWidth: string;
|
|
32
|
-
group_by_key:
|
|
32
|
+
group_by_key: TDataKey;
|
|
33
33
|
hide_in_legend: boolean;
|
|
34
34
|
invisible: boolean;
|
|
35
35
|
label_position?: string;
|
|
@@ -40,7 +40,7 @@ export interface IHorizontalBarChartXAxis {
|
|
|
40
40
|
min: string;
|
|
41
41
|
max: string;
|
|
42
42
|
name: string;
|
|
43
|
-
data_key:
|
|
43
|
+
data_key: TDataKey;
|
|
44
44
|
position: 'top' | 'bottom';
|
|
45
45
|
label_formatter: TNumbroFormat;
|
|
46
46
|
show: boolean;
|
|
@@ -49,7 +49,7 @@ export interface IHorizontalBarChartConf {
|
|
|
49
49
|
x_axes: IHorizontalBarChartXAxis[];
|
|
50
50
|
y_axis: {
|
|
51
51
|
name: string;
|
|
52
|
-
data_key:
|
|
52
|
+
data_key: TDataKey;
|
|
53
53
|
axisLabel: {
|
|
54
54
|
overflow: IAxisLabelOverflow;
|
|
55
55
|
formatter: IXAxisLabelFormatter;
|
|
@@ -4,7 +4,6 @@ import { IMericoEstimationChartConf } from '../type';
|
|
|
4
4
|
interface IDeviationField {
|
|
5
5
|
control: Control<IMericoEstimationChartConf, $TSFixMe>;
|
|
6
6
|
watch: UseFormWatch<IMericoEstimationChartConf>;
|
|
7
|
-
data: TVizData;
|
|
8
7
|
}
|
|
9
|
-
export declare function DeviationField({
|
|
8
|
+
export declare function DeviationField({ control, watch }: IDeviationField): JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -4,7 +4,6 @@ import { IMericoEstimationChartConf } from '../../type';
|
|
|
4
4
|
interface IMetricsField {
|
|
5
5
|
control: Control<IMericoEstimationChartConf, $TSFixMe>;
|
|
6
6
|
watch: UseFormWatch<IMericoEstimationChartConf>;
|
|
7
|
-
data: TVizData;
|
|
8
7
|
}
|
|
9
|
-
export declare const MetricsField: ({ control, watch
|
|
8
|
+
export declare const MetricsField: ({ control, watch }: IMetricsField) => JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -3,9 +3,8 @@ import { Control } from 'react-hook-form';
|
|
|
3
3
|
import { IMericoEstimationChartConf } from '../../type';
|
|
4
4
|
interface ITooltipMetricField {
|
|
5
5
|
control: Control<IMericoEstimationChartConf, $TSFixMe>;
|
|
6
|
-
data: TVizData;
|
|
7
6
|
index: number;
|
|
8
7
|
remove: (index: number) => void;
|
|
9
8
|
}
|
|
10
|
-
export declare const TooltipMetricField: ({ control,
|
|
9
|
+
export declare const TooltipMetricField: ({ control, index, remove }: ITooltipMetricField) => JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -4,7 +4,6 @@ import { IMericoEstimationChartConf } from '../type';
|
|
|
4
4
|
interface IXAxisField {
|
|
5
5
|
control: Control<IMericoEstimationChartConf, $TSFixMe>;
|
|
6
6
|
watch: UseFormWatch<IMericoEstimationChartConf>;
|
|
7
|
-
data: TVizData;
|
|
8
7
|
}
|
|
9
|
-
export declare function XAxisField({
|
|
8
|
+
export declare function XAxisField({ control, watch }: IXAxisField): JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IMericoEstimationChartConf } from '../type';
|
|
2
|
-
export declare function getDataWithLevelInfo(conf: IMericoEstimationChartConf, rawData:
|
|
2
|
+
export declare function getDataWithLevelInfo(conf: IMericoEstimationChartConf, rawData: TPanelData): {
|
|
3
3
|
level: {
|
|
4
4
|
estimated: number;
|
|
5
5
|
actual: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { IMericoEstimationChartConf } from '../type';
|
|
2
|
-
export declare function getOption(conf: IMericoEstimationChartConf, metricKey:
|
|
2
|
+
export declare function getOption(conf: IMericoEstimationChartConf, metricKey: TDataKey, rawData: TPanelData): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
2
2
|
import { IMericoEstimationChartConf } from '../../type';
|
|
3
|
-
export declare function getSeries(conf: IMericoEstimationChartConf, metric: IEchartsTooltipMetric, xAxisData: string[], dataGroupedByX: Record<string,
|
|
3
|
+
export declare function getSeries(conf: IMericoEstimationChartConf, metric: IEchartsTooltipMetric, xAxisData: string[], dataGroupedByX: Record<string, TQueryData>): ({
|
|
4
4
|
type: string;
|
|
5
5
|
name: string;
|
|
6
6
|
xAxisIndex: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IMericoEstimationChartConf } from '../../type';
|
|
2
|
-
export declare function getSeries1(conf: IMericoEstimationChartConf, xAxisData: string[], dataGroupedByX: Record<string,
|
|
2
|
+
export declare function getSeries1(conf: IMericoEstimationChartConf, xAxisData: string[], dataGroupedByX: Record<string, TQueryData>): {
|
|
3
3
|
type: string;
|
|
4
4
|
name: string;
|
|
5
5
|
xAxisIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyObject } from '~/types';
|
|
2
2
|
import { IMericoEstimationChartConf } from '../../type';
|
|
3
|
-
export declare function getSeries2(conf: IMericoEstimationChartConf, xAxisData: string[], dataGroupedByX: Record<string,
|
|
3
|
+
export declare function getSeries2(conf: IMericoEstimationChartConf, xAxisData: string[], dataGroupedByX: Record<string, TQueryData>, commonConf: AnyObject): {
|
|
4
4
|
data: (string | number)[][];
|
|
5
5
|
itemStyle: {
|
|
6
6
|
color: ({ value }: any) => string;
|
|
@@ -2,7 +2,7 @@ import { AnyObject } from '~/types';
|
|
|
2
2
|
import { IMericoEstimationChartConf } from '../../type';
|
|
3
3
|
declare type DataItemType = [string | number, number, number, number];
|
|
4
4
|
declare type ChartDataType = DataItemType[];
|
|
5
|
-
export declare function getSeries3(conf: IMericoEstimationChartConf, xAxisData: string[], dataGroupedByX: Record<string,
|
|
5
|
+
export declare function getSeries3(conf: IMericoEstimationChartConf, xAxisData: string[], dataGroupedByX: Record<string, TQueryData>, commonConf: AnyObject): {
|
|
6
6
|
color: string;
|
|
7
7
|
data: ChartDataType;
|
|
8
8
|
tooltip: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IMericoEstimationChartConf } from '../../type';
|
|
2
2
|
import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-metric';
|
|
3
|
-
export declare function getSeries4(conf: IMericoEstimationChartConf, metric: IEchartsTooltipMetric, xAxisData: string[], dataGroupedByX: Record<string,
|
|
3
|
+
export declare function getSeries4(conf: IMericoEstimationChartConf, metric: IEchartsTooltipMetric, xAxisData: string[], dataGroupedByX: Record<string, TQueryData>): {
|
|
4
4
|
type: string;
|
|
5
5
|
name: string;
|
|
6
6
|
xAxisIndex: number;
|
|
@@ -2,7 +2,7 @@ import { IEchartsTooltipMetric } from '~/plugins/common-echarts-fields/tooltip-m
|
|
|
2
2
|
import { IXAxisLabelFormatter } from '~/plugins/common-echarts-fields/x-axis-label-formatter/types';
|
|
3
3
|
export interface IMericoEstimationChartConf {
|
|
4
4
|
x_axis: {
|
|
5
|
-
data_key:
|
|
5
|
+
data_key: TDataKey;
|
|
6
6
|
name: string;
|
|
7
7
|
axisLabel: {
|
|
8
8
|
rotate: number;
|
|
@@ -12,8 +12,8 @@ export interface IMericoEstimationChartConf {
|
|
|
12
12
|
deviation: {
|
|
13
13
|
name: string;
|
|
14
14
|
data_keys: {
|
|
15
|
-
estimated_value:
|
|
16
|
-
actual_value:
|
|
15
|
+
estimated_value: TDataKey;
|
|
16
|
+
actual_value: TDataKey;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
metrics: IEchartsTooltipMetric[];
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
import { AnyObject } from '~/types';
|
|
4
3
|
import { IParetoChartConf } from '../type';
|
|
5
4
|
interface IBarField {
|
|
6
5
|
control: Control<IParetoChartConf, $TSFixMe>;
|
|
7
6
|
watch: UseFormWatch<IParetoChartConf>;
|
|
8
|
-
data: AnyObject[];
|
|
9
7
|
}
|
|
10
|
-
export declare function BarField({
|
|
8
|
+
export declare function BarField({ control, watch }: IBarField): JSX.Element;
|
|
11
9
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
import { AnyObject } from '~/types';
|
|
4
3
|
import { IParetoChartConf } from '../type';
|
|
5
4
|
interface ILineField {
|
|
6
5
|
control: Control<IParetoChartConf, $TSFixMe>;
|
|
7
6
|
watch: UseFormWatch<IParetoChartConf>;
|
|
8
|
-
data: AnyObject[];
|
|
9
7
|
}
|
|
10
|
-
export declare function LineField({
|
|
8
|
+
export declare function LineField({ control, watch }: ILineField): JSX.Element;
|
|
11
9
|
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
import { AnyObject } from '~/types';
|
|
4
3
|
import { IParetoChartConf } from '../type';
|
|
5
4
|
export declare const DescribeParetoParams: () => JSX.Element;
|
|
6
5
|
interface IMarkLineField {
|
|
7
6
|
control: Control<IParetoChartConf, $TSFixMe>;
|
|
8
7
|
watch: UseFormWatch<IParetoChartConf>;
|
|
9
|
-
data: AnyObject[];
|
|
10
8
|
}
|
|
11
|
-
export declare function MarkLineField({
|
|
9
|
+
export declare function MarkLineField({ control, watch }: IMarkLineField): JSX.Element;
|
|
12
10
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
import { AnyObject } from '~/types';
|
|
4
3
|
import { IParetoChartConf } from '../type';
|
|
5
4
|
interface IXAxisField {
|
|
6
5
|
control: Control<IParetoChartConf, $TSFixMe>;
|
|
7
6
|
watch: UseFormWatch<IParetoChartConf>;
|
|
8
|
-
data: AnyObject[];
|
|
9
7
|
}
|
|
10
|
-
export declare function XAxisField({
|
|
8
|
+
export declare function XAxisField({ control, watch }: IXAxisField): JSX.Element;
|
|
11
9
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Control, UseFormWatch } from 'react-hook-form';
|
|
3
|
-
import { AnyObject } from '~/types';
|
|
4
3
|
import { IParetoChartConf } from '../type';
|
|
5
4
|
interface IYAxisField {
|
|
6
5
|
control: Control<IParetoChartConf, $TSFixMe>;
|
|
7
6
|
watch: UseFormWatch<IParetoChartConf>;
|
|
8
|
-
data: AnyObject[];
|
|
9
7
|
}
|
|
10
|
-
export declare function YAxisField({
|
|
8
|
+
export declare function YAxisField({ control, watch }: IYAxisField): JSX.Element;
|
|
11
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITemplateVariable } from '~/utils/template';
|
|
2
2
|
import { IParetoChartConf } from '../type';
|
|
3
|
-
export declare function getOption(conf: IParetoChartConf, data:
|
|
3
|
+
export declare function getOption(conf: IParetoChartConf, data: TPanelData, _variables: ITemplateVariable[]): {
|
|
4
4
|
dataZoom: ({
|
|
5
5
|
type: string;
|
|
6
6
|
xAxisIndex: number[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { AnyObject } from '~/types';
|
|
2
1
|
import { IParetoChartConf } from '../type';
|
|
3
2
|
import { TLineDataItem } from './types';
|
|
4
3
|
import { TParetoFormatters } from './utils';
|
|
5
|
-
export declare function getSeries(conf: IParetoChartConf, data:
|
|
4
|
+
export declare function getSeries(conf: IParetoChartConf, data: TPanelData, formatters: TParetoFormatters): ({
|
|
6
5
|
name: string;
|
|
7
6
|
type: string;
|
|
8
7
|
barMaxWidth: number;
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { IPieChartConf } from '../type';
|
|
2
|
-
export declare function getOption(conf: IPieChartConf, data:
|
|
2
|
+
export declare function getOption(conf: IPieChartConf, data: TPanelData, width: number): {
|
|
3
3
|
tooltip: {
|
|
4
4
|
show: boolean;
|
|
5
|
+
confine: boolean;
|
|
5
6
|
};
|
|
6
7
|
series: {
|
|
8
|
+
type?: undefined;
|
|
9
|
+
radius?: undefined;
|
|
10
|
+
itemStyle?: undefined;
|
|
11
|
+
label?: undefined;
|
|
12
|
+
labelLine?: undefined;
|
|
13
|
+
labelLayout?: undefined;
|
|
14
|
+
data?: undefined;
|
|
15
|
+
top?: undefined;
|
|
16
|
+
bottom?: undefined;
|
|
17
|
+
left?: undefined;
|
|
18
|
+
right?: undefined;
|
|
19
|
+
} | {
|
|
7
20
|
type: string;
|
|
8
21
|
radius: string[];
|
|
9
22
|
itemStyle: {
|
|
@@ -4,7 +4,19 @@ declare type TDataItem = {
|
|
|
4
4
|
value: number;
|
|
5
5
|
color?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function getSeries(conf: IPieChartConf, data:
|
|
7
|
+
export declare function getSeries(conf: IPieChartConf, data: TPanelData, width: number): {
|
|
8
|
+
type?: undefined;
|
|
9
|
+
radius?: undefined;
|
|
10
|
+
itemStyle?: undefined;
|
|
11
|
+
label?: undefined;
|
|
12
|
+
labelLine?: undefined;
|
|
13
|
+
labelLayout?: undefined;
|
|
14
|
+
data?: undefined;
|
|
15
|
+
top?: undefined;
|
|
16
|
+
bottom?: undefined;
|
|
17
|
+
left?: undefined;
|
|
18
|
+
right?: undefined;
|
|
19
|
+
} | {
|
|
8
20
|
type: string;
|
|
9
21
|
radius: string[];
|
|
10
22
|
itemStyle: {
|
|
@@ -5,7 +5,6 @@ interface IDimensionField {
|
|
|
5
5
|
control: Control<IRadarChartConf, $TSFixMe>;
|
|
6
6
|
index: number;
|
|
7
7
|
remove: UseFieldArrayRemove;
|
|
8
|
-
data: TVizData;
|
|
9
8
|
}
|
|
10
|
-
export declare function DimensionField({ control, index, remove
|
|
9
|
+
export declare function DimensionField({ control, index, remove }: IDimensionField): JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -4,7 +4,6 @@ import { IRadarChartConf } from '../../type';
|
|
|
4
4
|
interface IDimensionsField {
|
|
5
5
|
control: Control<IRadarChartConf, $TSFixMe>;
|
|
6
6
|
watch: UseFormWatch<IRadarChartConf>;
|
|
7
|
-
data: TVizData;
|
|
8
7
|
}
|
|
9
|
-
export declare function DimensionsField({ control, watch
|
|
8
|
+
export declare function DimensionsField({ control, watch }: IDimensionsField): JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,63 +1,2 @@
|
|
|
1
1
|
import { IRadarChartConf } from '../type';
|
|
2
|
-
export declare function getOption(conf: IRadarChartConf, data:
|
|
3
|
-
legend: {
|
|
4
|
-
show: boolean;
|
|
5
|
-
bottom: number;
|
|
6
|
-
left: number;
|
|
7
|
-
};
|
|
8
|
-
tooltip: {
|
|
9
|
-
trigger: string;
|
|
10
|
-
};
|
|
11
|
-
} & {
|
|
12
|
-
radar: {
|
|
13
|
-
indicator: {
|
|
14
|
-
name: string;
|
|
15
|
-
max: number;
|
|
16
|
-
}[];
|
|
17
|
-
splitArea: {
|
|
18
|
-
show: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
tooltip: {
|
|
22
|
-
confine: boolean;
|
|
23
|
-
backgroundColor: string;
|
|
24
|
-
formatter: ({ name, marker, value }: {
|
|
25
|
-
name: string;
|
|
26
|
-
value: number[];
|
|
27
|
-
marker: string;
|
|
28
|
-
}) => string;
|
|
29
|
-
};
|
|
30
|
-
legend: {
|
|
31
|
-
show: boolean;
|
|
32
|
-
bottom: number;
|
|
33
|
-
left: string;
|
|
34
|
-
type: string;
|
|
35
|
-
};
|
|
36
|
-
series: {
|
|
37
|
-
type: string;
|
|
38
|
-
data: {
|
|
39
|
-
value: any[];
|
|
40
|
-
name: any;
|
|
41
|
-
}[];
|
|
42
|
-
symbolSize: number;
|
|
43
|
-
lineStyle: {
|
|
44
|
-
width: number;
|
|
45
|
-
};
|
|
46
|
-
emphasis: {
|
|
47
|
-
lineStyle: {
|
|
48
|
-
width: number;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
areaStyle: {
|
|
52
|
-
opacity: number;
|
|
53
|
-
} | undefined;
|
|
54
|
-
label: {
|
|
55
|
-
show: boolean;
|
|
56
|
-
formatter: ({ dimensionIndex, value }: {
|
|
57
|
-
dimensionIndex: number;
|
|
58
|
-
value: number;
|
|
59
|
-
}) => string | number;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
color: string[];
|
|
63
|
-
};
|
|
2
|
+
export declare function getOption(conf: IRadarChartConf, data: TPanelData): {};
|
|
@@ -2,12 +2,12 @@ import { TNumbroFormat } from '~/panel/settings/common/numbro-format-selector';
|
|
|
2
2
|
export interface IRadarChartDimension {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
|
-
data_key:
|
|
5
|
+
data_key: TDataKey;
|
|
6
6
|
max: number;
|
|
7
7
|
formatter: TNumbroFormat;
|
|
8
8
|
}
|
|
9
9
|
export interface IRadarChartConf {
|
|
10
|
-
series_name_key:
|
|
10
|
+
series_name_key: TDataKey;
|
|
11
11
|
background: {
|
|
12
12
|
enabled: boolean;
|
|
13
13
|
};
|