@acorex/charts 20.1.28 → 20.1.32

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.
@@ -69,6 +69,7 @@ interface AXBarChartOption {
69
69
  showDataLabels?: boolean;
70
70
  xAxisLabel?: string;
71
71
  yAxisLabel?: string;
72
+ rotateXAxisLabels?: boolean | 'auto';
72
73
  showTooltip?: boolean;
73
74
  barWidth?: number;
74
75
  cornerRadius?: number;
@@ -105,6 +106,8 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
105
106
  private width;
106
107
  private height;
107
108
  private margin;
109
+ private readonly CHAR_WIDTH_RATIO;
110
+ private readonly TOOLTIP_GAP;
108
111
  private _initialAnimationComplete;
109
112
  private _tooltipVisible;
110
113
  private _tooltipPosition;
@@ -119,7 +122,6 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
119
122
  protected tooltipData: _angular_core.Signal<AXChartTooltipData>;
120
123
  private configToken;
121
124
  private chartColors;
122
- private platform;
123
125
  protected effectiveOptions: _angular_core.Signal<{
124
126
  width?: number;
125
127
  height?: number;
@@ -129,6 +131,7 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
129
131
  showDataLabels?: boolean;
130
132
  xAxisLabel?: string;
131
133
  yAxisLabel?: string;
134
+ rotateXAxisLabels?: boolean | "auto";
132
135
  showTooltip?: boolean;
133
136
  barWidth?: number;
134
137
  cornerRadius?: number;
@@ -157,23 +160,19 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
157
160
  /**
158
161
  * Creates the bar chart SVG and renders all elements
159
162
  */
160
- protected createChart(): void;
163
+ createChart(): void;
161
164
  /**
162
165
  * Updates the chart when inputs change
163
166
  */
164
- protected updateChart(): void;
167
+ updateChart(): void;
165
168
  /**
166
169
  * Cleans up chart resources
167
170
  */
168
- protected cleanupChart(): void;
171
+ cleanupChart(): void;
169
172
  /**
170
173
  * Sets up chart dimensions and creates SVG with responsive attributes
171
174
  */
172
175
  private setupDimensions;
173
- /**
174
- * Calculates chart margins based on options
175
- */
176
- private calculateMargins;
177
176
  /**
178
177
  * Creates x and y scales for the chart
179
178
  */
@@ -209,7 +208,6 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
209
208
  /**
210
209
  * Gets the appropriate D3 easing function based on the option string
211
210
  */
212
- private getEasingFunction;
213
211
  /**
214
212
  * Handles bar hover event and shows tooltip
215
213
  */
@@ -254,6 +252,12 @@ declare class AXBarChartComponent extends NXComponent implements OnDestroy, AXCh
254
252
  * @returns New visibility state (true = visible, false = hidden)
255
253
  */
256
254
  toggleSegment(id: string): boolean;
255
+ private getContainerElement;
256
+ private clearChartArea;
257
+ private getXAxisTickFontSizeBasedOnWidth;
258
+ private getYAxisTickFontSizeBasedOnHeight;
259
+ private buildXAxisCommon;
260
+ private showMessage;
257
261
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXBarChartComponent, never>;
258
262
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXBarChartComponent, "ax-bar-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "barClick": "barClick"; }, never, never, true, never>;
259
263
  }
@@ -166,6 +166,7 @@ declare class AXDonutChartComponent implements OnDestroy, AXChartLegendCompatibl
166
166
  animationEasing?: _acorex_cdk_common.AXAnimationEasing;
167
167
  messages?: AXDonutChartMessages;
168
168
  }>;
169
+ private readonly TOOLTIP_GAP;
169
170
  protected effectiveMessages: _angular_core.Signal<{
170
171
  noData: string;
171
172
  noDataHelp: string;
@@ -234,7 +235,6 @@ declare class AXDonutChartComponent implements OnDestroy, AXChartLegendCompatibl
234
235
  /**
235
236
  * Gets the appropriate D3 easing function based on the option string
236
237
  */
237
- private getEasingFunction;
238
238
  /**
239
239
  * Handle hover effects on a segment
240
240
  */
@@ -260,6 +260,7 @@ declare class AXDonutChartComponent implements OnDestroy, AXChartLegendCompatibl
260
260
  * Cleans up chart resources
261
261
  */
262
262
  private cleanupChart;
263
+ private renderMessage;
263
264
  /**
264
265
  * Gets an accessibility label describing the donut chart for screen readers
265
266
  */