@acorex/charts 20.1.22 → 20.1.24
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 +24 -3
- package/fesm2022/acorex-charts-bar-chart.mjs +477 -111
- package/fesm2022/acorex-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-chart-legend.mjs +3 -3
- package/fesm2022/acorex-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/acorex-charts-chart-tooltip.mjs +3 -3
- package/fesm2022/acorex-charts-chart-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-charts-donut-chart.mjs +3 -3
- package/fesm2022/acorex-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-gauge-chart.mjs +3 -3
- package/fesm2022/acorex-charts-gauge-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-hierarchy-chart.mjs +3 -3
- package/fesm2022/acorex-charts-hierarchy-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-line-chart.mjs +3 -3
- package/fesm2022/acorex-charts-line-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts.mjs +16 -0
- package/fesm2022/acorex-charts.mjs.map +1 -1
- package/package.json +1 -1
package/bar-chart/index.d.ts
CHANGED
|
@@ -16,6 +16,11 @@ interface AXBarChartData {
|
|
|
16
16
|
tooltipLabel?: string;
|
|
17
17
|
color?: string;
|
|
18
18
|
}
|
|
19
|
+
interface AXBarChartClusteredData {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
chartData: AXBarChartData[];
|
|
23
|
+
}
|
|
19
24
|
/**
|
|
20
25
|
* Bar chart click event interface
|
|
21
26
|
*/
|
|
@@ -57,7 +62,7 @@ interface AXBarChartOption {
|
|
|
57
62
|
* Bar chart data type returned by getValue()
|
|
58
63
|
* Represents an array of bar chart data items
|
|
59
64
|
*/
|
|
60
|
-
type AXBarChartValue = AXBarChartData[];
|
|
65
|
+
type AXBarChartValue = AXBarChartData[] | AXBarChartClusteredData[];
|
|
61
66
|
|
|
62
67
|
/**
|
|
63
68
|
* Bar Chart Component
|
|
@@ -65,7 +70,7 @@ type AXBarChartValue = AXBarChartData[];
|
|
|
65
70
|
*/
|
|
66
71
|
declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXChartLegendCompatible {
|
|
67
72
|
/** Chart data input */
|
|
68
|
-
data: _angular_core.InputSignal<
|
|
73
|
+
data: _angular_core.InputSignal<AXBarChartValue>;
|
|
69
74
|
/** Chart options input */
|
|
70
75
|
options: _angular_core.InputSignal<AXBarChartOption>;
|
|
71
76
|
/** Emitted when a bar is clicked */
|
|
@@ -76,6 +81,7 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
|
|
|
76
81
|
private chart;
|
|
77
82
|
private xScale;
|
|
78
83
|
private yScale;
|
|
84
|
+
private xSubScale;
|
|
79
85
|
private xAxis;
|
|
80
86
|
private yAxis;
|
|
81
87
|
private width;
|
|
@@ -112,6 +118,9 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
|
|
|
112
118
|
animationEasing?: _acorex_cdk_common.AXAnimationEasing;
|
|
113
119
|
}>;
|
|
114
120
|
private hiddenBars;
|
|
121
|
+
private hiddenSeries;
|
|
122
|
+
private isClusteredData;
|
|
123
|
+
private getClusterSeriesLabels;
|
|
115
124
|
constructor();
|
|
116
125
|
ngOnDestroy(): void;
|
|
117
126
|
/**
|
|
@@ -142,14 +151,26 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
|
|
|
142
151
|
* Creates x and y scales for the chart
|
|
143
152
|
*/
|
|
144
153
|
private setupScales;
|
|
154
|
+
/**
|
|
155
|
+
* Creates x and y scales for clustered charts
|
|
156
|
+
*/
|
|
157
|
+
private setupScalesClustered;
|
|
145
158
|
/**
|
|
146
159
|
* Creates x and y axes with grid lines
|
|
147
160
|
*/
|
|
148
161
|
private createAxes;
|
|
162
|
+
/**
|
|
163
|
+
* Creates axes for clustered charts
|
|
164
|
+
*/
|
|
165
|
+
private createAxesClustered;
|
|
149
166
|
/**
|
|
150
167
|
* Renders the bars with animations
|
|
151
168
|
*/
|
|
152
169
|
private renderBars;
|
|
170
|
+
/**
|
|
171
|
+
* Renders bars for clustered charts
|
|
172
|
+
*/
|
|
173
|
+
private renderBarsClustered;
|
|
153
174
|
/**
|
|
154
175
|
* Gets the appropriate D3 easing function based on the option string
|
|
155
176
|
*/
|
|
@@ -208,4 +229,4 @@ type PartialBarChartConfig = Partial<AXBarChartOption>;
|
|
|
208
229
|
declare function barChartConfig(config?: PartialBarChartConfig): AXBarChartOption;
|
|
209
230
|
|
|
210
231
|
export { AXBarChartComponent, AXBarChartDefaultConfig, AX_BAR_CHART_CONFIG, barChartConfig };
|
|
211
|
-
export type { AXBarChartClickEvent, AXBarChartData, AXBarChartOption, AXBarChartValue, PartialBarChartConfig };
|
|
232
|
+
export type { AXBarChartClickEvent, AXBarChartClusteredData, AXBarChartData, AXBarChartOption, AXBarChartValue, PartialBarChartConfig };
|