@acorex/charts 20.1.24 → 20.1.26
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/bar-chart/index.d.ts +36 -1
- package/chart-legend/index.d.ts +1 -1
- package/chart-tooltip/index.d.ts +11 -4
- package/donut-chart/index.d.ts +32 -1
- package/fesm2022/acorex-charts-bar-chart.mjs +345 -259
- package/fesm2022/acorex-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-chart-legend.mjs +12 -15
- package/fesm2022/acorex-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/acorex-charts-chart-tooltip.mjs +38 -13
- package/fesm2022/acorex-charts-chart-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-charts-donut-chart.mjs +116 -93
- package/fesm2022/acorex-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-gauge-chart.mjs +39 -31
- package/fesm2022/acorex-charts-gauge-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-hierarchy-chart.mjs +24 -7
- package/fesm2022/acorex-charts-hierarchy-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-line-chart.mjs +50 -25
- package/fesm2022/acorex-charts-line-chart.mjs.map +1 -1
- package/gauge-chart/index.d.ts +14 -1
- package/hierarchy-chart/index.d.ts +22 -1
- package/line-chart/index.d.ts +28 -1
- package/package.json +1 -1
package/bar-chart/index.d.ts
CHANGED
|
@@ -43,6 +43,23 @@ interface AXBarChartClickEvent {
|
|
|
43
43
|
* - `--ax-comp-bar-chart-bg-color`: Background color for the chart.
|
|
44
44
|
* Default: `--ax-sys-color-lightest-surface`
|
|
45
45
|
*/
|
|
46
|
+
/**
|
|
47
|
+
* Messages configuration for bar chart empty states
|
|
48
|
+
*/
|
|
49
|
+
interface AXBarChartMessages {
|
|
50
|
+
/** Message shown when no data is available */
|
|
51
|
+
noData?: string;
|
|
52
|
+
/** Help text shown when no data is available */
|
|
53
|
+
noDataHelp?: string;
|
|
54
|
+
/** Message shown when all bars are hidden */
|
|
55
|
+
allHidden?: string;
|
|
56
|
+
/** Help text shown when all bars are hidden */
|
|
57
|
+
allHiddenHelp?: string;
|
|
58
|
+
/** Icon for no data state */
|
|
59
|
+
noDataIcon?: string;
|
|
60
|
+
/** Icon for all hidden state */
|
|
61
|
+
allHiddenIcon?: string;
|
|
62
|
+
}
|
|
46
63
|
interface AXBarChartOption {
|
|
47
64
|
width?: number;
|
|
48
65
|
height?: number;
|
|
@@ -57,6 +74,7 @@ interface AXBarChartOption {
|
|
|
57
74
|
cornerRadius?: number;
|
|
58
75
|
animationDuration?: number;
|
|
59
76
|
animationEasing?: AXAnimationEasing;
|
|
77
|
+
messages?: AXBarChartMessages;
|
|
60
78
|
}
|
|
61
79
|
/**
|
|
62
80
|
* Bar chart data type returned by getValue()
|
|
@@ -116,6 +134,15 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
|
|
|
116
134
|
cornerRadius?: number;
|
|
117
135
|
animationDuration?: number;
|
|
118
136
|
animationEasing?: _acorex_cdk_common.AXAnimationEasing;
|
|
137
|
+
messages?: AXBarChartMessages;
|
|
138
|
+
}>;
|
|
139
|
+
protected effectiveMessages: _angular_core.Signal<{
|
|
140
|
+
noData: string;
|
|
141
|
+
noDataHelp: string;
|
|
142
|
+
allHidden: string;
|
|
143
|
+
allHiddenHelp: string;
|
|
144
|
+
noDataIcon: string;
|
|
145
|
+
allHiddenIcon: string;
|
|
119
146
|
}>;
|
|
120
147
|
private hiddenBars;
|
|
121
148
|
private hiddenSeries;
|
|
@@ -159,10 +186,18 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
|
|
|
159
186
|
* Creates x and y axes with grid lines
|
|
160
187
|
*/
|
|
161
188
|
private createAxes;
|
|
189
|
+
private createXAxis;
|
|
190
|
+
private createYAxis;
|
|
191
|
+
private shouldRotateXAxisLabels;
|
|
192
|
+
private createXAxisTitle;
|
|
193
|
+
private createYAxisTitle;
|
|
194
|
+
private calculateMaxYAxisTickLabelWidth;
|
|
195
|
+
private createGridLines;
|
|
162
196
|
/**
|
|
163
197
|
* Creates axes for clustered charts
|
|
164
198
|
*/
|
|
165
199
|
private createAxesClustered;
|
|
200
|
+
private createXAxisClustered;
|
|
166
201
|
/**
|
|
167
202
|
* Renders the bars with animations
|
|
168
203
|
*/
|
|
@@ -229,4 +264,4 @@ type PartialBarChartConfig = Partial<AXBarChartOption>;
|
|
|
229
264
|
declare function barChartConfig(config?: PartialBarChartConfig): AXBarChartOption;
|
|
230
265
|
|
|
231
266
|
export { AXBarChartComponent, AXBarChartDefaultConfig, AX_BAR_CHART_CONFIG, barChartConfig };
|
|
232
|
-
export type { AXBarChartClickEvent, AXBarChartClusteredData, AXBarChartData, AXBarChartOption, AXBarChartValue, PartialBarChartConfig };
|
|
267
|
+
export type { AXBarChartClickEvent, AXBarChartClusteredData, AXBarChartData, AXBarChartMessages, AXBarChartOption, AXBarChartValue, PartialBarChartConfig };
|
package/chart-legend/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ declare class AXChartLegendComponent {
|
|
|
68
68
|
/**
|
|
69
69
|
* Reference to legend container for measuring dimensions
|
|
70
70
|
*/
|
|
71
|
-
legendContainer
|
|
71
|
+
legendContainer: _angular_core.Signal<ElementRef<HTMLDivElement>>;
|
|
72
72
|
protected showValues: _angular_core.Signal<boolean>;
|
|
73
73
|
protected showPercentage: _angular_core.Signal<boolean>;
|
|
74
74
|
protected containerClass: _angular_core.Signal<{
|
package/chart-tooltip/index.d.ts
CHANGED
|
@@ -2,11 +2,12 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
interface AXChartTooltipData {
|
|
5
|
-
title: string;
|
|
5
|
+
title: string | string[];
|
|
6
6
|
value: number | string;
|
|
7
7
|
percentage?: string;
|
|
8
|
-
color?: string;
|
|
9
|
-
|
|
8
|
+
color?: string | string[];
|
|
9
|
+
tooltipColor?: string;
|
|
10
|
+
tooltipBgColor?: string;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
declare class AXChartTooltipComponent {
|
|
@@ -30,10 +31,16 @@ declare class AXChartTooltipComponent {
|
|
|
30
31
|
/**
|
|
31
32
|
* Reference to tooltip container for measuring dimensions
|
|
32
33
|
*/
|
|
33
|
-
tooltipContainer
|
|
34
|
+
tooltipContainer: _angular_core.Signal<ElementRef<HTMLDivElement>>;
|
|
34
35
|
protected tooltipWidth: number;
|
|
35
36
|
protected tooltipHeight: number;
|
|
36
37
|
constructor();
|
|
38
|
+
protected isColorArray(): boolean;
|
|
39
|
+
protected colorList(): string[];
|
|
40
|
+
protected singleColor(): string | null;
|
|
41
|
+
protected isTitleArray(): boolean;
|
|
42
|
+
protected titleList(): string[];
|
|
43
|
+
protected colorAt(index: number): string | null;
|
|
37
44
|
/**
|
|
38
45
|
* Updates tooltip dimensions after it's rendered
|
|
39
46
|
*/
|
package/donut-chart/index.d.ts
CHANGED
|
@@ -41,6 +41,23 @@ interface AXDonutChartData {
|
|
|
41
41
|
* }
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
+
/**
|
|
45
|
+
* Messages configuration for donut chart empty states
|
|
46
|
+
*/
|
|
47
|
+
interface AXDonutChartMessages {
|
|
48
|
+
/** Message shown when no data is available */
|
|
49
|
+
noData?: string;
|
|
50
|
+
/** Help text shown when no data is available */
|
|
51
|
+
noDataHelp?: string;
|
|
52
|
+
/** Message shown when all segments are hidden */
|
|
53
|
+
allHidden?: string;
|
|
54
|
+
/** Help text shown when all segments are hidden */
|
|
55
|
+
allHiddenHelp?: string;
|
|
56
|
+
/** Icon for no data state */
|
|
57
|
+
noDataIcon?: string;
|
|
58
|
+
/** Icon for all hidden state */
|
|
59
|
+
allHiddenIcon?: string;
|
|
60
|
+
}
|
|
44
61
|
interface AXDonutChartOption {
|
|
45
62
|
/**
|
|
46
63
|
* Width of the chart in pixels
|
|
@@ -89,6 +106,10 @@ interface AXDonutChartOption {
|
|
|
89
106
|
* Default: 'cubic-out'
|
|
90
107
|
*/
|
|
91
108
|
animationEasing?: AXAnimationEasing;
|
|
109
|
+
/**
|
|
110
|
+
* Customizable messages for empty states
|
|
111
|
+
*/
|
|
112
|
+
messages?: AXDonutChartMessages;
|
|
92
113
|
}
|
|
93
114
|
/**
|
|
94
115
|
* Data structure provided to the chart component
|
|
@@ -121,6 +142,7 @@ declare class AXDonutChartComponent implements OnDestroy, AXChartLegendCompatibl
|
|
|
121
142
|
private _initialized;
|
|
122
143
|
private _rendered;
|
|
123
144
|
private _isInitialAnimating;
|
|
145
|
+
private _currentlyHighlightedSegment;
|
|
124
146
|
private _tooltipVisible;
|
|
125
147
|
private _tooltipPosition;
|
|
126
148
|
private _tooltipData;
|
|
@@ -142,6 +164,15 @@ declare class AXDonutChartComponent implements OnDestroy, AXChartLegendCompatibl
|
|
|
142
164
|
cornerRadius?: number;
|
|
143
165
|
animationDuration?: number;
|
|
144
166
|
animationEasing?: _acorex_cdk_common.AXAnimationEasing;
|
|
167
|
+
messages?: AXDonutChartMessages;
|
|
168
|
+
}>;
|
|
169
|
+
protected effectiveMessages: _angular_core.Signal<{
|
|
170
|
+
noData: string;
|
|
171
|
+
noDataHelp: string;
|
|
172
|
+
allHidden: string;
|
|
173
|
+
allHiddenHelp: string;
|
|
174
|
+
noDataIcon: string;
|
|
175
|
+
allHiddenIcon: string;
|
|
145
176
|
}>;
|
|
146
177
|
protected chartDataArray: _angular_core.Signal<AXDonutChartData[]>;
|
|
147
178
|
protected getColor(index: number): string;
|
|
@@ -248,4 +279,4 @@ type PartialDonutChartConfig = Partial<AXDonutChartOption>;
|
|
|
248
279
|
declare function donutChartConfig(config?: PartialDonutChartConfig): AXDonutChartOption;
|
|
249
280
|
|
|
250
281
|
export { AXDonutChartComponent, AXDonutChartDefaultConfig, AX_DONUT_CHART_CONFIG, donutChartConfig };
|
|
251
|
-
export type { AXDonutChartData, AXDonutChartOption, AXDonutChartValue, PartialDonutChartConfig };
|
|
282
|
+
export type { AXDonutChartData, AXDonutChartMessages, AXDonutChartOption, AXDonutChartValue, PartialDonutChartConfig };
|