intelica-library-ui 0.1.89 → 0.1.91
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter } from
|
|
2
|
-
import * as echarts from
|
|
3
|
-
import { EChartsOption } from
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter } from "@angular/core";
|
|
2
|
+
import * as echarts from "echarts";
|
|
3
|
+
import { EChartsOption } from "echarts";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class EchartComponent implements AfterViewInit {
|
|
6
6
|
private el;
|
|
@@ -1,48 +1,124 @@
|
|
|
1
|
-
import { EChartsOption,
|
|
1
|
+
import { EChartsOption, TooltipComponentFormatterCallback, TooltipComponentFormatterCallbackParams, LabelFormatterCallback, DefaultLabelFormatterCallbackParams } from "echarts";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class EchartService {
|
|
4
4
|
private readonly _sharedService;
|
|
5
|
-
getDefultAxisConfiguration
|
|
6
|
-
getCategoryAxisConfiguration
|
|
7
|
-
getValueAxisConfiguration
|
|
5
|
+
private getDefultAxisConfiguration;
|
|
6
|
+
private getCategoryAxisConfiguration;
|
|
7
|
+
private getValueAxisConfiguration;
|
|
8
|
+
private getGridConfiguration;
|
|
9
|
+
private getLegendConfiguration;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param color - Color of the tooltip
|
|
13
|
+
* @param title - Title of the tooltip
|
|
14
|
+
* @param body - Body of the tooltip
|
|
15
|
+
* @returns - Tooltip HTML string
|
|
16
|
+
*/
|
|
8
17
|
getTooltipFormatter(color: string, title: string, body: string): string;
|
|
9
|
-
|
|
10
|
-
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param categories - Array of categories for the x-axis
|
|
21
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
22
|
+
* @param labelConfig - Optional label configuration for the bars
|
|
23
|
+
* @param tooltipConfig - Optional tooltip configuration for the bars
|
|
24
|
+
* @param showLegend - Optional flag to show the legend
|
|
25
|
+
* @returns - EChartsOption - Configuration object for the bar chart
|
|
26
|
+
*/
|
|
11
27
|
getBarChartOptions(categories: string[], series: {
|
|
12
28
|
name: string;
|
|
13
29
|
value: any;
|
|
14
30
|
color: string;
|
|
15
31
|
}[], labelConfig?: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean): EChartsOption;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param categories - Array of categories for the x-axis
|
|
35
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
36
|
+
* @param labelConfig - Optional label configuration for the bars
|
|
37
|
+
* @param tooltipConfig - Optional tooltip configuration for the bars
|
|
38
|
+
* @param showLegend - Optional flag to show the legend
|
|
39
|
+
* @returns - EChartsOption - Configuration object for the bar chart
|
|
40
|
+
*/
|
|
16
41
|
getBarChartStackOptions(categories: string[], series: {
|
|
17
42
|
name: string;
|
|
18
43
|
value: any;
|
|
19
44
|
color: string;
|
|
20
45
|
}[], labelConfig?: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean): EChartsOption;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @param categories - Array of categories for the y-axis
|
|
49
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
50
|
+
* @param labelConfig - Optional label configuration for the bars
|
|
51
|
+
* @param tooltipConfig - Optional tooltip configuration for the bars
|
|
52
|
+
* @param showLegend - Optional flag to show the legend
|
|
53
|
+
* @returns - EChartsOption - Configuration object for the bar chart
|
|
54
|
+
*/
|
|
21
55
|
getBarChartHorizontalOptions(categories: string[], series: {
|
|
22
56
|
name: string;
|
|
23
57
|
value: any;
|
|
24
58
|
color: string;
|
|
25
59
|
}[], labelConfig?: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean): EChartsOption;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @param categories - Array of categories for the y-axis
|
|
63
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
64
|
+
* @param labelConfig - Optional label configuration for the bars
|
|
65
|
+
* @param tooltipConfig - Optional tooltip configuration for the bars
|
|
66
|
+
* @param showLegend - Optional flag to show the legend
|
|
67
|
+
* @returns - EChartsOption - Configuration object for the bar chart
|
|
68
|
+
*/
|
|
26
69
|
getBarChartHorizontalStackOptions(categories: string[], series: {
|
|
27
70
|
name: string;
|
|
28
71
|
value: any;
|
|
29
72
|
color: string;
|
|
30
73
|
}[], labelConfig?: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean): EChartsOption;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @param categories - Array of categories for the y-axis
|
|
77
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
78
|
+
* @param labelConfig - Optional label configuration for the bars
|
|
79
|
+
* @param tooltipConfig - Optional tooltip configuration for the bars
|
|
80
|
+
* @param showLegend - Optional flag to show the legend
|
|
81
|
+
* @returns - EChartsOption - Configuration object for the bar chart
|
|
82
|
+
*/
|
|
31
83
|
getBarChartTopOptions(categories: string[], series: {
|
|
32
84
|
name: string;
|
|
33
85
|
value: any;
|
|
34
86
|
color: string;
|
|
35
87
|
}[], categoryWidth?: number, labelConfig?: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean): EChartsOption;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @param categories - Array of categories for the x-axis
|
|
91
|
+
* @param series - Array of series data, each containing name, value, and color
|
|
92
|
+
* @param labelConfig - Optional label configuration for the lines
|
|
93
|
+
* @param tooltipConfig - Optional tooltip configuration for the lines
|
|
94
|
+
* @param showLegend - Optional flag to show the legend
|
|
95
|
+
* @returns - EChartsOption - Configuration object for the line chart
|
|
96
|
+
*/
|
|
36
97
|
getLineChartOptions(categories: string[], series: {
|
|
37
98
|
name: string;
|
|
38
99
|
value: any;
|
|
39
100
|
color: string;
|
|
40
101
|
}[], labelConfig: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>, showLegend?: boolean): EChartsOption;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @param data - Array of series data, each containing name, value, and color
|
|
105
|
+
* @param labelConfig - Optional label configuration
|
|
106
|
+
* @param tooltipConfig - Optional tooltip configuration
|
|
107
|
+
* @returns - EChartsOption - Configuration object for the pie
|
|
108
|
+
*/
|
|
41
109
|
getDoughnutPieOptions(data: {
|
|
42
110
|
name: string;
|
|
43
111
|
value: any;
|
|
44
112
|
color: string;
|
|
45
113
|
}[], labelConfig: LabelFormatterCallback<DefaultLabelFormatterCallbackParams>, tooltipConfig?: TooltipComponentFormatterCallback<TooltipComponentFormatterCallbackParams>): EChartsOption;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @param letter - text to show in the center of the pie
|
|
117
|
+
* @param value - rate value
|
|
118
|
+
* @param textSize - size of the letter
|
|
119
|
+
* @param color - color of the letter and pie
|
|
120
|
+
* @returns
|
|
121
|
+
*/
|
|
46
122
|
getRateDoughnutPieOptions(letter: string, value: number, textSize: number, color: string): EChartsOption;
|
|
47
123
|
static ɵfac: i0.ɵɵFactoryDeclaration<EchartService, never>;
|
|
48
124
|
static ɵprov: i0.ɵɵInjectableDeclaration<EchartService>;
|