@acorex/charts 20.1.23 → 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.
@@ -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<AXBarChartData[]>;
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 };