@tectra-ng/charts 0.4.3 → 0.4.5
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/column/README.md +1 -1
- package/combo/README.md +1 -1
- package/core/README.md +1 -0
- package/fesm2022/tectra-ng-charts-bar-list.mjs +3 -3
- package/fesm2022/tectra-ng-charts-boxplot.mjs +3 -3
- package/fesm2022/tectra-ng-charts-bullet.mjs +3 -3
- package/fesm2022/tectra-ng-charts-candlestick.mjs +3 -3
- package/fesm2022/tectra-ng-charts-column.mjs +18 -12
- package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-combo.mjs +27 -17
- package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-core.mjs +70 -44
- package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-funnel.mjs +10 -8
- package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gantt.mjs +5 -5
- package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-gauge.mjs +3 -3
- package/fesm2022/tectra-ng-charts-heatmap.mjs +59 -25
- package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-line.mjs +3 -3
- package/fesm2022/tectra-ng-charts-org-chart.mjs +100 -47
- package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-pie.mjs +40 -20
- package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-radar.mjs +3 -3
- package/fesm2022/tectra-ng-charts-radial-bar.mjs +3 -3
- package/fesm2022/tectra-ng-charts-range-area.mjs +3 -3
- package/fesm2022/tectra-ng-charts-rank-line.mjs +3 -3
- package/fesm2022/tectra-ng-charts-sankey.mjs +3 -3
- package/fesm2022/tectra-ng-charts-scatter.mjs +3 -3
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs +3 -3
- package/fesm2022/tectra-ng-charts-sunburst.mjs +3 -3
- package/fesm2022/tectra-ng-charts-treemap.mjs +6 -6
- package/fesm2022/tectra-ng-charts-waterfall.mjs +21 -12
- package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts.mjs +1 -1
- package/heatmap/README.md +2 -0
- package/org-chart/README.md +7 -2
- package/package.json +5 -5
- package/pie/README.md +1 -1
- package/types/tectra-ng-charts-column.d.ts +6 -0
- package/types/tectra-ng-charts-column.d.ts.map +1 -1
- package/types/tectra-ng-charts-combo.d.ts +6 -0
- package/types/tectra-ng-charts-combo.d.ts.map +1 -1
- package/types/tectra-ng-charts-core.d.ts +22 -2
- package/types/tectra-ng-charts-core.d.ts.map +1 -1
- package/types/tectra-ng-charts-funnel.d.ts +1 -0
- package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
- package/types/tectra-ng-charts-heatmap.d.ts +19 -3
- package/types/tectra-ng-charts-heatmap.d.ts.map +1 -1
- package/types/tectra-ng-charts-org-chart.d.ts +32 -10
- package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
- package/types/tectra-ng-charts-pie.d.ts +1 -0
- package/types/tectra-ng-charts-pie.d.ts.map +1 -1
- package/types/tectra-ng-charts-waterfall.d.ts +4 -0
- package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
- package/types/tectra-ng-charts.d.ts +1 -1
- package/waterfall/README.md +1 -1
package/column/README.md
CHANGED
|
@@ -70,4 +70,4 @@ import { TxColumnChart } from '@tectra-ng/charts/column';
|
|
|
70
70
|
|
|
71
71
|
## Notes
|
|
72
72
|
|
|
73
|
-
Hovering anywhere in a category lays a soft band under it, highlights its columns, fades the others and shows the tooltip beside the cursor (a tap or the keyboard pins it above the column with an arrow); a stack also shows its total. Only the outer end of a stack is rounded and the segments are split by a thin card-coloured gap. Bars grow from the zero line once when the chart appears and slide to new values on change; both are off with reduced motion. The bar width, the gap between grouped bars and the radius come from the `chart.bar` tokens.
|
|
73
|
+
Hovering anywhere in a category lays a soft band under it, highlights its columns, fades the others and shows the tooltip beside the cursor (a tap or the keyboard pins it above the column with an arrow); a stack also shows its total. Only the outer end of a stack is rounded and the segments are split by a thin card-coloured gap. Each bar is one SVG path with its rounded end (`barPath(rect, end, radius)` of `@tectra-ng/charts/core` draws it; the radius shrinks to fit a thin or short bar), so the fill and the gap outline share one shape; `unstyled` draws square bars. Bars grow from the zero line once when the chart appears and slide to new values on change; both are off with reduced motion. The bar width, the gap between grouped bars and the radius come from the `chart.bar` tokens.
|
package/combo/README.md
CHANGED
|
@@ -80,4 +80,4 @@ import { TxComboChart } from '@tectra-ng/charts/combo';
|
|
|
80
80
|
|
|
81
81
|
## Notes
|
|
82
82
|
|
|
83
|
-
The ticks of the second axis stand on the grid lines of the main one, and zero sits on one line for both, so there is one grid and no double lines; with `y2Min` / `y2Max` the second axis keeps its own ticks. Hovering anywhere in a category lays a soft band under it, highlights its columns, fades the others and marks the line values; the tooltip follows the mouse (with the keyboard or a tap it stands above the highest of them). Columns grow once when the chart appears and lines draw in from the left; both slide to new values on change and are off with reduced motion.
|
|
83
|
+
The ticks of the second axis stand on the grid lines of the main one, and zero sits on one line for both, so there is one grid and no double lines; with `y2Min` / `y2Max` the second axis keeps its own ticks. Hovering anywhere in a category lays a soft band under it, highlights its columns, fades the others and marks the line values; the tooltip follows the mouse (with the keyboard or a tap it stands above the highest of them). Each column is one SVG path with its rounded end (`barPath` of `@tectra-ng/charts/core`), so the fill and the gap outline of a stack share one shape; `unstyled` draws square columns. Columns grow once when the chart appears and lines draw in from the left; both slide to new values on change and are off with reduced motion.
|
package/core/README.md
CHANGED
|
@@ -36,6 +36,7 @@ import { linearScale, niceDomain, chartNumberFormatter, TxChartSeries } from '@t
|
|
|
36
36
|
| Function | What it does |
|
|
37
37
|
|---|---|
|
|
38
38
|
| `linePath(points, curve)`, `areaPath(top, bottom, curve)` | SVG paths; `null` points split the path; curves `smooth` (monotone), `straight`, `step` |
|
|
39
|
+
| `barPath(rect, end, radius?)` | SVG path of a bar with the two corners of one `end` (`top`, `bottom`, `left`, `right`) or `all` four rounded, the radius shrunk to fit; `null` keeps it square. The column, combo and waterfall charts draw their bars with it, so a stroke follows the rounded fill |
|
|
39
40
|
| `stackValues(series, 'normal' \| '100%')` | `[from, to]` per value; positive and negative values stack apart |
|
|
40
41
|
| `largestTriangleThreeBuckets(points, threshold)`, `decimateSeries(points, threshold)` | Thin long series and keep their shape |
|
|
41
42
|
| `normalizeSeries(series, categories, xType)` | Turns `TxChartSeries[]` into labels, x values and a value table |
|
|
@@ -56,7 +56,7 @@ var TxBarList = class TxBarList {
|
|
|
56
56
|
skeletonRows = computed(() => Array.from({ length: Math.min(SKELETON_ROWS, Math.max(1, this.limit())) }, (_, index) => index), ...ngDevMode ? [{ debugName: "skeletonRows" }] : /* istanbul ignore next */ []);
|
|
57
57
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
58
58
|
minVersion: "12.0.0",
|
|
59
|
-
version: "22.2.
|
|
59
|
+
version: "22.2.6",
|
|
60
60
|
ngImport: i0,
|
|
61
61
|
type: TxBarList,
|
|
62
62
|
deps: [],
|
|
@@ -64,7 +64,7 @@ var TxBarList = class TxBarList {
|
|
|
64
64
|
});
|
|
65
65
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
66
66
|
minVersion: "17.0.0",
|
|
67
|
-
version: "22.2.
|
|
67
|
+
version: "22.2.6",
|
|
68
68
|
type: TxBarList,
|
|
69
69
|
isStandalone: true,
|
|
70
70
|
selector: "tx-bar-list",
|
|
@@ -200,7 +200,7 @@ var TxBarList = class TxBarList {
|
|
|
200
200
|
};
|
|
201
201
|
i0.ɵɵngDeclareClassMetadata({
|
|
202
202
|
minVersion: "12.0.0",
|
|
203
|
-
version: "22.2.
|
|
203
|
+
version: "22.2.6",
|
|
204
204
|
ngImport: i0,
|
|
205
205
|
type: TxBarList,
|
|
206
206
|
decorators: [{
|
|
@@ -385,7 +385,7 @@ var TxBoxplotChart = class TxBoxplotChart {
|
|
|
385
385
|
}
|
|
386
386
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
387
387
|
minVersion: "12.0.0",
|
|
388
|
-
version: "22.2.
|
|
388
|
+
version: "22.2.6",
|
|
389
389
|
ngImport: i0,
|
|
390
390
|
type: TxBoxplotChart,
|
|
391
391
|
deps: [],
|
|
@@ -393,7 +393,7 @@ var TxBoxplotChart = class TxBoxplotChart {
|
|
|
393
393
|
});
|
|
394
394
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
395
395
|
minVersion: "17.0.0",
|
|
396
|
-
version: "22.2.
|
|
396
|
+
version: "22.2.6",
|
|
397
397
|
type: TxBoxplotChart,
|
|
398
398
|
isStandalone: true,
|
|
399
399
|
selector: "tx-boxplot-chart",
|
|
@@ -662,7 +662,7 @@ var TxBoxplotChart = class TxBoxplotChart {
|
|
|
662
662
|
};
|
|
663
663
|
i0.ɵɵngDeclareClassMetadata({
|
|
664
664
|
minVersion: "12.0.0",
|
|
665
|
-
version: "22.2.
|
|
665
|
+
version: "22.2.6",
|
|
666
666
|
ngImport: i0,
|
|
667
667
|
type: TxBoxplotChart,
|
|
668
668
|
decorators: [{
|
|
@@ -270,7 +270,7 @@ var TxBulletChart = class TxBulletChart {
|
|
|
270
270
|
}
|
|
271
271
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
272
272
|
minVersion: "12.0.0",
|
|
273
|
-
version: "22.2.
|
|
273
|
+
version: "22.2.6",
|
|
274
274
|
ngImport: i0,
|
|
275
275
|
type: TxBulletChart,
|
|
276
276
|
deps: [],
|
|
@@ -278,7 +278,7 @@ var TxBulletChart = class TxBulletChart {
|
|
|
278
278
|
});
|
|
279
279
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
280
280
|
minVersion: "17.0.0",
|
|
281
|
-
version: "22.2.
|
|
281
|
+
version: "22.2.6",
|
|
282
282
|
type: TxBulletChart,
|
|
283
283
|
isStandalone: true,
|
|
284
284
|
selector: "tx-bullet-chart",
|
|
@@ -495,7 +495,7 @@ var TxBulletChart = class TxBulletChart {
|
|
|
495
495
|
};
|
|
496
496
|
i0.ɵɵngDeclareClassMetadata({
|
|
497
497
|
minVersion: "12.0.0",
|
|
498
|
-
version: "22.2.
|
|
498
|
+
version: "22.2.6",
|
|
499
499
|
ngImport: i0,
|
|
500
500
|
type: TxBulletChart,
|
|
501
501
|
decorators: [{
|
|
@@ -349,7 +349,7 @@ var TxCandlestickChart = class TxCandlestickChart {
|
|
|
349
349
|
}
|
|
350
350
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
351
351
|
minVersion: "12.0.0",
|
|
352
|
-
version: "22.2.
|
|
352
|
+
version: "22.2.6",
|
|
353
353
|
ngImport: i0,
|
|
354
354
|
type: TxCandlestickChart,
|
|
355
355
|
deps: [],
|
|
@@ -357,7 +357,7 @@ var TxCandlestickChart = class TxCandlestickChart {
|
|
|
357
357
|
});
|
|
358
358
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
359
359
|
minVersion: "17.0.0",
|
|
360
|
-
version: "22.2.
|
|
360
|
+
version: "22.2.6",
|
|
361
361
|
type: TxCandlestickChart,
|
|
362
362
|
isStandalone: true,
|
|
363
363
|
selector: "tx-candlestick-chart",
|
|
@@ -594,7 +594,7 @@ var TxCandlestickChart = class TxCandlestickChart {
|
|
|
594
594
|
};
|
|
595
595
|
i0.ɵɵngDeclareClassMetadata({
|
|
596
596
|
minVersion: "12.0.0",
|
|
597
|
-
version: "22.2.
|
|
597
|
+
version: "22.2.6",
|
|
598
598
|
ngImport: i0,
|
|
599
599
|
type: TxCandlestickChart,
|
|
600
600
|
decorators: [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TxChartAnnotations, TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartLegendTemplate, TxChartTooltipTemplate, cartesianLayout, chartAnnotationShapes, chartBandRect, chartCategoryIndex, chartNumberFormatter, chartSummary, chartTable, cycleIndex, extent, hasChartData, initialChartSize, injectChartEntrance, normalizeSeries, readTokenNumber, seriesColor, stackExtent, stackValues, stepIndex, textWidth, toggleKey } from "@tectra-ng/charts/core";
|
|
1
|
+
import { TxChartAnnotations, TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartLegendTemplate, TxChartTooltipTemplate, barPath, cartesianLayout, chartAnnotationShapes, chartBandRect, chartCategoryIndex, chartNumberFormatter, chartSummary, chartTable, cycleIndex, extent, hasChartData, initialChartSize, injectChartEntrance, normalizeSeries, parseRatio, readTokenNumber, seriesColor, stackExtent, stackValues, stepIndex, textWidth, toggleKey } from "@tectra-ng/charts/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { ChangeDetectionStrategy, Component, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
|
|
4
4
|
import { injectPassThrough, injectTokens, injectUnstyled } from "@tectra-ng/core/config";
|
|
@@ -49,6 +49,7 @@ function columnBars(input) {
|
|
|
49
49
|
series: seriesIndex,
|
|
50
50
|
index,
|
|
51
51
|
...rect,
|
|
52
|
+
path: barPath(rect, end, input.barRadius),
|
|
52
53
|
color: seriesColor(input.colors[seriesIndex], seriesIndex),
|
|
53
54
|
end,
|
|
54
55
|
dir: horizontal ? positive ? "right" : "left" : positive ? "up" : "down",
|
|
@@ -69,6 +70,7 @@ const COLUMN_THEME = { chart: chartTokens };
|
|
|
69
70
|
const DEFAULT_WIDTH = .56;
|
|
70
71
|
const DEFAULT_HORIZONTAL_WIDTH = .64;
|
|
71
72
|
const DEFAULT_GROUP_GAP = 3;
|
|
73
|
+
const DEFAULT_RADIUS = 5;
|
|
72
74
|
const LABEL_FONT_SIZE = 11;
|
|
73
75
|
const EDGE_SLACK = 8;
|
|
74
76
|
var TxColumnChart = class TxColumnChart {
|
|
@@ -153,8 +155,10 @@ var TxColumnChart = class TxColumnChart {
|
|
|
153
155
|
geometry = signal({
|
|
154
156
|
width: DEFAULT_WIDTH,
|
|
155
157
|
horizontalWidth: DEFAULT_HORIZONTAL_WIDTH,
|
|
156
|
-
gap: DEFAULT_GROUP_GAP
|
|
158
|
+
gap: DEFAULT_GROUP_GAP,
|
|
159
|
+
radius: DEFAULT_RADIUS
|
|
157
160
|
}, ...ngDevMode ? [{ debugName: "geometry" }] : /* istanbul ignore next */ []);
|
|
161
|
+
barRadius = computed(() => this.isUnstyled() ? 0 : parseRatio(this.dt()?.bar?.radius, this.geometry().radius), ...ngDevMode ? [{ debugName: "barRadius" }] : /* istanbul ignore next */ []);
|
|
158
162
|
intl = computed(() => this.locale.locale().intl, ...ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []);
|
|
159
163
|
list = computed(() => this.series() ?? [], ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
|
|
160
164
|
table = computed(() => normalizeSeries(this.list(), this.categories() ?? [], "category"), ...ngDevMode ? [{ debugName: "table" }] : /* istanbul ignore next */ []);
|
|
@@ -238,7 +242,8 @@ var TxColumnChart = class TxColumnChart {
|
|
|
238
242
|
}
|
|
239
243
|
return format(value, series, index);
|
|
240
244
|
} : null,
|
|
241
|
-
labelFontSize: LABEL_FONT_SIZE
|
|
245
|
+
labelFontSize: LABEL_FONT_SIZE,
|
|
246
|
+
barRadius: this.barRadius()
|
|
242
247
|
});
|
|
243
248
|
}, ...ngDevMode ? [{ debugName: "bars" }] : /* istanbul ignore next */ []);
|
|
244
249
|
columns = computed(() => {
|
|
@@ -477,14 +482,15 @@ var TxColumnChart = class TxColumnChart {
|
|
|
477
482
|
const next = {
|
|
478
483
|
width: readTokenNumber(element, "--tx-chart-bar-width", DEFAULT_WIDTH),
|
|
479
484
|
horizontalWidth: readTokenNumber(element, "--tx-chart-bar-horizontal-width", DEFAULT_HORIZONTAL_WIDTH),
|
|
480
|
-
gap: readTokenNumber(element, "--tx-chart-bar-group-gap", DEFAULT_GROUP_GAP)
|
|
485
|
+
gap: readTokenNumber(element, "--tx-chart-bar-group-gap", DEFAULT_GROUP_GAP),
|
|
486
|
+
radius: readTokenNumber(element, "--tx-chart-bar-radius", DEFAULT_RADIUS)
|
|
481
487
|
};
|
|
482
488
|
const current = this.geometry();
|
|
483
|
-
if (current.width !== next.width || current.horizontalWidth !== next.horizontalWidth || current.gap !== next.gap) this.geometry.set(next);
|
|
489
|
+
if (current.width !== next.width || current.horizontalWidth !== next.horizontalWidth || current.gap !== next.gap || current.radius !== next.radius) this.geometry.set(next);
|
|
484
490
|
}
|
|
485
491
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
486
492
|
minVersion: "12.0.0",
|
|
487
|
-
version: "22.2.
|
|
493
|
+
version: "22.2.6",
|
|
488
494
|
ngImport: i0,
|
|
489
495
|
type: TxColumnChart,
|
|
490
496
|
deps: [],
|
|
@@ -492,7 +498,7 @@ var TxColumnChart = class TxColumnChart {
|
|
|
492
498
|
});
|
|
493
499
|
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
494
500
|
minVersion: "17.0.0",
|
|
495
|
-
version: "22.2.
|
|
501
|
+
version: "22.2.6",
|
|
496
502
|
type: TxColumnChart,
|
|
497
503
|
isStandalone: true,
|
|
498
504
|
selector: "tx-column-chart",
|
|
@@ -769,8 +775,8 @@ var TxColumnChart = class TxColumnChart {
|
|
|
769
775
|
isSignal: true
|
|
770
776
|
}],
|
|
771
777
|
ngImport: i0,
|
|
772
|
-
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:
|
|
773
|
-
styles: [":host{display:block;min-width:0}:host(.tx-column-chart--fill){height:100%}.tx-column-chart__bar{fill:var(--tx-column-chart-color);transform-box:fill-box}.tx-column-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-column-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-column-chart__bar[data-dir=right]{transform-origin:0 50%}.tx-column-chart__bar[data-dir=left]{transform-origin:100% 50%}.tx-column-chart__label{pointer-events:none}:host([data-styled]) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-
|
|
778
|
+
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:path\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-chart__bar--active]=\"isActive(bar.index, bar.series)\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-series]=\"bar.series\"\n [attr.data-index]=\"bar.index\"\n [attr.data-end]=\"bar.end\"\n [attr.data-dir]=\"bar.dir\"\n [style.--tx-column-chart-order]=\"bar.index\"\n [attr.d]=\"bar.path\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n",
|
|
779
|
+
styles: [":host{display:block;min-width:0}:host(.tx-column-chart--fill){height:100%}.tx-column-chart__bar{fill:var(--tx-column-chart-color);transform-box:fill-box}.tx-column-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-column-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-column-chart__bar[data-dir=right]{transform-origin:0 50%}.tx-column-chart__bar[data-dir=left]{transform-origin:100% 50%}.tx-column-chart__label{pointer-events:none}:host([data-styled]) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label{fill:var(--tx-chart-bar-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums;transition:opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label--outside{fill:var(--tx-chart-bar-outside-label-color)}:host([data-styled].tx-column-chart--stacked) .tx-column-chart__bar{stroke:var(--tx-chart-bar-segment-gap-color);stroke-width:var(--tx-chart-bar-segment-gap)}:host([data-styled].tx-column-chart--active) .tx-column-chart__bar:not(.tx-column-chart__bar--active),:host([data-styled].tx-column-chart--focused) .tx-column-chart__bar:not(.tx-column-chart__bar--focused){fill:color-mix(in oklab,var(--tx-column-chart-color) var(--tx-chart-bar-dimmed-strength),var(--tx-chart-bar-dimmed-base))}:host([data-styled].tx-column-chart--morph) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,d var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar{animation:tx-column-chart-grow-y var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-column-chart-order, 0) * var(--tx-chart-motion-stagger))}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar:is([data-dir=left],[data-dir=right]){animation-name:tx-column-chart-grow-x}:host([data-styled].tx-column-chart--entering) .tx-column-chart__labels{animation:tx-column-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-column-chart-grow-y{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-column-chart-grow-x{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes tx-column-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-column-chart__bar,:host([data-styled]) .tx-column-chart__labels,:host([data-styled]) .tx-column-chart__label{transition:none;animation:none}}\n"],
|
|
774
780
|
dependencies: [
|
|
775
781
|
{
|
|
776
782
|
kind: "component",
|
|
@@ -850,7 +856,7 @@ var TxColumnChart = class TxColumnChart {
|
|
|
850
856
|
};
|
|
851
857
|
i0.ɵɵngDeclareClassMetadata({
|
|
852
858
|
minVersion: "12.0.0",
|
|
853
|
-
version: "22.2.
|
|
859
|
+
version: "22.2.6",
|
|
854
860
|
ngImport: i0,
|
|
855
861
|
type: TxColumnChart,
|
|
856
862
|
decorators: [{
|
|
@@ -878,8 +884,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
878
884
|
"[class.tx-column-chart--active]": "active() !== null"
|
|
879
885
|
},
|
|
880
886
|
viewProviders: [provideTxIconDefaults(COLUMN_ICON_DEFAULTS)],
|
|
881
|
-
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:
|
|
882
|
-
styles: [":host{display:block;min-width:0}:host(.tx-column-chart--fill){height:100%}.tx-column-chart__bar{fill:var(--tx-column-chart-color);transform-box:fill-box}.tx-column-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-column-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-column-chart__bar[data-dir=right]{transform-origin:0 50%}.tx-column-chart__bar[data-dir=left]{transform-origin:100% 50%}.tx-column-chart__label{pointer-events:none}:host([data-styled]) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-
|
|
887
|
+
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:path\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-chart__bar--active]=\"isActive(bar.index, bar.series)\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-series]=\"bar.series\"\n [attr.data-index]=\"bar.index\"\n [attr.data-end]=\"bar.end\"\n [attr.data-dir]=\"bar.dir\"\n [style.--tx-column-chart-order]=\"bar.index\"\n [attr.d]=\"bar.path\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n",
|
|
888
|
+
styles: [":host{display:block;min-width:0}:host(.tx-column-chart--fill){height:100%}.tx-column-chart__bar{fill:var(--tx-column-chart-color);transform-box:fill-box}.tx-column-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-column-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-column-chart__bar[data-dir=right]{transform-origin:0 50%}.tx-column-chart__bar[data-dir=left]{transform-origin:100% 50%}.tx-column-chart__label{pointer-events:none}:host([data-styled]) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label{fill:var(--tx-chart-bar-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums;transition:opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label--outside{fill:var(--tx-chart-bar-outside-label-color)}:host([data-styled].tx-column-chart--stacked) .tx-column-chart__bar{stroke:var(--tx-chart-bar-segment-gap-color);stroke-width:var(--tx-chart-bar-segment-gap)}:host([data-styled].tx-column-chart--active) .tx-column-chart__bar:not(.tx-column-chart__bar--active),:host([data-styled].tx-column-chart--focused) .tx-column-chart__bar:not(.tx-column-chart__bar--focused){fill:color-mix(in oklab,var(--tx-column-chart-color) var(--tx-chart-bar-dimmed-strength),var(--tx-chart-bar-dimmed-base))}:host([data-styled].tx-column-chart--morph) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,d var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar{animation:tx-column-chart-grow-y var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-column-chart-order, 0) * var(--tx-chart-motion-stagger))}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar:is([data-dir=left],[data-dir=right]){animation-name:tx-column-chart-grow-x}:host([data-styled].tx-column-chart--entering) .tx-column-chart__labels{animation:tx-column-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-column-chart-grow-y{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-column-chart-grow-x{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes tx-column-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-column-chart__bar,:host([data-styled]) .tx-column-chart__labels,:host([data-styled]) .tx-column-chart__label{transition:none;animation:none}}\n"]
|
|
883
889
|
}]
|
|
884
890
|
}],
|
|
885
891
|
ctorParameters: () => [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-charts-column.mjs","names":[],"sources":["../../../../packages/charts/column/src/column-layout.ts","../../../../packages/charts/column/src/column.icons.ts","../../../../packages/charts/column/src/column.theme.ts","../../../../packages/charts/column/src/column-chart.component.ts","../../../../packages/charts/column/src/column-chart.component.html"],"sourcesContent":["import { TxBandScale, TxContinuousScale, TxStackedValue, seriesColor, textWidth } from '@tectra-ng/charts/core';\nimport { TxColumnChartBar } from './column-chart.types';\n\n/** Everything `columnBars` needs to lay the bars out: scales, series values and label settings. */\nexport interface TxColumnLayoutInput {\n /** Category scale. */\n band: TxBandScale;\n /** Value scale. */\n value: TxContinuousScale;\n /** Draws horizontal bars with the categories on the left. */\n horizontal: boolean;\n /** Stacks the series instead of placing them side by side. */\n stacked: boolean;\n /** Share of the category band the bars of one category take (0.05 to 1). */\n widthRatio: number;\n /** Gap in px between grouped bars of one category. */\n groupGap: number;\n /** Values per series and category; `null` for a gap. */\n values: readonly (readonly (number | null)[])[];\n /** Start and end of each value in a stack, per series and category. */\n stackedValues: readonly TxStackedValue[][];\n /** Indexes of the series that are not hidden. */\n visible: readonly number[];\n /** Own colors per series; the palette fills the gaps. */\n colors: readonly (string | undefined)[];\n /** Formats the data label of a value; `null` draws no labels. */\n labels: ((value: number, series: number, index: number) => string) | null;\n /** Font size of data labels in px, used to check whether they fit. */\n labelFontSize: number;\n}\n\n/** Lays out the bars of a grouped or stacked column chart, with their data labels. */\nexport function columnBars(input: TxColumnLayoutInput): TxColumnChartBar[] {\n const { band, value, horizontal, stacked, visible } = input;\n const group = band.bandwidth * Math.min(1, Math.max(0.05, input.widthRatio));\n const slots = stacked ? 1 : Math.max(1, visible.length);\n const slotSize = (group - input.groupGap * (slots - 1)) / slots;\n const bars: TxColumnChartBar[] = [];\n const outermost = new Map<string, number>();\n\n if (stacked) {\n for (const seriesIndex of visible) {\n input.stackedValues[seriesIndex]?.forEach((entry, index) => {\n if (!entry || entry[0] === entry[1]) return;\n const sign = entry[1] > entry[0] ? 1 : -1;\n outermost.set(`${index}:${sign}`, seriesIndex);\n });\n }\n }\n\n visible.forEach((seriesIndex, slot) => {\n const raw = input.values[seriesIndex] ?? [];\n raw.forEach((rawValue, index) => {\n if (rawValue === null || rawValue === undefined) return;\n const base = value.domain[0] > 0 ? value.domain[0] : value.domain[1] < 0 ? value.domain[1] : 0;\n const [from, to] = stacked ? (input.stackedValues[seriesIndex]?.[index] ?? [0, 0]) : [base, rawValue];\n if (from === to) return;\n const start = band.center(index) - group / 2 + (stacked ? 0 : slot * (slotSize + input.groupGap));\n const a = value.map(from);\n const b = value.map(to);\n const positive = to >= from;\n const isEnd = stacked ? outermost.get(`${index}:${positive ? 1 : -1}`) === seriesIndex : true;\n const end = !isEnd || from === to ? null : horizontal ? (positive ? 'right' : 'left') : positive ? 'top' : 'bottom';\n const rect = horizontal\n ? { x: Math.min(a, b), y: start, width: Math.abs(b - a), height: slotSize }\n : { x: start, y: Math.min(a, b), width: slotSize, height: Math.abs(b - a) };\n const text = input.labels ? input.labels(rawValue, seriesIndex, index) : null;\n const textSize = text ? textWidth(text, input.labelFontSize) : 0;\n const inside = !!text && (horizontal ? rect.width >= textSize + 8 && rect.height >= input.labelFontSize + 2 : rect.height >= input.labelFontSize + 6 && rect.width >= textSize + 4);\n const outsideAllowed = !stacked;\n const showLabel = !!text && (inside || outsideAllowed);\n bars.push({\n key: `${seriesIndex}:${index}`,\n series: seriesIndex,\n index,\n ...rect,\n color: seriesColor(input.colors[seriesIndex], seriesIndex),\n end,\n dir: horizontal ? (positive ? 'right' : 'left') : positive ? 'up' : 'down',\n label: showLabel ? text : null,\n labelX: horizontal ? (inside ? rect.x + rect.width / 2 : positive ? rect.x + rect.width + 4 : rect.x - 4) : rect.x + rect.width / 2,\n labelY: horizontal ? rect.y + rect.height / 2 : inside ? rect.y + rect.height / 2 : positive ? rect.y - 4 : rect.y + rect.height + 4,\n inside,\n });\n });\n });\n return bars;\n}\n","import { TxIconSet, txIconChartBar, txIconDot } from '@tectra-ng/icons';\n\nexport const COLUMN_ICON_DEFAULTS: TxIconSet = {\n 'chart-bar': txIconChartBar,\n dot: txIconDot,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const COLUMN_THEME = {\n chart: chartTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n linkedSignal,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n TxBandScale,\n TxChartActive,\n TxChartAxes,\n TxChartFrame,\n TxChartHoverBand,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartLegendAlign,\n TxChartLegendItem,\n TxChartLegendPosition,\n TxChartLegendTemplate,\n TxChartLegendVariant,\n TxChartPointerEvent,\n TxChartSeries,\n TxChartTooltipData,\n TxChartTooltipFormatter,\n TxChartTooltipMode,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n TxChartXAxisPosition,\n TxChartYAxisPosition,\n TxValueScaleKind,\n cartesianLayout,\n chartBandRect,\n chartNumberFormatter,\n chartSummary,\n chartTable,\n cycleIndex,\n extent,\n hasChartData,\n initialChartSize,\n injectChartEntrance,\n normalizeSeries,\n readTokenNumber,\n seriesColor,\n stackExtent,\n stackValues,\n stepIndex,\n toggleKey,\n TxChartAnnotation,\n TxChartAnnotations,\n chartAnnotationShapes,\n chartCategoryIndex,\n} from '@tectra-ng/charts/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, formatMessage, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { columnBars } from './column-layout';\nimport { TxColumnChartPart, TxColumnChartPointEvent, TxColumnChartSeriesToggle, TxColumnChartStackType } from './column-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { COLUMN_ICON_DEFAULTS } from './column.icons';\nimport { COLUMN_THEME } from './column.theme';\n\nconst DEFAULT_WIDTH = 0.56;\nconst DEFAULT_HORIZONTAL_WIDTH = 0.64;\nconst DEFAULT_GROUP_GAP = 3;\nconst LABEL_FONT_SIZE = 11;\nconst EDGE_SLACK = 8;\n\n@Component({\n selector: 'tx-column-chart',\n imports: [TxChartFrame, TxChartAxes, TxChartHoverBand, TxChartAnnotations],\n templateUrl: './column-chart.component.html',\n styleUrl: './column-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-column-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-orientation]': 'horizontal() ? \"horizontal\" : \"vertical\"',\n '[class.tx-column-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-column-chart--entering]': 'entrance.active()',\n '[class.tx-column-chart--morph]': 'morph()',\n '[class.tx-column-chart--focused]': 'focusedSeries() !== null',\n '[class.tx-column-chart--stacked]': 'isStacked()',\n '[class.tx-column-chart--active]': 'active() !== null',\n },\n viewProviders: [provideTxIconDefaults(COLUMN_ICON_DEFAULTS)],\n})\nexport class TxColumnChart {\n private readonly columnTheme = injectTokens(COLUMN_THEME);\n\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly series = input<readonly TxChartSeries[] | null | undefined>([]);\n readonly categories = input<readonly (string | number | Date)[] | null | undefined>([]);\n readonly annotations = input<readonly TxChartAnnotation[] | null | undefined>([]);\n readonly stacked = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly stackType = input<TxColumnChartStackType>('normal');\n readonly height = input<TxChartHeight>(350);\n readonly horizontal = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dataLabels = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showLegend = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly legendPosition = input<TxChartLegendPosition>('top');\n readonly legendAlign = input<TxChartLegendAlign>('start');\n readonly legendVariant = input<TxChartLegendVariant>('dot');\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly tooltipMode = input<TxChartTooltipMode>('shared');\n readonly tooltipFormatter = input<TxChartTooltipFormatter | null>(null);\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly yScale = input<TxValueScaleKind>('linear');\n readonly yMin = input<number | undefined>(undefined);\n readonly yMax = input<number | undefined>(undefined);\n readonly xAxisTitle = input('');\n readonly yAxisTitle = input('');\n readonly grid = input<TxChartGridMode | undefined>(undefined);\n readonly xAxisPosition = input<TxChartXAxisPosition>('bottom');\n readonly yAxisPosition = input<TxChartYAxisPosition>('left');\n readonly labelMode = input<TxChartLabelMode>('auto');\n readonly maxLabelWidth = input(220);\n readonly toolbar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxColumnChartPart, TxColumnChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly seriesToggle = output<TxColumnChartSeriesToggle>();\n readonly barClick = output<TxColumnChartPointEvent>();\n\n readonly legendTemplate = contentChild(TxChartLegendTemplate);\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('columnChart', this, this.pt, this.ptOptions);\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-chart'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n readonly entrance = injectChartEntrance();\n readonly morph = signal(false);\n\n readonly hidden = signal<ReadonlySet<string>>(new Set());\n readonly focusedSeries = signal<number | null>(null);\n readonly active = signal<TxChartActive | null>(null);\n readonly geometry = signal({ width: DEFAULT_WIDTH, horizontalWidth: DEFAULT_HORIZONTAL_WIDTH, gap: DEFAULT_GROUP_GAP });\n\n private readonly intl = computed(() => this.locale.locale().intl);\n private readonly list = computed(() => this.series() ?? []);\n\n readonly table = computed(() => normalizeSeries(this.list(), this.categories() ?? [], 'category'));\n readonly keys = computed(() => this.list().map((item, index) => `${index}:${item.name}`));\n readonly visibleIndexes = computed(() => this.keys().flatMap((key, index) => (this.hidden().has(key) ? [] : [index])));\n readonly isEmpty = computed(() => !this.list().length || !hasChartData(this.table().values));\n readonly isStacked = computed(() => this.stacked() || this.stackType() === '100%');\n readonly legendShown = computed(() => this.showLegend() && this.list().length > 1);\n readonly size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, undefined, this.toolbar()));\n\n readonly stackedValues = computed(() => {\n const visible = new Set(this.visibleIndexes());\n return stackValues(\n this.table().values.map((row, index) => (visible.has(index) ? row : row.map(() => null))),\n this.stackType(),\n );\n });\n\n readonly valueExtent = computed<[number, number]>(() => {\n if (this.isStacked()) {\n return stackExtent(this.stackedValues());\n }\n return extent(this.visibleIndexes().flatMap((index) => this.table().values[index])) ?? [0, 1];\n });\n\n readonly percentStack = computed(() => this.isStacked() && this.stackType() === '100%');\n readonly axisFormat = computed<TxChartValueFormat>(() => (this.percentStack() && this.valueFormat() === 'number' ? 'percent' : this.valueFormat()));\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const horizontal = this.horizontal();\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n horizontal,\n category: {\n kind: 'band',\n labels: this.table().labels,\n count: this.table().labels.length,\n labelMode: this.labelMode(),\n maxLabelWidth: this.maxLabelWidth(),\n title: this.xAxisTitle() || undefined,\n },\n value: {\n extent: this.valueExtent(),\n scale: this.yScale(),\n format: this.axisFormat(),\n includeZero: true,\n min: this.percentStack() ? 0 : this.yMin(),\n max: this.percentStack() ? 100 : this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid() ?? 'value',\n xAxisPosition: this.xAxisPosition(),\n yAxisPosition: this.yAxisPosition(),\n });\n });\n\n readonly band = computed(() => this.layout().category as TxBandScale);\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n\n readonly formatValue = computed(() => {\n const custom = this.tooltipFormatter();\n const format = this.valueFormatter();\n return (value: number, seriesIndex: number, dataPointIndex: number) => (custom ? custom(value, { seriesIndex, dataPointIndex }) : format(value));\n });\n\n readonly bars = computed(() => {\n const layout = this.layout();\n const geometry = this.geometry();\n const format = this.formatValue();\n const percent = this.percentStack();\n const stacked = this.stackedValues();\n return columnBars({\n band: this.band(),\n value: layout.value,\n horizontal: this.horizontal(),\n stacked: this.isStacked(),\n widthRatio: this.horizontal() ? geometry.horizontalWidth : geometry.width,\n groupGap: geometry.gap,\n values: this.table().values,\n stackedValues: stacked,\n visible: this.visibleIndexes(),\n colors: this.list().map((item) => item.color),\n labels: this.dataLabels()\n ? (value, series, index) => {\n if (percent) {\n const entry = stacked[series]?.[index];\n return entry ? chartNumberFormatter(this.intl(), 'percent')(entry[1] - entry[0]) : '';\n }\n return format(value, series, index);\n }\n : null,\n labelFontSize: LABEL_FONT_SIZE,\n });\n });\n\n readonly columns = computed(() => {\n const boxes = new Map<number, { x1: number; y1: number; x2: number; y2: number; negative: boolean }>();\n for (const bar of this.bars()) {\n const box = boxes.get(bar.index);\n const negative = bar.end === 'bottom' || bar.end === 'left';\n if (!box) {\n boxes.set(bar.index, { x1: bar.x, y1: bar.y, x2: bar.x + bar.width, y2: bar.y + bar.height, negative });\n } else {\n box.x1 = Math.min(box.x1, bar.x);\n box.y1 = Math.min(box.y1, bar.y);\n box.x2 = Math.max(box.x2, bar.x + bar.width);\n box.y2 = Math.max(box.y2, bar.y + bar.height);\n box.negative = box.negative && negative;\n }\n }\n return boxes;\n });\n\n readonly hoverBand = computed(() => {\n const active = this.active();\n return active ? chartBandRect(this.band(), active.index, this.layout().plot, this.horizontal()) : null;\n });\n\n readonly annotationShapes = computed(() => {\n const layout = this.layout();\n const band = this.band();\n const labels = this.table().labels;\n return chartAnnotationShapes(this.annotations(), {\n plot: layout.plot,\n horizontal: this.horizontal(),\n x: (value) => {\n const index = chartCategoryIndex(value, labels);\n return index < 0 ? null : band.center(index);\n },\n xSpan: (value) => {\n const index = chartCategoryIndex(value, labels);\n return index < 0 ? null : [band.start(index) - (band.step - band.bandwidth) / 2, band.start(index) + band.step - (band.step - band.bandwidth) / 2];\n },\n y: (value) => layout.value.map(value),\n });\n });\n\n readonly legendItems = computed<TxChartLegendItem[]>(() => {\n const stat = this.legendVariant() === 'stat';\n const active = this.active();\n const format = this.valueFormatter();\n return this.list().map((item, index) => {\n const values = this.table().values[index] ?? [];\n const raw = active ? values[active.index] : values.reduce<number>((sum, value) => sum + (value ?? 0), 0);\n return {\n key: this.keys()[index],\n label: item.name,\n color: seriesColor(item.color, index),\n hidden: this.hidden().has(this.keys()[index]),\n ...(stat\n ? { value: raw === null || raw === undefined ? '—' : format(raw), caption: active ? this.table().labels[active.index] : this.translations().chartTotal }\n : {}),\n };\n });\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const active = this.active();\n if (!active || !this.showTooltip() || this.isEmpty() || this.legendVariant() === 'stat') return null;\n const format = this.formatValue();\n const rows = this.visibleIndexes()\n .filter((seriesIndex) => this.tooltipMode() === 'shared' || seriesIndex === active.series)\n .flatMap((seriesIndex) => {\n const raw = this.table().values[seriesIndex][active.index];\n if (raw === null) return [];\n return [\n {\n label: this.list()[seriesIndex].name,\n value: format(raw, seriesIndex, active.index),\n color: seriesColor(this.list()[seriesIndex].color, seriesIndex),\n raw,\n seriesIndex,\n active: seriesIndex === active.series,\n },\n ];\n });\n if (!rows.length) return null;\n const box = this.columns().get(active.index);\n if (!box) return null;\n const single = this.tooltipMode() === 'single';\n const bar = single ? this.bars().find((item) => item.index === active.index && item.series === active.series) : null;\n const area = bar ? { x1: bar.x, y1: bar.y, x2: bar.x + bar.width, y2: bar.y + bar.height, negative: bar.end === 'bottom' || bar.end === 'left' } : box;\n const total = this.isStacked() && rows.length > 1 ? this.valueFormatter()(rows.reduce((sum, row) => sum + (row.raw ?? 0), 0)) : undefined;\n const title = this.table().labels[active.index] ?? '';\n if (this.horizontal()) {\n return area.negative\n ? { title, rows, total, index: active.index, x: area.x1, y: (area.y1 + area.y2) / 2, placement: 'left' }\n : { title, rows, total, index: active.index, x: area.x2, y: (area.y1 + area.y2) / 2, placement: 'right' };\n }\n return area.negative\n ? { title, rows, total, index: active.index, x: (area.x1 + area.x2) / 2, y: area.y2, placement: 'bottom' }\n : { title, rows, total, index: active.index, x: (area.x1 + area.x2) / 2, y: area.y1, placement: 'top' };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const values = this.table().values.flat().filter((value): value is number => value !== null);\n const range = extent(values);\n const format = this.valueFormatter();\n const text = chartSummary(t, this.intl(), this.horizontal() ? t.chartBar : t.chartColumn, this.list().length, this.table().labels.length, range ? [format(range[0]), format(range[1])] : null);\n return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;\n });\n\n readonly dataTable = computed(() =>\n chartTable(\n this.table().labels,\n this.list().map((item, index) => ({ name: item.name, values: this.table().values[index] })),\n this.valueFormatter(),\n ),\n );\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => {\n this.dt();\n this.readGeometry();\n });\n }\n\n isActive(index: number, series: number): boolean {\n const active = this.active();\n return !!active && active.index === index && (this.tooltipMode() === 'shared' || active.series === series);\n }\n\n onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.active.set(null);\n return;\n }\n const index = this.categoryAt(event.x, event.y);\n if (index < 0) {\n this.active.set(null);\n return;\n }\n const series = this.seriesAt(index, event.x, event.y);\n this.active.set({ index, series, pointerY: null, keyboard: false });\n if (event.type === 'click' && series >= 0) {\n this.barClick.emit({ seriesIndex: series, dataPointIndex: index, value: this.table().values[series][index], category: this.table().labels[index] ?? '' });\n }\n }\n\n private categoryAt(x: number, y: number): number {\n const plot = this.layout().plot;\n const inside = x >= plot.left - EDGE_SLACK && x <= plot.left + plot.width + EDGE_SLACK && y >= plot.top - EDGE_SLACK && y <= plot.top + plot.height + EDGE_SLACK;\n return inside && this.table().labels.length ? this.band().indexAt(this.horizontal() ? y : x) : -1;\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const count = this.table().labels.length;\n const current = this.active();\n const visible = this.visibleIndexes();\n const horizontal = this.horizontal();\n let index = current?.index ?? -1;\n let series = current?.series ?? visible[0] ?? -1;\n const seriesKeys = horizontal ? ['ArrowLeft', 'ArrowRight'] : ['ArrowUp', 'ArrowDown'];\n if (seriesKeys.includes(event.key)) {\n series = cycleIndex(series, event.key === seriesKeys[1] ? 1 : -1, visible);\n index = Math.max(0, index);\n } else {\n index = horizontal ? stepIndex(event.key, index, count, 'ArrowDown', 'ArrowUp') : stepIndex(event.key, index, count);\n }\n if (index < 0 || series < 0) return;\n this.active.set({ index, series, pointerY: null, keyboard: true });\n const value = this.table().values[series][index];\n this.frame()?.announce(\n formatMessage(this.translations().chartPoint, {\n series: this.list()[series].name,\n category: this.table().labels[index] ?? '',\n value: value === null ? '—' : this.formatValue()(value, series, index),\n }),\n );\n }\n\n onLegendToggle(key: string): void {\n const index = this.keys().indexOf(key);\n this.hidden.update((keys) => toggleKey(keys, key));\n this.seriesToggle.emit({ seriesIndex: index, name: this.list()[index]?.name ?? '', hidden: this.hidden().has(key) });\n }\n\n onLegendHover(key: string | null): void {\n const index = key === null ? -1 : this.keys().indexOf(key);\n this.focusedSeries.set(index >= 0 && !this.hidden().has(key ?? '') ? index : null);\n }\n\n private seriesAt(index: number, x: number, y: number): number {\n const hit = this.bars().find((bar) => bar.index === index && x >= bar.x && x <= bar.x + bar.width && y >= bar.y && y <= bar.y + bar.height);\n if (hit) return hit.series;\n const candidates = this.bars().filter((bar) => bar.index === index);\n if (!this.isStacked() && candidates.length) {\n const along = (bar: (typeof candidates)[number]) => (this.horizontal() ? Math.abs(y - bar.y - bar.height / 2) : Math.abs(x - bar.x - bar.width / 2));\n return candidates.reduce((best, bar) => (along(bar) < along(best) ? bar : best)).series;\n }\n return candidates[candidates.length - 1]?.series ?? this.visibleIndexes()[0] ?? -1;\n }\n\n private readGeometry(): void {\n const element = this.host.nativeElement;\n const next = {\n width: readTokenNumber(element, '--tx-chart-bar-width', DEFAULT_WIDTH),\n horizontalWidth: readTokenNumber(element, '--tx-chart-bar-horizontal-width', DEFAULT_HORIZONTAL_WIDTH),\n gap: readTokenNumber(element, '--tx-chart-bar-group-gap', DEFAULT_GROUP_GAP),\n };\n const current = this.geometry();\n if (current.width !== next.width || current.horizontalWidth !== next.horizontalWidth || current.gap !== next.gap) {\n this.geometry.set(next);\n }\n }\n}\n","<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-chart__bar--active]=\"isActive(bar.index, bar.series)\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-series]=\"bar.series\"\n [attr.data-index]=\"bar.index\"\n [attr.data-end]=\"bar.end\"\n [attr.data-dir]=\"bar.dir\"\n [style.--tx-column-chart-order]=\"bar.index\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n"],"mappings":";;;;;;;;AAgCA,SAAgB,WAAW,OAA0B;CACnD,MAAM,EAAE,MAAM,OAAO,YAAY,SAAS,YAAY;CACtD,MAAM,QAAQ,KAAK,YAAY,KAAK,IAAI,GAAG,KAAK,IAAI,KAAM,MAAM,UAAU,CAAC;CAC3E,MAAM,QAAQ,UAAU,IAAI,KAAK,IAAI,GAAG,QAAQ,MAAM;CACtD,MAAM,YAAY,QAAQ,MAAM,YAAY,QAAQ,MAAM;CAC1D,MAAM,OAA2B,CAAA;CACjC,MAAM,4BAAY,IAAI,IAAG;CAEzB,IAAI,SACF,KAAK,MAAM,eAAe,SACxB,MAAM,cAAc,YAAY,EAAE,SAAS,OAAO,UAAS;EACzD,IAAI,CAAC,SAAS,MAAM,OAAO,MAAM,IAAI;EACrC,MAAM,OAAO,MAAM,KAAK,MAAM,KAAK,IAAI;EACvC,UAAU,IAAI,GAAG,MAAK,GAAI,QAAQ,WAAW;CAC/C,CAAC;CAIL,QAAQ,SAAS,aAAa,SAAQ;EAEpC,CADY,MAAM,OAAO,gBAAgB,CAAA,EACzC,CAAI,SAAS,UAAU,UAAS;GAC9B,IAAI,aAAa,QAAQ,aAAa,QAAW;GACjD,MAAM,OAAO,MAAM,OAAO,KAAK,IAAI,MAAM,OA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;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,cAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,UAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,qBAAqB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBACpB,sBAAsB,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,OAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAC3B,YAAY,GAAA,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-column.mjs","names":[],"sources":["../../../../packages/charts/column/src/column-layout.ts","../../../../packages/charts/column/src/column.icons.ts","../../../../packages/charts/column/src/column.theme.ts","../../../../packages/charts/column/src/column-chart.component.ts","../../../../packages/charts/column/src/column-chart.component.html"],"sourcesContent":["import { TxBandScale, TxContinuousScale, TxStackedValue, barPath, seriesColor, textWidth } from '@tectra-ng/charts/core';\nimport { TxColumnChartBar } from './column-chart.types';\n\n/** Everything `columnBars` needs to lay the bars out: scales, series values and label settings. */\nexport interface TxColumnLayoutInput {\n /** Category scale. */\n band: TxBandScale;\n /** Value scale. */\n value: TxContinuousScale;\n /** Draws horizontal bars with the categories on the left. */\n horizontal: boolean;\n /** Stacks the series instead of placing them side by side. */\n stacked: boolean;\n /** Share of the category band the bars of one category take (0.05 to 1). */\n widthRatio: number;\n /** Gap in px between grouped bars of one category. */\n groupGap: number;\n /** Values per series and category; `null` for a gap. */\n values: readonly (readonly (number | null)[])[];\n /** Start and end of each value in a stack, per series and category. */\n stackedValues: readonly TxStackedValue[][];\n /** Indexes of the series that are not hidden. */\n visible: readonly number[];\n /** Own colors per series; the palette fills the gaps. */\n colors: readonly (string | undefined)[];\n /** Formats the data label of a value; `null` draws no labels. */\n labels: ((value: number, series: number, index: number) => string) | null;\n /** Font size of data labels in px, used to check whether they fit. */\n labelFontSize: number;\n /** Corner radius in px of the outer end of a bar (0 by default); it shrinks to fit a thin or short bar. */\n barRadius?: number;\n}\n\n/** Lays out the bars of a grouped or stacked column chart, with their data labels. */\nexport function columnBars(input: TxColumnLayoutInput): TxColumnChartBar[] {\n const { band, value, horizontal, stacked, visible } = input;\n const group = band.bandwidth * Math.min(1, Math.max(0.05, input.widthRatio));\n const slots = stacked ? 1 : Math.max(1, visible.length);\n const slotSize = (group - input.groupGap * (slots - 1)) / slots;\n const bars: TxColumnChartBar[] = [];\n const outermost = new Map<string, number>();\n\n if (stacked) {\n for (const seriesIndex of visible) {\n input.stackedValues[seriesIndex]?.forEach((entry, index) => {\n if (!entry || entry[0] === entry[1]) return;\n const sign = entry[1] > entry[0] ? 1 : -1;\n outermost.set(`${index}:${sign}`, seriesIndex);\n });\n }\n }\n\n visible.forEach((seriesIndex, slot) => {\n const raw = input.values[seriesIndex] ?? [];\n raw.forEach((rawValue, index) => {\n if (rawValue === null || rawValue === undefined) return;\n const base = value.domain[0] > 0 ? value.domain[0] : value.domain[1] < 0 ? value.domain[1] : 0;\n const [from, to] = stacked ? (input.stackedValues[seriesIndex]?.[index] ?? [0, 0]) : [base, rawValue];\n if (from === to) return;\n const start = band.center(index) - group / 2 + (stacked ? 0 : slot * (slotSize + input.groupGap));\n const a = value.map(from);\n const b = value.map(to);\n const positive = to >= from;\n const isEnd = stacked ? outermost.get(`${index}:${positive ? 1 : -1}`) === seriesIndex : true;\n const end = !isEnd || from === to ? null : horizontal ? (positive ? 'right' : 'left') : positive ? 'top' : 'bottom';\n const rect = horizontal\n ? { x: Math.min(a, b), y: start, width: Math.abs(b - a), height: slotSize }\n : { x: start, y: Math.min(a, b), width: slotSize, height: Math.abs(b - a) };\n const text = input.labels ? input.labels(rawValue, seriesIndex, index) : null;\n const textSize = text ? textWidth(text, input.labelFontSize) : 0;\n const inside = !!text && (horizontal ? rect.width >= textSize + 8 && rect.height >= input.labelFontSize + 2 : rect.height >= input.labelFontSize + 6 && rect.width >= textSize + 4);\n const outsideAllowed = !stacked;\n const showLabel = !!text && (inside || outsideAllowed);\n bars.push({\n key: `${seriesIndex}:${index}`,\n series: seriesIndex,\n index,\n ...rect,\n path: barPath(rect, end, input.barRadius),\n color: seriesColor(input.colors[seriesIndex], seriesIndex),\n end,\n dir: horizontal ? (positive ? 'right' : 'left') : positive ? 'up' : 'down',\n label: showLabel ? text : null,\n labelX: horizontal ? (inside ? rect.x + rect.width / 2 : positive ? rect.x + rect.width + 4 : rect.x - 4) : rect.x + rect.width / 2,\n labelY: horizontal ? rect.y + rect.height / 2 : inside ? rect.y + rect.height / 2 : positive ? rect.y - 4 : rect.y + rect.height + 4,\n inside,\n });\n });\n });\n return bars;\n}\n","import { TxIconSet, txIconChartBar, txIconDot } from '@tectra-ng/icons';\n\nexport const COLUMN_ICON_DEFAULTS: TxIconSet = {\n 'chart-bar': txIconChartBar,\n dot: txIconDot,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const COLUMN_THEME = {\n chart: chartTokens,\n};\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n linkedSignal,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport {\n TxBandScale,\n TxChartActive,\n TxChartAxes,\n TxChartFrame,\n TxChartHoverBand,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartLegendAlign,\n TxChartLegendItem,\n TxChartLegendPosition,\n TxChartLegendTemplate,\n TxChartLegendVariant,\n TxChartPointerEvent,\n TxChartSeries,\n TxChartTooltipData,\n TxChartTooltipFormatter,\n TxChartTooltipMode,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n TxChartXAxisPosition,\n TxChartYAxisPosition,\n TxValueScaleKind,\n cartesianLayout,\n chartBandRect,\n chartNumberFormatter,\n chartSummary,\n chartTable,\n cycleIndex,\n extent,\n hasChartData,\n initialChartSize,\n injectChartEntrance,\n normalizeSeries,\n parseRatio,\n readTokenNumber,\n seriesColor,\n stackExtent,\n stackValues,\n stepIndex,\n toggleKey,\n TxChartAnnotation,\n TxChartAnnotations,\n chartAnnotationShapes,\n chartCategoryIndex,\n} from '@tectra-ng/charts/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, formatMessage, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { columnBars } from './column-layout';\nimport { TxColumnChartPart, TxColumnChartPointEvent, TxColumnChartSeriesToggle, TxColumnChartStackType } from './column-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { COLUMN_ICON_DEFAULTS } from './column.icons';\nimport { COLUMN_THEME } from './column.theme';\n\nconst DEFAULT_WIDTH = 0.56;\nconst DEFAULT_HORIZONTAL_WIDTH = 0.64;\nconst DEFAULT_GROUP_GAP = 3;\nconst DEFAULT_RADIUS = 5;\nconst LABEL_FONT_SIZE = 11;\nconst EDGE_SLACK = 8;\n\n@Component({\n selector: 'tx-column-chart',\n imports: [TxChartFrame, TxChartAxes, TxChartHoverBand, TxChartAnnotations],\n templateUrl: './column-chart.component.html',\n styleUrl: './column-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-column-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-orientation]': 'horizontal() ? \"horizontal\" : \"vertical\"',\n '[class.tx-column-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-column-chart--entering]': 'entrance.active()',\n '[class.tx-column-chart--morph]': 'morph()',\n '[class.tx-column-chart--focused]': 'focusedSeries() !== null',\n '[class.tx-column-chart--stacked]': 'isStacked()',\n '[class.tx-column-chart--active]': 'active() !== null',\n },\n viewProviders: [provideTxIconDefaults(COLUMN_ICON_DEFAULTS)],\n})\nexport class TxColumnChart {\n private readonly columnTheme = injectTokens(COLUMN_THEME);\n\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly series = input<readonly TxChartSeries[] | null | undefined>([]);\n readonly categories = input<readonly (string | number | Date)[] | null | undefined>([]);\n readonly annotations = input<readonly TxChartAnnotation[] | null | undefined>([]);\n readonly stacked = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly stackType = input<TxColumnChartStackType>('normal');\n readonly height = input<TxChartHeight>(350);\n readonly horizontal = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly dataLabels = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly showLegend = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly legendPosition = input<TxChartLegendPosition>('top');\n readonly legendAlign = input<TxChartLegendAlign>('start');\n readonly legendVariant = input<TxChartLegendVariant>('dot');\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly tooltipMode = input<TxChartTooltipMode>('shared');\n readonly tooltipFormatter = input<TxChartTooltipFormatter | null>(null);\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly yScale = input<TxValueScaleKind>('linear');\n readonly yMin = input<number | undefined>(undefined);\n readonly yMax = input<number | undefined>(undefined);\n readonly xAxisTitle = input('');\n readonly yAxisTitle = input('');\n readonly grid = input<TxChartGridMode | undefined>(undefined);\n readonly xAxisPosition = input<TxChartXAxisPosition>('bottom');\n readonly yAxisPosition = input<TxChartYAxisPosition>('left');\n readonly labelMode = input<TxChartLabelMode>('auto');\n readonly maxLabelWidth = input(220);\n readonly toolbar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxColumnChartPart, TxColumnChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly seriesToggle = output<TxColumnChartSeriesToggle>();\n readonly barClick = output<TxColumnChartPointEvent>();\n\n readonly legendTemplate = contentChild(TxChartLegendTemplate);\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('columnChart', this, this.pt, this.ptOptions);\n readonly tokenStyle = computed(() => toStyleObject(this.dt(), '--tx-chart'));\n readonly hostStyle = computed(() => ({ ...this.tokenStyle(), ...this.passThrough().root?.style }));\n readonly entrance = injectChartEntrance();\n readonly morph = signal(false);\n\n readonly hidden = signal<ReadonlySet<string>>(new Set());\n readonly focusedSeries = signal<number | null>(null);\n readonly active = signal<TxChartActive | null>(null);\n readonly geometry = signal({ width: DEFAULT_WIDTH, horizontalWidth: DEFAULT_HORIZONTAL_WIDTH, gap: DEFAULT_GROUP_GAP, radius: DEFAULT_RADIUS });\n readonly barRadius = computed(() => (this.isUnstyled() ? 0 : parseRatio(this.dt()?.bar?.radius, this.geometry().radius)));\n\n private readonly intl = computed(() => this.locale.locale().intl);\n private readonly list = computed(() => this.series() ?? []);\n\n readonly table = computed(() => normalizeSeries(this.list(), this.categories() ?? [], 'category'));\n readonly keys = computed(() => this.list().map((item, index) => `${index}:${item.name}`));\n readonly visibleIndexes = computed(() => this.keys().flatMap((key, index) => (this.hidden().has(key) ? [] : [index])));\n readonly isEmpty = computed(() => !this.list().length || !hasChartData(this.table().values));\n readonly isStacked = computed(() => this.stacked() || this.stackType() === '100%');\n readonly legendShown = computed(() => this.showLegend() && this.list().length > 1);\n readonly size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, undefined, this.toolbar()));\n\n readonly stackedValues = computed(() => {\n const visible = new Set(this.visibleIndexes());\n return stackValues(\n this.table().values.map((row, index) => (visible.has(index) ? row : row.map(() => null))),\n this.stackType(),\n );\n });\n\n readonly valueExtent = computed<[number, number]>(() => {\n if (this.isStacked()) {\n return stackExtent(this.stackedValues());\n }\n return extent(this.visibleIndexes().flatMap((index) => this.table().values[index])) ?? [0, 1];\n });\n\n readonly percentStack = computed(() => this.isStacked() && this.stackType() === '100%');\n readonly axisFormat = computed<TxChartValueFormat>(() => (this.percentStack() && this.valueFormat() === 'number' ? 'percent' : this.valueFormat()));\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const horizontal = this.horizontal();\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n horizontal,\n category: {\n kind: 'band',\n labels: this.table().labels,\n count: this.table().labels.length,\n labelMode: this.labelMode(),\n maxLabelWidth: this.maxLabelWidth(),\n title: this.xAxisTitle() || undefined,\n },\n value: {\n extent: this.valueExtent(),\n scale: this.yScale(),\n format: this.axisFormat(),\n includeZero: true,\n min: this.percentStack() ? 0 : this.yMin(),\n max: this.percentStack() ? 100 : this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid() ?? 'value',\n xAxisPosition: this.xAxisPosition(),\n yAxisPosition: this.yAxisPosition(),\n });\n });\n\n readonly band = computed(() => this.layout().category as TxBandScale);\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n\n readonly formatValue = computed(() => {\n const custom = this.tooltipFormatter();\n const format = this.valueFormatter();\n return (value: number, seriesIndex: number, dataPointIndex: number) => (custom ? custom(value, { seriesIndex, dataPointIndex }) : format(value));\n });\n\n readonly bars = computed(() => {\n const layout = this.layout();\n const geometry = this.geometry();\n const format = this.formatValue();\n const percent = this.percentStack();\n const stacked = this.stackedValues();\n return columnBars({\n band: this.band(),\n value: layout.value,\n horizontal: this.horizontal(),\n stacked: this.isStacked(),\n widthRatio: this.horizontal() ? geometry.horizontalWidth : geometry.width,\n groupGap: geometry.gap,\n values: this.table().values,\n stackedValues: stacked,\n visible: this.visibleIndexes(),\n colors: this.list().map((item) => item.color),\n labels: this.dataLabels()\n ? (value, series, index) => {\n if (percent) {\n const entry = stacked[series]?.[index];\n return entry ? chartNumberFormatter(this.intl(), 'percent')(entry[1] - entry[0]) : '';\n }\n return format(value, series, index);\n }\n : null,\n labelFontSize: LABEL_FONT_SIZE,\n barRadius: this.barRadius(),\n });\n });\n\n readonly columns = computed(() => {\n const boxes = new Map<number, { x1: number; y1: number; x2: number; y2: number; negative: boolean }>();\n for (const bar of this.bars()) {\n const box = boxes.get(bar.index);\n const negative = bar.end === 'bottom' || bar.end === 'left';\n if (!box) {\n boxes.set(bar.index, { x1: bar.x, y1: bar.y, x2: bar.x + bar.width, y2: bar.y + bar.height, negative });\n } else {\n box.x1 = Math.min(box.x1, bar.x);\n box.y1 = Math.min(box.y1, bar.y);\n box.x2 = Math.max(box.x2, bar.x + bar.width);\n box.y2 = Math.max(box.y2, bar.y + bar.height);\n box.negative = box.negative && negative;\n }\n }\n return boxes;\n });\n\n readonly hoverBand = computed(() => {\n const active = this.active();\n return active ? chartBandRect(this.band(), active.index, this.layout().plot, this.horizontal()) : null;\n });\n\n readonly annotationShapes = computed(() => {\n const layout = this.layout();\n const band = this.band();\n const labels = this.table().labels;\n return chartAnnotationShapes(this.annotations(), {\n plot: layout.plot,\n horizontal: this.horizontal(),\n x: (value) => {\n const index = chartCategoryIndex(value, labels);\n return index < 0 ? null : band.center(index);\n },\n xSpan: (value) => {\n const index = chartCategoryIndex(value, labels);\n return index < 0 ? null : [band.start(index) - (band.step - band.bandwidth) / 2, band.start(index) + band.step - (band.step - band.bandwidth) / 2];\n },\n y: (value) => layout.value.map(value),\n });\n });\n\n readonly legendItems = computed<TxChartLegendItem[]>(() => {\n const stat = this.legendVariant() === 'stat';\n const active = this.active();\n const format = this.valueFormatter();\n return this.list().map((item, index) => {\n const values = this.table().values[index] ?? [];\n const raw = active ? values[active.index] : values.reduce<number>((sum, value) => sum + (value ?? 0), 0);\n return {\n key: this.keys()[index],\n label: item.name,\n color: seriesColor(item.color, index),\n hidden: this.hidden().has(this.keys()[index]),\n ...(stat\n ? { value: raw === null || raw === undefined ? '—' : format(raw), caption: active ? this.table().labels[active.index] : this.translations().chartTotal }\n : {}),\n };\n });\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const active = this.active();\n if (!active || !this.showTooltip() || this.isEmpty() || this.legendVariant() === 'stat') return null;\n const format = this.formatValue();\n const rows = this.visibleIndexes()\n .filter((seriesIndex) => this.tooltipMode() === 'shared' || seriesIndex === active.series)\n .flatMap((seriesIndex) => {\n const raw = this.table().values[seriesIndex][active.index];\n if (raw === null) return [];\n return [\n {\n label: this.list()[seriesIndex].name,\n value: format(raw, seriesIndex, active.index),\n color: seriesColor(this.list()[seriesIndex].color, seriesIndex),\n raw,\n seriesIndex,\n active: seriesIndex === active.series,\n },\n ];\n });\n if (!rows.length) return null;\n const box = this.columns().get(active.index);\n if (!box) return null;\n const single = this.tooltipMode() === 'single';\n const bar = single ? this.bars().find((item) => item.index === active.index && item.series === active.series) : null;\n const area = bar ? { x1: bar.x, y1: bar.y, x2: bar.x + bar.width, y2: bar.y + bar.height, negative: bar.end === 'bottom' || bar.end === 'left' } : box;\n const total = this.isStacked() && rows.length > 1 ? this.valueFormatter()(rows.reduce((sum, row) => sum + (row.raw ?? 0), 0)) : undefined;\n const title = this.table().labels[active.index] ?? '';\n if (this.horizontal()) {\n return area.negative\n ? { title, rows, total, index: active.index, x: area.x1, y: (area.y1 + area.y2) / 2, placement: 'left' }\n : { title, rows, total, index: active.index, x: area.x2, y: (area.y1 + area.y2) / 2, placement: 'right' };\n }\n return area.negative\n ? { title, rows, total, index: active.index, x: (area.x1 + area.x2) / 2, y: area.y2, placement: 'bottom' }\n : { title, rows, total, index: active.index, x: (area.x1 + area.x2) / 2, y: area.y1, placement: 'top' };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const values = this.table().values.flat().filter((value): value is number => value !== null);\n const range = extent(values);\n const format = this.valueFormatter();\n const text = chartSummary(t, this.intl(), this.horizontal() ? t.chartBar : t.chartColumn, this.list().length, this.table().labels.length, range ? [format(range[0]), format(range[1])] : null);\n return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;\n });\n\n readonly dataTable = computed(() =>\n chartTable(\n this.table().labels,\n this.list().map((item, index) => ({ name: item.name, values: this.table().values[index] })),\n this.valueFormatter(),\n ),\n );\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => {\n this.dt();\n this.readGeometry();\n });\n }\n\n isActive(index: number, series: number): boolean {\n const active = this.active();\n return !!active && active.index === index && (this.tooltipMode() === 'shared' || active.series === series);\n }\n\n onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.active.set(null);\n return;\n }\n const index = this.categoryAt(event.x, event.y);\n if (index < 0) {\n this.active.set(null);\n return;\n }\n const series = this.seriesAt(index, event.x, event.y);\n this.active.set({ index, series, pointerY: null, keyboard: false });\n if (event.type === 'click' && series >= 0) {\n this.barClick.emit({ seriesIndex: series, dataPointIndex: index, value: this.table().values[series][index], category: this.table().labels[index] ?? '' });\n }\n }\n\n private categoryAt(x: number, y: number): number {\n const plot = this.layout().plot;\n const inside = x >= plot.left - EDGE_SLACK && x <= plot.left + plot.width + EDGE_SLACK && y >= plot.top - EDGE_SLACK && y <= plot.top + plot.height + EDGE_SLACK;\n return inside && this.table().labels.length ? this.band().indexAt(this.horizontal() ? y : x) : -1;\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const count = this.table().labels.length;\n const current = this.active();\n const visible = this.visibleIndexes();\n const horizontal = this.horizontal();\n let index = current?.index ?? -1;\n let series = current?.series ?? visible[0] ?? -1;\n const seriesKeys = horizontal ? ['ArrowLeft', 'ArrowRight'] : ['ArrowUp', 'ArrowDown'];\n if (seriesKeys.includes(event.key)) {\n series = cycleIndex(series, event.key === seriesKeys[1] ? 1 : -1, visible);\n index = Math.max(0, index);\n } else {\n index = horizontal ? stepIndex(event.key, index, count, 'ArrowDown', 'ArrowUp') : stepIndex(event.key, index, count);\n }\n if (index < 0 || series < 0) return;\n this.active.set({ index, series, pointerY: null, keyboard: true });\n const value = this.table().values[series][index];\n this.frame()?.announce(\n formatMessage(this.translations().chartPoint, {\n series: this.list()[series].name,\n category: this.table().labels[index] ?? '',\n value: value === null ? '—' : this.formatValue()(value, series, index),\n }),\n );\n }\n\n onLegendToggle(key: string): void {\n const index = this.keys().indexOf(key);\n this.hidden.update((keys) => toggleKey(keys, key));\n this.seriesToggle.emit({ seriesIndex: index, name: this.list()[index]?.name ?? '', hidden: this.hidden().has(key) });\n }\n\n onLegendHover(key: string | null): void {\n const index = key === null ? -1 : this.keys().indexOf(key);\n this.focusedSeries.set(index >= 0 && !this.hidden().has(key ?? '') ? index : null);\n }\n\n private seriesAt(index: number, x: number, y: number): number {\n const hit = this.bars().find((bar) => bar.index === index && x >= bar.x && x <= bar.x + bar.width && y >= bar.y && y <= bar.y + bar.height);\n if (hit) return hit.series;\n const candidates = this.bars().filter((bar) => bar.index === index);\n if (!this.isStacked() && candidates.length) {\n const along = (bar: (typeof candidates)[number]) => (this.horizontal() ? Math.abs(y - bar.y - bar.height / 2) : Math.abs(x - bar.x - bar.width / 2));\n return candidates.reduce((best, bar) => (along(bar) < along(best) ? bar : best)).series;\n }\n return candidates[candidates.length - 1]?.series ?? this.visibleIndexes()[0] ?? -1;\n }\n\n private readGeometry(): void {\n const element = this.host.nativeElement;\n const next = {\n width: readTokenNumber(element, '--tx-chart-bar-width', DEFAULT_WIDTH),\n horizontalWidth: readTokenNumber(element, '--tx-chart-bar-horizontal-width', DEFAULT_HORIZONTAL_WIDTH),\n gap: readTokenNumber(element, '--tx-chart-bar-group-gap', DEFAULT_GROUP_GAP),\n radius: readTokenNumber(element, '--tx-chart-bar-radius', DEFAULT_RADIUS),\n };\n const current = this.geometry();\n if (current.width !== next.width || current.horizontalWidth !== next.horizontalWidth || current.gap !== next.gap || current.radius !== next.radius) {\n this.geometry.set(next);\n }\n }\n}\n","<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:path\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-chart__bar--active]=\"isActive(bar.index, bar.series)\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-series]=\"bar.series\"\n [attr.data-index]=\"bar.index\"\n [attr.data-end]=\"bar.end\"\n [attr.data-dir]=\"bar.dir\"\n [style.--tx-column-chart-order]=\"bar.index\"\n [attr.d]=\"bar.path\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n"],"mappings":";;;;;;;;AAkCA,SAAgB,WAAW,OAA0B;CACn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