@acorex/charts 21.0.3-next.25 → 21.0.3-next.28
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/{types/acorex-charts-bar-chart.d.ts → bar-chart/index.d.ts} +3 -28
- package/{types/acorex-charts-donut-chart.d.ts → donut-chart/index.d.ts} +4 -22
- package/fesm2022/acorex-charts-bar-chart.mjs +66 -91
- package/fesm2022/acorex-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-chart-legend.mjs +13 -13
- package/fesm2022/acorex-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/acorex-charts-chart-tooltip.mjs +11 -11
- package/fesm2022/acorex-charts-chart-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-charts-donut-chart.mjs +50 -75
- package/fesm2022/acorex-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-funnel-chart.mjs +19 -19
- package/fesm2022/acorex-charts-funnel-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-gauge-chart.mjs +64 -45
- package/fesm2022/acorex-charts-gauge-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-heatmap-chart.mjs +16 -19
- package/fesm2022/acorex-charts-heatmap-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-hierarchy-chart.mjs +39 -80
- package/fesm2022/acorex-charts-hierarchy-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts-line-chart.mjs +42 -109
- package/fesm2022/acorex-charts-line-chart.mjs.map +1 -1
- package/fesm2022/acorex-charts.mjs +69 -5
- package/fesm2022/acorex-charts.mjs.map +1 -1
- package/{types/acorex-charts-funnel-chart.d.ts → funnel-chart/index.d.ts} +3 -25
- package/{types/acorex-charts-gauge-chart.d.ts → gauge-chart/index.d.ts} +6 -21
- package/{types/acorex-charts-heatmap-chart.d.ts → heatmap-chart/index.d.ts} +2 -28
- package/{types/acorex-charts-hierarchy-chart.d.ts → hierarchy-chart/index.d.ts} +2 -27
- package/{types/acorex-charts.d.ts → index.d.ts} +52 -2
- package/{types/acorex-charts-line-chart.d.ts → line-chart/index.d.ts} +2 -38
- package/package.json +15 -16
- /package/{types/acorex-charts-chart-legend.d.ts → chart-legend/index.d.ts} +0 -0
- /package/{types/acorex-charts-chart-tooltip.d.ts → chart-tooltip/index.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AXChartComponent, AX_CHART_COLOR_PALETTE, getChartColor, getEasingFunction, computeTooltipPosition } from '@acorex/charts';
|
|
1
|
+
import { AX_CHART_DEFAULT_MESSAGES, AXChartComponent, AX_CHART_COLOR_PALETTE, mergeChartOptions, createChartInstanceId, mergeChartMessages, getChartColor, renderChartEmptyMessage, getEasingFunction, computeTooltipPosition } from '@acorex/charts';
|
|
2
2
|
import { AXChartTooltipComponent } from '@acorex/charts/chart-tooltip';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { InjectionToken, inject, ChangeDetectorRef, input, output, viewChild, signal, computed, afterNextRender, effect, untracked, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
@@ -11,12 +11,8 @@ const AXDonutChartDefaultConfig = {
|
|
|
11
11
|
animationDuration: 800,
|
|
12
12
|
animationEasing: 'cubic-out',
|
|
13
13
|
messages: {
|
|
14
|
-
|
|
15
|
-
noDataHelp: 'Please provide data to display the chart',
|
|
16
|
-
allHidden: 'All segments are hidden',
|
|
17
|
-
allHiddenHelp: 'Please toggle visibility of at least one segment',
|
|
14
|
+
...AX_CHART_DEFAULT_MESSAGES,
|
|
18
15
|
noDataIcon: 'fa-light fa-chart-pie',
|
|
19
|
-
allHiddenIcon: 'fa-light fa-eye-slash',
|
|
20
16
|
},
|
|
21
17
|
};
|
|
22
18
|
const AX_DONUT_CHART_CONFIG = new InjectionToken('AX_DONUT_CHART_CONFIG', {
|
|
@@ -24,11 +20,14 @@ const AX_DONUT_CHART_CONFIG = new InjectionToken('AX_DONUT_CHART_CONFIG', {
|
|
|
24
20
|
factory: () => AXDonutChartDefaultConfig,
|
|
25
21
|
});
|
|
26
22
|
function donutChartConfig(config = {}) {
|
|
27
|
-
|
|
23
|
+
return {
|
|
28
24
|
...AXDonutChartDefaultConfig,
|
|
29
25
|
...config,
|
|
26
|
+
messages: {
|
|
27
|
+
...AXDonutChartDefaultConfig.messages,
|
|
28
|
+
...config.messages,
|
|
29
|
+
},
|
|
30
30
|
};
|
|
31
|
-
return result;
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
/**
|
|
@@ -40,9 +39,9 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
40
39
|
cdr = inject(ChangeDetectorRef);
|
|
41
40
|
// Inputs
|
|
42
41
|
/** Chart data input */
|
|
43
|
-
data = input([], ...(ngDevMode ? [{ debugName: "data" }] :
|
|
42
|
+
data = input([], ...(ngDevMode ? [{ debugName: "data" }] : []));
|
|
44
43
|
/** Chart options input */
|
|
45
|
-
options = input({}, ...(ngDevMode ? [{ debugName: "options" }] :
|
|
44
|
+
options = input({}, ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
46
45
|
// Outputs
|
|
47
46
|
/** Emitted when a segment is clicked */
|
|
48
47
|
segmentClick = output();
|
|
@@ -61,19 +60,19 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
61
60
|
pieData = [];
|
|
62
61
|
// State management
|
|
63
62
|
hiddenSegments = new Set();
|
|
64
|
-
_initialized = signal(false, ...(ngDevMode ? [{ debugName: "_initialized" }] :
|
|
65
|
-
_rendered = signal(false, ...(ngDevMode ? [{ debugName: "_rendered" }] :
|
|
66
|
-
_isInitialAnimating = signal(false, ...(ngDevMode ? [{ debugName: "_isInitialAnimating" }] :
|
|
67
|
-
_currentlyHighlightedSegment = signal(null, ...(ngDevMode ? [{ debugName: "_currentlyHighlightedSegment" }] :
|
|
63
|
+
_initialized = signal(false, ...(ngDevMode ? [{ debugName: "_initialized" }] : []));
|
|
64
|
+
_rendered = signal(false, ...(ngDevMode ? [{ debugName: "_rendered" }] : []));
|
|
65
|
+
_isInitialAnimating = signal(false, ...(ngDevMode ? [{ debugName: "_isInitialAnimating" }] : []));
|
|
66
|
+
_currentlyHighlightedSegment = signal(null, ...(ngDevMode ? [{ debugName: "_currentlyHighlightedSegment" }] : []));
|
|
68
67
|
// Tooltip state
|
|
69
|
-
_tooltipVisible = signal(false, ...(ngDevMode ? [{ debugName: "_tooltipVisible" }] :
|
|
70
|
-
_tooltipPosition = signal({ x: 0, y: 0 }, ...(ngDevMode ? [{ debugName: "_tooltipPosition" }] :
|
|
68
|
+
_tooltipVisible = signal(false, ...(ngDevMode ? [{ debugName: "_tooltipVisible" }] : []));
|
|
69
|
+
_tooltipPosition = signal({ x: 0, y: 0 }, ...(ngDevMode ? [{ debugName: "_tooltipPosition" }] : []));
|
|
71
70
|
_tooltipData = signal({
|
|
72
71
|
title: '',
|
|
73
72
|
value: 0,
|
|
74
73
|
percentage: '0%',
|
|
75
74
|
color: '',
|
|
76
|
-
}, ...(ngDevMode ? [{ debugName: "_tooltipData" }] :
|
|
75
|
+
}, ...(ngDevMode ? [{ debugName: "_tooltipData" }] : []));
|
|
77
76
|
_tooltipRafId = null;
|
|
78
77
|
_pendingTooltipCoords = null;
|
|
79
78
|
// Public computed properties for the template
|
|
@@ -85,12 +84,7 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
85
84
|
// Inject the chart colors
|
|
86
85
|
chartColors = inject(AX_CHART_COLOR_PALETTE);
|
|
87
86
|
// Computed configuration options
|
|
88
|
-
effectiveOptions = computed(() => {
|
|
89
|
-
return {
|
|
90
|
-
...this.configToken,
|
|
91
|
-
...this.options(),
|
|
92
|
-
};
|
|
93
|
-
}, ...(ngDevMode ? [{ debugName: "effectiveOptions" }] : /* istanbul ignore next */ []));
|
|
87
|
+
effectiveOptions = computed(() => mergeChartOptions(this.configToken, this.options()), ...(ngDevMode ? [{ debugName: "effectiveOptions" }] : []));
|
|
94
88
|
// Constants
|
|
95
89
|
TOOLTIP_GAP = 10;
|
|
96
90
|
HIGHLIGHT_TRANSITION_DURATION = 150;
|
|
@@ -102,25 +96,16 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
102
96
|
CHART_INSET = 12;
|
|
103
97
|
DIMMED_OPACITY = 0.5;
|
|
104
98
|
VISIBLE_OPACITY = 1;
|
|
99
|
+
instanceId = createChartInstanceId('ax-donut');
|
|
100
|
+
get segmentShadowFilterId() {
|
|
101
|
+
return `${this.instanceId}-segment-shadow`;
|
|
102
|
+
}
|
|
105
103
|
// Messages with defaults
|
|
106
|
-
effectiveMessages = computed(() => {
|
|
107
|
-
const defaultMessages = {
|
|
108
|
-
noData: 'No data available',
|
|
109
|
-
noDataHelp: 'Please provide data to display the chart',
|
|
110
|
-
allHidden: 'All segments are hidden',
|
|
111
|
-
allHiddenHelp: 'Please toggle visibility of at least one segment',
|
|
112
|
-
noDataIcon: 'fa-light fa-chart-pie',
|
|
113
|
-
allHiddenIcon: 'fa-light fa-eye-slash',
|
|
114
|
-
};
|
|
115
|
-
return {
|
|
116
|
-
...defaultMessages,
|
|
117
|
-
...this.effectiveOptions().messages,
|
|
118
|
-
};
|
|
119
|
-
}, ...(ngDevMode ? [{ debugName: "effectiveMessages" }] : /* istanbul ignore next */ []));
|
|
104
|
+
effectiveMessages = computed(() => mergeChartMessages(this.configToken.messages, this.options()?.messages), ...(ngDevMode ? [{ debugName: "effectiveMessages" }] : []));
|
|
120
105
|
// Data accessor for handling different incoming data formats
|
|
121
106
|
chartDataArray = computed(() => {
|
|
122
107
|
return this.data() || [];
|
|
123
|
-
}, ...(ngDevMode ? [{ debugName: "chartDataArray" }] :
|
|
108
|
+
}, ...(ngDevMode ? [{ debugName: "chartDataArray" }] : []));
|
|
124
109
|
// Color accessor method
|
|
125
110
|
getColor(index) {
|
|
126
111
|
return getChartColor(index, this.chartColors);
|
|
@@ -147,7 +132,7 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
147
132
|
this.updateChart();
|
|
148
133
|
}
|
|
149
134
|
});
|
|
150
|
-
}, ...(ngDevMode ? [{ debugName: "dataChangeEffect" }] :
|
|
135
|
+
}, ...(ngDevMode ? [{ debugName: "dataChangeEffect" }] : []));
|
|
151
136
|
/**
|
|
152
137
|
* Highlights a specific segment by ID
|
|
153
138
|
* @param id The segment ID to highlight, or null to clear highlight
|
|
@@ -211,7 +196,7 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
211
196
|
.classed('ax-donut-chart-highlighted', true)
|
|
212
197
|
.transition(this.HIGHLIGHT_TRANSITION_NAME)
|
|
213
198
|
.duration(this.HIGHLIGHT_TRANSITION_DURATION)
|
|
214
|
-
.style('filter',
|
|
199
|
+
.style('filter', `url(#${this.segmentShadowFilterId})`)
|
|
215
200
|
.style('opacity', this.VISIBLE_OPACITY);
|
|
216
201
|
}
|
|
217
202
|
getSegmentDataById(segmentId) {
|
|
@@ -235,7 +220,7 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
235
220
|
// Clear only chart SVG and message containers (preserve tooltip component)
|
|
236
221
|
this.d3
|
|
237
222
|
?.select(this.chartContainerEl().nativeElement)
|
|
238
|
-
.selectAll('svg, .ax-chart-message-container, .ax-donut-chart-no-data-message')
|
|
223
|
+
.selectAll('svg, .ax-chart-empty, .ax-chart-message-container, .ax-donut-chart-no-data-message')
|
|
239
224
|
.remove();
|
|
240
225
|
// Force full redraw
|
|
241
226
|
setTimeout(() => {
|
|
@@ -316,7 +301,7 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
316
301
|
* Clears the chart container
|
|
317
302
|
*/
|
|
318
303
|
clearChart(container) {
|
|
319
|
-
this.d3.select(container).selectAll('svg, .ax-chart-message-container, .ax-donut-chart-no-data-message').remove();
|
|
304
|
+
this.d3.select(container).selectAll('svg, .ax-chart-empty, .ax-chart-message-container, .ax-donut-chart-no-data-message').remove();
|
|
320
305
|
this._tooltipVisible.set(false);
|
|
321
306
|
}
|
|
322
307
|
/**
|
|
@@ -325,8 +310,12 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
325
310
|
showNoDataMessage() {
|
|
326
311
|
if (!this.chartContainerEl()?.nativeElement)
|
|
327
312
|
return;
|
|
328
|
-
const
|
|
329
|
-
|
|
313
|
+
const messages = this.effectiveMessages();
|
|
314
|
+
renderChartEmptyMessage(this.d3, this.chartContainerEl().nativeElement, {
|
|
315
|
+
icon: messages.noDataIcon,
|
|
316
|
+
title: messages.noData,
|
|
317
|
+
help: messages.noDataHelp,
|
|
318
|
+
});
|
|
330
319
|
}
|
|
331
320
|
/**
|
|
332
321
|
* Shows a message when all segments are hidden
|
|
@@ -334,24 +323,24 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
334
323
|
showAllSegmentsHiddenMessage() {
|
|
335
324
|
if (!this.chartContainerEl()?.nativeElement)
|
|
336
325
|
return;
|
|
337
|
-
const
|
|
338
|
-
|
|
326
|
+
const messages = this.effectiveMessages();
|
|
327
|
+
renderChartEmptyMessage(this.d3, this.chartContainerEl().nativeElement, {
|
|
328
|
+
icon: messages.allHiddenIcon,
|
|
329
|
+
title: messages.allHidden,
|
|
330
|
+
help: messages.allHiddenHelp,
|
|
331
|
+
});
|
|
339
332
|
}
|
|
340
333
|
/**
|
|
341
334
|
* Setups chart dimensions based on container and options
|
|
342
335
|
*/
|
|
343
336
|
setupDimensions(container, options) {
|
|
344
|
-
const containerWidth = container.clientWidth
|
|
345
|
-
const containerHeight = container.clientHeight
|
|
337
|
+
const containerWidth = Math.max(container.clientWidth, 1);
|
|
338
|
+
const containerHeight = Math.max(container.clientHeight, 1);
|
|
346
339
|
const desiredWidth = options?.width || containerWidth;
|
|
347
340
|
const desiredHeight = options?.height || containerHeight;
|
|
348
|
-
const boundedWidth = Math.max(this.MIN_CHART_DIMENSION, desiredWidth);
|
|
349
|
-
const boundedHeight = Math.max(this.MIN_CHART_DIMENSION, desiredHeight);
|
|
350
341
|
// Keep donut geometry square so side spacing stays visually balanced.
|
|
351
|
-
const chartSize = Math.max(
|
|
352
|
-
|
|
353
|
-
const height = chartSize;
|
|
354
|
-
return { width, height };
|
|
342
|
+
const chartSize = Math.max(1, Math.min(desiredWidth, desiredHeight));
|
|
343
|
+
return { width: chartSize, height: chartSize };
|
|
355
344
|
}
|
|
356
345
|
/**
|
|
357
346
|
* Renders the donut chart with visible data
|
|
@@ -383,7 +372,7 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
383
372
|
.attr('preserveAspectRatio', 'xMidYMid meet');
|
|
384
373
|
// Add drop shadow filter
|
|
385
374
|
const defs = svg.append('defs');
|
|
386
|
-
const filter = defs.append('filter').attr('id',
|
|
375
|
+
const filter = defs.append('filter').attr('id', this.segmentShadowFilterId).attr('height', '130%');
|
|
387
376
|
filter.append('feGaussianBlur').attr('in', 'SourceAlpha').attr('stdDeviation', 2).attr('result', 'blur');
|
|
388
377
|
filter.append('feOffset').attr('in', 'blur').attr('dx', 1).attr('dy', 1).attr('result', 'offsetBlur');
|
|
389
378
|
const feComponentTransfer = filter
|
|
@@ -747,7 +736,7 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
747
736
|
this._pendingTooltipCoords = null;
|
|
748
737
|
const container = this.chartContainerEl()?.nativeElement;
|
|
749
738
|
if (container) {
|
|
750
|
-
this.d3?.select(container).selectAll('svg, .ax-chart-message-container, .ax-donut-chart-no-data-message').remove();
|
|
739
|
+
this.d3?.select(container).selectAll('svg, .ax-chart-empty, .ax-chart-message-container, .ax-donut-chart-no-data-message').remove();
|
|
751
740
|
}
|
|
752
741
|
this.svg = null;
|
|
753
742
|
this.pieData = [];
|
|
@@ -756,20 +745,6 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
756
745
|
this._currentlyHighlightedSegment.set(null);
|
|
757
746
|
}
|
|
758
747
|
// ===== Helper utilities for modularity and maintainability =====
|
|
759
|
-
renderMessage(container, iconClass, messageText, helpText, specificClass) {
|
|
760
|
-
// Clear container area first (preserve tooltip component)
|
|
761
|
-
this.d3.select(container).selectAll('svg, .ax-chart-message-container, .ax-donut-chart-no-data-message').remove();
|
|
762
|
-
const messageContainer = this.d3
|
|
763
|
-
.select(container)
|
|
764
|
-
.append('div')
|
|
765
|
-
.attr('class', `ax-chart-message-container ax-donut-chart-message-background ${specificClass}`);
|
|
766
|
-
messageContainer
|
|
767
|
-
.append('div')
|
|
768
|
-
.attr('class', 'ax-chart-message-icon ax-donut-chart-no-data-icon')
|
|
769
|
-
.html(`<i class="${iconClass} fa-2x"></i>`);
|
|
770
|
-
messageContainer.append('div').attr('class', 'ax-chart-message-text ax-donut-chart-no-data-text').text(messageText);
|
|
771
|
-
messageContainer.append('div').attr('class', 'ax-chart-message-help ax-donut-chart-no-data-help').text(helpText);
|
|
772
|
-
}
|
|
773
748
|
// computeTooltipPosition moved to shared chart utils
|
|
774
749
|
/**
|
|
775
750
|
* Gets an accessibility label describing the donut chart for screen readers
|
|
@@ -820,13 +795,13 @@ class AXDonutChartComponent extends AXChartComponent {
|
|
|
820
795
|
return 0;
|
|
821
796
|
return (this.getSegmentLayoutValue(segmentValue) / layoutTotal) * 100;
|
|
822
797
|
}
|
|
823
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
824
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
798
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDonutChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
799
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.3", type: AXDonutChartComponent, isStandalone: true, selector: "ax-donut-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { segmentClick: "segmentClick", segmentHover: "segmentHover" }, viewQueries: [{ propertyName: "chartContainerEl", first: true, predicate: ["chartContainer"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-donut-chart\" #chartContainer role=\"img\" [attr.aria-label]=\"getAccessibilityLabel()\">\n <!-- Tooltip component -->\n <ax-chart-tooltip\n [visible]=\"tooltipVisible()\"\n [position]=\"tooltipPosition()\"\n [data]=\"tooltipData()\"\n [showPercentage]=\"true\"\n ></ax-chart-tooltip>\n</div>\n", styles: [".ax-chart-empty{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:1rem;pointer-events:none}.ax-chart-empty__card{text-align:center;padding:1.5rem;border-radius:.5rem;border:1px solid rgba(var(--ax-sys-color-surface));width:80%;max-width:300px;box-sizing:border-box}.ax-chart-empty__icon{opacity:.6;margin-bottom:.75rem}.ax-chart-empty__title{font-size:1rem;font-weight:600;margin-bottom:.5rem}.ax-chart-empty__help{font-size:.8rem;opacity:.6}ax-donut-chart{display:block;width:100%;height:100%;min-height:clamp(220px,38vw,360px);box-sizing:border-box;--ax-comp-donut-chart-bg-color: 0, 0, 0, 0;--ax-comp-donut-chart-data-labels-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-donut-chart-value-color: var(--ax-sys-color-on-lightest-surface)}ax-donut-chart .ax-donut-chart{width:100%;height:100%;position:relative;min-height:0;box-sizing:border-box;padding:clamp(.5rem,1.2vw,.875rem);border-radius:.5rem;overflow:hidden;background-color:rgba(var(--ax-comp-donut-chart-bg-color))}ax-donut-chart .ax-donut-chart svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden}ax-donut-chart .ax-donut-chart svg g:has(text){font-family:inherit}\n"], dependencies: [{ kind: "component", type: AXChartTooltipComponent, selector: "ax-chart-tooltip", inputs: ["data", "position", "visible", "showPercentage", "style"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
825
800
|
}
|
|
826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.3", ngImport: i0, type: AXDonutChartComponent, decorators: [{
|
|
827
802
|
type: Component,
|
|
828
|
-
args: [{ selector: 'ax-donut-chart', encapsulation: ViewEncapsulation.None, imports: [AXChartTooltipComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-donut-chart\" #chartContainer role=\"img\" [attr.aria-label]=\"getAccessibilityLabel()\">\n <!-- Tooltip component -->\n <ax-chart-tooltip\n [visible]=\"tooltipVisible()\"\n [position]=\"tooltipPosition()\"\n [data]=\"tooltipData()\"\n [showPercentage]=\"true\"\n ></ax-chart-tooltip>\n</div>\n", styles: ["ax-donut-chart{display:block;width:100%;height:100%;min-height:
|
|
829
|
-
}], ctorParameters: () => []
|
|
803
|
+
args: [{ selector: 'ax-donut-chart', encapsulation: ViewEncapsulation.None, imports: [AXChartTooltipComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-donut-chart\" #chartContainer role=\"img\" [attr.aria-label]=\"getAccessibilityLabel()\">\n <!-- Tooltip component -->\n <ax-chart-tooltip\n [visible]=\"tooltipVisible()\"\n [position]=\"tooltipPosition()\"\n [data]=\"tooltipData()\"\n [showPercentage]=\"true\"\n ></ax-chart-tooltip>\n</div>\n", styles: [".ax-chart-empty{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:1rem;pointer-events:none}.ax-chart-empty__card{text-align:center;padding:1.5rem;border-radius:.5rem;border:1px solid rgba(var(--ax-sys-color-surface));width:80%;max-width:300px;box-sizing:border-box}.ax-chart-empty__icon{opacity:.6;margin-bottom:.75rem}.ax-chart-empty__title{font-size:1rem;font-weight:600;margin-bottom:.5rem}.ax-chart-empty__help{font-size:.8rem;opacity:.6}ax-donut-chart{display:block;width:100%;height:100%;min-height:clamp(220px,38vw,360px);box-sizing:border-box;--ax-comp-donut-chart-bg-color: 0, 0, 0, 0;--ax-comp-donut-chart-data-labels-color: var(--ax-sys-color-on-lightest-surface);--ax-comp-donut-chart-value-color: var(--ax-sys-color-on-lightest-surface)}ax-donut-chart .ax-donut-chart{width:100%;height:100%;position:relative;min-height:0;box-sizing:border-box;padding:clamp(.5rem,1.2vw,.875rem);border-radius:.5rem;overflow:hidden;background-color:rgba(var(--ax-comp-donut-chart-bg-color))}ax-donut-chart .ax-donut-chart svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;overflow:hidden}ax-donut-chart .ax-donut-chart svg g:has(text){font-family:inherit}\n"] }]
|
|
804
|
+
}], ctorParameters: () => [] });
|
|
830
805
|
|
|
831
806
|
/**
|
|
832
807
|
* Generated bundle index. Do not edit.
|