@advt-gpt-chart/package 3.1.2 → 3.1.3
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/Chart/ChartBase/constants.d.ts +4 -2
- package/dist/Chart/ChartCodeRender/type.d.ts +1 -0
- package/dist/Chart/ChartWrapper/utils.d.ts +1 -0
- package/dist/index.es.js +24560 -24512
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +736 -735
- package/dist/index.umd.js.gz +0 -0
- package/dist/types/chart.d.ts +3 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ type CartesianOptions = {
|
|
|
7
7
|
};
|
|
8
8
|
type CartesianTooltipOptions = CartesianOptions & {
|
|
9
9
|
seriesField?: string;
|
|
10
|
+
isMetricFolded?: boolean;
|
|
10
11
|
};
|
|
11
12
|
type PolarTooltipOptions = {
|
|
12
13
|
categoryField: string;
|
|
@@ -14,6 +15,7 @@ type PolarTooltipOptions = {
|
|
|
14
15
|
seriesField?: string;
|
|
15
16
|
showPercent?: boolean;
|
|
16
17
|
categoryFieldType?: AxesType;
|
|
18
|
+
isMetricFolded?: boolean;
|
|
17
19
|
};
|
|
18
20
|
type CompositeAxisSpec = {
|
|
19
21
|
orient: 'left' | 'right' | 'bottom' | 'top';
|
|
@@ -41,7 +43,7 @@ export declare const getPolarLegendSpec: (seriesField: string | boolean | undefi
|
|
|
41
43
|
};
|
|
42
44
|
};
|
|
43
45
|
export declare const getCartesianLegend: (xField?: string, seriesField?: string | boolean) => any;
|
|
44
|
-
export declare const getPolarTooltipSpec: ({ categoryField, valueField, seriesField, showPercent }: PolarTooltipOptions, tools?: Tools) => {
|
|
46
|
+
export declare const getPolarTooltipSpec: ({ categoryField, valueField, seriesField, showPercent, isMetricFolded }: PolarTooltipOptions, tools?: Tools) => {
|
|
45
47
|
mark: {
|
|
46
48
|
title: {
|
|
47
49
|
value: (datum: any) => any;
|
|
@@ -85,7 +87,7 @@ export declare const getLineStyle: () => {
|
|
|
85
87
|
};
|
|
86
88
|
export declare const getCartesianAxesSpec: (options: CartesianOptions, tools?: Tools) => ICartesianAxisSpec[];
|
|
87
89
|
export declare const getCompositeAxesSpec: (series: any[], yFields: string[], yAxesConfig?: any[], seriesIds?: string[]) => CompositeAxisSpec[];
|
|
88
|
-
export declare const getCartesianTootipSpec: ({ xField, yField, seriesField }: CartesianTooltipOptions, tools?: Tools) => {
|
|
90
|
+
export declare const getCartesianTootipSpec: ({ xField, yField, seriesField, isMetricFolded }: CartesianTooltipOptions, tools?: Tools) => {
|
|
89
91
|
mark: {
|
|
90
92
|
updateTitle: (prev: any) => any;
|
|
91
93
|
content: {
|
|
@@ -25,6 +25,7 @@ export declare function chartAdvisor(chartJson: ChartJson): Promise<{
|
|
|
25
25
|
hideChartHeader?: boolean;
|
|
26
26
|
series?: any[];
|
|
27
27
|
agent?: import("../ChartCodeRender/type").AgentConfig;
|
|
28
|
+
availableChartTypes?: string[];
|
|
28
29
|
}>;
|
|
29
30
|
export declare function exportToExcel(data: any[], fileName: string): void;
|
|
30
31
|
export declare function exportToExcelWithSheets(sheets: Array<{
|