@devtable/dashboard 8.6.3 → 8.7.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/dashboard.es.js +3550 -3474
- package/dist/dashboard.umd.js +56 -56
- package/dist/plugins/viz-components/cartesian/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/series/data.d.ts +21 -0
- package/dist/plugins/viz-components/cartesian/option/series/series_items.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/type.d.ts +1 -1
- package/dist/utils/aggregation.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VizComponent } from '~/types/plugin';
|
|
2
2
|
import { VersionBasedMigrator } from '~/plugins/plugin-data-migrator';
|
|
3
3
|
export declare class VizCartesianMigrator extends VersionBasedMigrator {
|
|
4
|
-
readonly VERSION =
|
|
4
|
+
readonly VERSION = 9;
|
|
5
5
|
configVersions(): void;
|
|
6
6
|
}
|
|
7
7
|
export declare const CartesianVizComponent: VizComponent;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { AggregationType } from '~/utils/aggregation';
|
|
4
|
+
import { DataTemplateType } from './types';
|
|
5
|
+
interface IMakeOneSeriesData {
|
|
6
|
+
dataTemplate: DataTemplateType[];
|
|
7
|
+
data: AnyObject[];
|
|
8
|
+
aggregation_on_value?: AggregationType;
|
|
9
|
+
x_axis_data_key: string;
|
|
10
|
+
y_axis_data_key: string;
|
|
11
|
+
valueTypedXAxis: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function makeOneSeriesData({ dataTemplate, data, aggregation_on_value, x_axis_data_key, y_axis_data_key, valueTypedXAxis, }: IMakeOneSeriesData): any[];
|
|
14
|
+
interface IMakeGroupedSeriesData {
|
|
15
|
+
group_by_key: string;
|
|
16
|
+
data: AnyObject[];
|
|
17
|
+
x_axis_data_key: string;
|
|
18
|
+
y_axis_data_key: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function makeGroupedSeriesData({ group_by_key, data, x_axis_data_key, y_axis_data_key, }: IMakeGroupedSeriesData): _.Dictionary<AnyObject[]>;
|
|
21
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AnyObject } from '~/types';
|
|
2
2
|
import { ICartesianChartConf, ICartesianChartSeriesItem } from '../../type';
|
|
3
3
|
import { DataTemplateType } from './types';
|
|
4
|
-
export declare function getSeriesItemOrItems({ x_axis_data_key }: ICartesianChartConf, { y_axis_data_key, yAxisIndex, label_position, name, group_by_key,
|
|
4
|
+
export declare function getSeriesItemOrItems({ x_axis_data_key }: ICartesianChartConf, { y_axis_data_key, yAxisIndex, label_position, name, group_by_key, aggregation_on_value, stack, color, display_name_on_line, symbolSize, hide_in_legend, ...rest }: ICartesianChartSeriesItem, dataTemplate: DataTemplateType[], valueTypedXAxis: boolean, data: AnyObject[], variableValueMap: Record<string, string | number>, labelFormatters: Record<string, $TSFixMe>): any;
|
|
@@ -20,7 +20,7 @@ export interface ICartesianChartSeriesItem {
|
|
|
20
20
|
smooth: boolean;
|
|
21
21
|
step: false | 'start' | 'middle' | 'end';
|
|
22
22
|
group_by_key: string;
|
|
23
|
-
|
|
23
|
+
aggregation_on_value?: AggregationType;
|
|
24
24
|
lineStyle: {
|
|
25
25
|
type: 'solid' | 'dashed' | 'dotted';
|
|
26
26
|
width: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnyObject } from '~/types';
|
|
1
2
|
export declare type AggregationType = {
|
|
2
3
|
type: 'none' | 'sum' | 'mean' | 'median' | 'max' | 'min';
|
|
3
4
|
config: Record<$TSFixMe, never>;
|
|
@@ -8,4 +9,4 @@ export declare type AggregationType = {
|
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
export declare const DefaultAggregation: AggregationType;
|
|
11
|
-
export declare function aggregateValue(data:
|
|
12
|
+
export declare function aggregateValue(data: AnyObject[], data_field: string, aggregation: AggregationType): number | number[] | null;
|