@tectra-ng/charts 0.0.1 → 0.2.0

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.
Files changed (127) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +44 -1
  3. package/bar-list/README.md +30 -0
  4. package/boxplot/README.md +62 -0
  5. package/bullet/README.md +53 -0
  6. package/candlestick/README.md +57 -0
  7. package/column/README.md +73 -0
  8. package/combo/README.md +83 -0
  9. package/core/README.md +62 -0
  10. package/fesm2022/tectra-ng-charts-bar-list.mjs +299 -0
  11. package/fesm2022/tectra-ng-charts-bar-list.mjs.map +1 -0
  12. package/fesm2022/tectra-ng-charts-boxplot.mjs +887 -0
  13. package/fesm2022/tectra-ng-charts-boxplot.mjs.map +1 -0
  14. package/fesm2022/tectra-ng-charts-bullet.mjs +666 -0
  15. package/fesm2022/tectra-ng-charts-bullet.mjs.map +1 -0
  16. package/fesm2022/tectra-ng-charts-candlestick.mjs +778 -0
  17. package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -0
  18. package/fesm2022/tectra-ng-charts-column.mjs +1166 -0
  19. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -0
  20. package/fesm2022/tectra-ng-charts-combo.mjs +1218 -0
  21. package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -0
  22. package/fesm2022/tectra-ng-charts-core.mjs +3679 -0
  23. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -0
  24. package/fesm2022/tectra-ng-charts-funnel.mjs +694 -0
  25. package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -0
  26. package/fesm2022/tectra-ng-charts-gantt.mjs +947 -0
  27. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -0
  28. package/fesm2022/tectra-ng-charts-gauge.mjs +693 -0
  29. package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -0
  30. package/fesm2022/tectra-ng-charts-heatmap.mjs +935 -0
  31. package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -0
  32. package/fesm2022/tectra-ng-charts-line.mjs +1541 -0
  33. package/fesm2022/tectra-ng-charts-line.mjs.map +1 -0
  34. package/fesm2022/tectra-ng-charts-org-chart.mjs +2341 -0
  35. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -0
  36. package/fesm2022/tectra-ng-charts-pie.mjs +1059 -0
  37. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -0
  38. package/fesm2022/tectra-ng-charts-radar.mjs +924 -0
  39. package/fesm2022/tectra-ng-charts-radar.mjs.map +1 -0
  40. package/fesm2022/tectra-ng-charts-radial-bar.mjs +802 -0
  41. package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -0
  42. package/fesm2022/tectra-ng-charts-range-area.mjs +933 -0
  43. package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -0
  44. package/fesm2022/tectra-ng-charts-rank-line.mjs +660 -0
  45. package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -0
  46. package/fesm2022/tectra-ng-charts-sankey.mjs +837 -0
  47. package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -0
  48. package/fesm2022/tectra-ng-charts-scatter.mjs +1174 -0
  49. package/fesm2022/tectra-ng-charts-scatter.mjs.map +1 -0
  50. package/fesm2022/tectra-ng-charts-segmented-bar.mjs +328 -0
  51. package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -0
  52. package/fesm2022/tectra-ng-charts-sunburst.mjs +733 -0
  53. package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -0
  54. package/fesm2022/tectra-ng-charts-treemap.mjs +674 -0
  55. package/fesm2022/tectra-ng-charts-treemap.mjs.map +1 -0
  56. package/fesm2022/tectra-ng-charts-waterfall.mjs +809 -0
  57. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -0
  58. package/fesm2022/tectra-ng-charts.mjs +4 -0
  59. package/fesm2022/tectra-ng-charts.mjs.map +1 -0
  60. package/funnel/README.md +53 -0
  61. package/gantt/README.md +53 -0
  62. package/gauge/README.md +41 -0
  63. package/heatmap/README.md +47 -0
  64. package/line/README.md +86 -0
  65. package/org-chart/README.md +57 -0
  66. package/package.json +173 -4
  67. package/pie/README.md +66 -0
  68. package/radar/README.md +64 -0
  69. package/radial-bar/README.md +62 -0
  70. package/range-area/README.md +66 -0
  71. package/rank-line/README.md +51 -0
  72. package/sankey/README.md +52 -0
  73. package/scatter/README.md +71 -0
  74. package/segmented-bar/README.md +35 -0
  75. package/sunburst/README.md +55 -0
  76. package/treemap/README.md +47 -0
  77. package/types/tectra-ng-charts-bar-list.d.ts +724 -0
  78. package/types/tectra-ng-charts-bar-list.d.ts.map +1 -0
  79. package/types/tectra-ng-charts-boxplot.d.ts +882 -0
  80. package/types/tectra-ng-charts-boxplot.d.ts.map +1 -0
  81. package/types/tectra-ng-charts-bullet.d.ts +833 -0
  82. package/types/tectra-ng-charts-bullet.d.ts.map +1 -0
  83. package/types/tectra-ng-charts-candlestick.d.ts +854 -0
  84. package/types/tectra-ng-charts-candlestick.d.ts.map +1 -0
  85. package/types/tectra-ng-charts-column.d.ts +951 -0
  86. package/types/tectra-ng-charts-column.d.ts.map +1 -0
  87. package/types/tectra-ng-charts-combo.d.ts +987 -0
  88. package/types/tectra-ng-charts-combo.d.ts.map +1 -0
  89. package/types/tectra-ng-charts-core.d.ts +859 -0
  90. package/types/tectra-ng-charts-core.d.ts.map +1 -0
  91. package/types/tectra-ng-charts-funnel.d.ts +857 -0
  92. package/types/tectra-ng-charts-funnel.d.ts.map +1 -0
  93. package/types/tectra-ng-charts-gantt.d.ts +884 -0
  94. package/types/tectra-ng-charts-gantt.d.ts.map +1 -0
  95. package/types/tectra-ng-charts-gauge.d.ts +859 -0
  96. package/types/tectra-ng-charts-gauge.d.ts.map +1 -0
  97. package/types/tectra-ng-charts-heatmap.d.ts +914 -0
  98. package/types/tectra-ng-charts-heatmap.d.ts.map +1 -0
  99. package/types/tectra-ng-charts-line.d.ts +1023 -0
  100. package/types/tectra-ng-charts-line.d.ts.map +1 -0
  101. package/types/tectra-ng-charts-org-chart.d.ts +1017 -0
  102. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -0
  103. package/types/tectra-ng-charts-pie.d.ts +983 -0
  104. package/types/tectra-ng-charts-pie.d.ts.map +1 -0
  105. package/types/tectra-ng-charts-radar.d.ts +903 -0
  106. package/types/tectra-ng-charts-radar.d.ts.map +1 -0
  107. package/types/tectra-ng-charts-radial-bar.d.ts +886 -0
  108. package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -0
  109. package/types/tectra-ng-charts-range-area.d.ts +897 -0
  110. package/types/tectra-ng-charts-range-area.d.ts.map +1 -0
  111. package/types/tectra-ng-charts-rank-line.d.ts +839 -0
  112. package/types/tectra-ng-charts-rank-line.d.ts.map +1 -0
  113. package/types/tectra-ng-charts-sankey.d.ts +866 -0
  114. package/types/tectra-ng-charts-sankey.d.ts.map +1 -0
  115. package/types/tectra-ng-charts-scatter.d.ts +987 -0
  116. package/types/tectra-ng-charts-scatter.d.ts.map +1 -0
  117. package/types/tectra-ng-charts-segmented-bar.d.ts +751 -0
  118. package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -0
  119. package/types/tectra-ng-charts-sunburst.d.ts +864 -0
  120. package/types/tectra-ng-charts-sunburst.d.ts.map +1 -0
  121. package/types/tectra-ng-charts-treemap.d.ts +847 -0
  122. package/types/tectra-ng-charts-treemap.d.ts.map +1 -0
  123. package/types/tectra-ng-charts-waterfall.d.ts +869 -0
  124. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -0
  125. package/types/tectra-ng-charts.d.ts +2 -0
  126. package/types/tectra-ng-charts.d.ts.map +1 -0
  127. package/waterfall/README.md +60 -0
@@ -0,0 +1,1166 @@
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";
2
+ import * as i0 from "@angular/core";
3
+ import { ChangeDetectionStrategy, Component, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
4
+ import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
5
+ import { TxLocaleService, formatMessage, injectTranslations } from "@tectra-ng/core/i18n";
6
+ import { optionalBoolean } from "@tectra-ng/core/utils";
7
+ import { toStyleObject } from "@tectra-ng/themes";
8
+ function columnBars(input) {
9
+ const { band, value, horizontal, stacked, visible } = input;
10
+ const group = band.bandwidth * Math.min(1, Math.max(.05, input.widthRatio));
11
+ const slots = stacked ? 1 : Math.max(1, visible.length);
12
+ const slotSize = (group - input.groupGap * (slots - 1)) / slots;
13
+ const bars = [];
14
+ const outermost = /* @__PURE__ */ new Map();
15
+ if (stacked) for (const seriesIndex of visible) input.stackedValues[seriesIndex]?.forEach((entry, index) => {
16
+ if (!entry || entry[0] === entry[1]) return;
17
+ const sign = entry[1] > entry[0] ? 1 : -1;
18
+ outermost.set(`${index}:${sign}`, seriesIndex);
19
+ });
20
+ visible.forEach((seriesIndex, slot) => {
21
+ (input.values[seriesIndex] ?? []).forEach((rawValue, index) => {
22
+ if (rawValue === null || rawValue === void 0) return;
23
+ const base = value.domain[0] > 0 ? value.domain[0] : value.domain[1] < 0 ? value.domain[1] : 0;
24
+ const [from, to] = stacked ? input.stackedValues[seriesIndex]?.[index] ?? [0, 0] : [base, rawValue];
25
+ if (from === to) return;
26
+ const start = band.center(index) - group / 2 + (stacked ? 0 : slot * (slotSize + input.groupGap));
27
+ const a = value.map(from);
28
+ const b = value.map(to);
29
+ const positive = to >= from;
30
+ const end = !(stacked ? outermost.get(`${index}:${positive ? 1 : -1}`) === seriesIndex : true) || from === to ? null : horizontal ? positive ? "right" : "left" : positive ? "top" : "bottom";
31
+ const rect = horizontal ? {
32
+ x: Math.min(a, b),
33
+ y: start,
34
+ width: Math.abs(b - a),
35
+ height: slotSize
36
+ } : {
37
+ x: start,
38
+ y: Math.min(a, b),
39
+ width: slotSize,
40
+ height: Math.abs(b - a)
41
+ };
42
+ const text = input.labels ? input.labels(rawValue, seriesIndex, index) : null;
43
+ const textSize = text ? textWidth(text, input.labelFontSize) : 0;
44
+ const inside = !!text && (horizontal ? rect.width >= textSize + 8 && rect.height >= input.labelFontSize + 2 : rect.height >= input.labelFontSize + 6 && rect.width >= textSize + 4);
45
+ const showLabel = !!text && (inside || !stacked);
46
+ bars.push({
47
+ key: `${seriesIndex}:${index}`,
48
+ series: seriesIndex,
49
+ index,
50
+ ...rect,
51
+ color: seriesColor(input.colors[seriesIndex], seriesIndex),
52
+ end,
53
+ dir: horizontal ? positive ? "right" : "left" : positive ? "up" : "down",
54
+ label: showLabel ? text : null,
55
+ labelX: horizontal ? inside ? rect.x + rect.width / 2 : positive ? rect.x + rect.width + 4 : rect.x - 4 : rect.x + rect.width / 2,
56
+ labelY: horizontal ? rect.y + rect.height / 2 : inside ? rect.y + rect.height / 2 : positive ? rect.y - 4 : rect.y + rect.height + 4,
57
+ inside
58
+ });
59
+ });
60
+ });
61
+ return bars;
62
+ }
63
+ const DEFAULT_WIDTH = .56;
64
+ const DEFAULT_HORIZONTAL_WIDTH = .64;
65
+ const DEFAULT_GROUP_GAP = 3;
66
+ const LABEL_FONT_SIZE = 11;
67
+ const EDGE_SLACK = 8;
68
+ var TxColumnChart = class TxColumnChart {
69
+ locale = inject(TxLocaleService);
70
+ host = inject(ElementRef);
71
+ translations = injectTranslations();
72
+ series = input([], ...ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []);
73
+ categories = input([], ...ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []);
74
+ annotations = input([], ...ngDevMode ? [{ debugName: "annotations" }] : /* istanbul ignore next */ []);
75
+ stacked = input(true, {
76
+ ...ngDevMode ? { debugName: "stacked" } : /* istanbul ignore next */ {},
77
+ transform: booleanAttribute
78
+ });
79
+ stackType = input("normal", ...ngDevMode ? [{ debugName: "stackType" }] : /* istanbul ignore next */ []);
80
+ height = input(350, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
81
+ horizontal = input(false, {
82
+ ...ngDevMode ? { debugName: "horizontal" } : /* istanbul ignore next */ {},
83
+ transform: booleanAttribute
84
+ });
85
+ dataLabels = input(false, {
86
+ ...ngDevMode ? { debugName: "dataLabels" } : /* istanbul ignore next */ {},
87
+ transform: booleanAttribute
88
+ });
89
+ showLegend = input(true, {
90
+ ...ngDevMode ? { debugName: "showLegend" } : /* istanbul ignore next */ {},
91
+ transform: booleanAttribute
92
+ });
93
+ legendPosition = input("top", ...ngDevMode ? [{ debugName: "legendPosition" }] : /* istanbul ignore next */ []);
94
+ legendAlign = input("start", ...ngDevMode ? [{ debugName: "legendAlign" }] : /* istanbul ignore next */ []);
95
+ legendVariant = input("dot", ...ngDevMode ? [{ debugName: "legendVariant" }] : /* istanbul ignore next */ []);
96
+ showTooltip = input(true, {
97
+ ...ngDevMode ? { debugName: "showTooltip" } : /* istanbul ignore next */ {},
98
+ transform: booleanAttribute
99
+ });
100
+ tooltipMode = input("shared", ...ngDevMode ? [{ debugName: "tooltipMode" }] : /* istanbul ignore next */ []);
101
+ tooltipFormatter = input(null, ...ngDevMode ? [{ debugName: "tooltipFormatter" }] : /* istanbul ignore next */ []);
102
+ valueFormat = input("number", ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
103
+ yScale = input("linear", ...ngDevMode ? [{ debugName: "yScale" }] : /* istanbul ignore next */ []);
104
+ yMin = input(void 0, ...ngDevMode ? [{ debugName: "yMin" }] : /* istanbul ignore next */ []);
105
+ yMax = input(void 0, ...ngDevMode ? [{ debugName: "yMax" }] : /* istanbul ignore next */ []);
106
+ xAxisTitle = input("", ...ngDevMode ? [{ debugName: "xAxisTitle" }] : /* istanbul ignore next */ []);
107
+ yAxisTitle = input("", ...ngDevMode ? [{ debugName: "yAxisTitle" }] : /* istanbul ignore next */ []);
108
+ grid = input(void 0, ...ngDevMode ? [{ debugName: "grid" }] : /* istanbul ignore next */ []);
109
+ xAxisPosition = input("bottom", ...ngDevMode ? [{ debugName: "xAxisPosition" }] : /* istanbul ignore next */ []);
110
+ yAxisPosition = input("left", ...ngDevMode ? [{ debugName: "yAxisPosition" }] : /* istanbul ignore next */ []);
111
+ labelMode = input("auto", ...ngDevMode ? [{ debugName: "labelMode" }] : /* istanbul ignore next */ []);
112
+ maxLabelWidth = input(220, ...ngDevMode ? [{ debugName: "maxLabelWidth" }] : /* istanbul ignore next */ []);
113
+ toolbar = input(true, {
114
+ ...ngDevMode ? { debugName: "toolbar" } : /* istanbul ignore next */ {},
115
+ transform: booleanAttribute
116
+ });
117
+ loading = input(false, {
118
+ ...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
119
+ transform: booleanAttribute
120
+ });
121
+ ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
122
+ dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
123
+ pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
124
+ ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
125
+ unstyled = input(void 0, {
126
+ ...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
127
+ transform: optionalBoolean
128
+ });
129
+ seriesToggle = output();
130
+ barClick = output();
131
+ legendTemplate = contentChild(TxChartLegendTemplate, ...ngDevMode ? [{ debugName: "legendTemplate" }] : /* istanbul ignore next */ []);
132
+ tooltipTemplate = contentChild(TxChartTooltipTemplate, ...ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []);
133
+ frame = viewChild(TxChartFrame, ...ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []);
134
+ isUnstyled = injectUnstyled(this.unstyled);
135
+ passThrough = injectPassThrough("columnChart", this, this.pt, this.ptOptions);
136
+ tokenStyle = computed(() => toStyleObject(this.dt(), "--tx-chart"), ...ngDevMode ? [{ debugName: "tokenStyle" }] : /* istanbul ignore next */ []);
137
+ hostStyle = computed(() => ({
138
+ ...this.tokenStyle(),
139
+ ...this.passThrough().root?.style
140
+ }), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
141
+ entrance = injectChartEntrance();
142
+ morph = signal(false, ...ngDevMode ? [{ debugName: "morph" }] : /* istanbul ignore next */ []);
143
+ hidden = signal(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []);
144
+ focusedSeries = signal(null, ...ngDevMode ? [{ debugName: "focusedSeries" }] : /* istanbul ignore next */ []);
145
+ active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
146
+ geometry = signal({
147
+ width: DEFAULT_WIDTH,
148
+ horizontalWidth: DEFAULT_HORIZONTAL_WIDTH,
149
+ gap: DEFAULT_GROUP_GAP
150
+ }, ...ngDevMode ? [{ debugName: "geometry" }] : /* istanbul ignore next */ []);
151
+ intl = computed(() => this.locale.locale().intl, ...ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []);
152
+ list = computed(() => this.series() ?? [], ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
153
+ table = computed(() => normalizeSeries(this.list(), this.categories() ?? [], "category"), ...ngDevMode ? [{ debugName: "table" }] : /* istanbul ignore next */ []);
154
+ keys = computed(() => this.list().map((item, index) => `${index}:${item.name}`), ...ngDevMode ? [{ debugName: "keys" }] : /* istanbul ignore next */ []);
155
+ visibleIndexes = computed(() => this.keys().flatMap((key, index) => this.hidden().has(key) ? [] : [index]), ...ngDevMode ? [{ debugName: "visibleIndexes" }] : /* istanbul ignore next */ []);
156
+ isEmpty = computed(() => !this.list().length || !hasChartData(this.table().values), ...ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []);
157
+ isStacked = computed(() => this.stacked() || this.stackType() === "100%", ...ngDevMode ? [{ debugName: "isStacked" }] : /* istanbul ignore next */ []);
158
+ legendShown = computed(() => this.showLegend() && this.list().length > 1, ...ngDevMode ? [{ debugName: "legendShown" }] : /* istanbul ignore next */ []);
159
+ size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, void 0, this.toolbar()), ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
160
+ stackedValues = computed(() => {
161
+ const visible = new Set(this.visibleIndexes());
162
+ return stackValues(this.table().values.map((row, index) => visible.has(index) ? row : row.map(() => null)), this.stackType());
163
+ }, ...ngDevMode ? [{ debugName: "stackedValues" }] : /* istanbul ignore next */ []);
164
+ valueExtent = computed(() => {
165
+ if (this.isStacked()) return stackExtent(this.stackedValues());
166
+ return extent(this.visibleIndexes().flatMap((index) => this.table().values[index])) ?? [0, 1];
167
+ }, ...ngDevMode ? [{ debugName: "valueExtent" }] : /* istanbul ignore next */ []);
168
+ percentStack = computed(() => this.isStacked() && this.stackType() === "100%", ...ngDevMode ? [{ debugName: "percentStack" }] : /* istanbul ignore next */ []);
169
+ axisFormat = computed(() => this.percentStack() && this.valueFormat() === "number" ? "percent" : this.valueFormat(), ...ngDevMode ? [{ debugName: "axisFormat" }] : /* istanbul ignore next */ []);
170
+ layout = computed(() => {
171
+ const { width, height } = this.size();
172
+ const horizontal = this.horizontal();
173
+ return cartesianLayout({
174
+ width,
175
+ height,
176
+ intl: this.intl(),
177
+ horizontal,
178
+ category: {
179
+ kind: "band",
180
+ labels: this.table().labels,
181
+ count: this.table().labels.length,
182
+ labelMode: this.labelMode(),
183
+ maxLabelWidth: this.maxLabelWidth(),
184
+ title: this.xAxisTitle() || void 0
185
+ },
186
+ value: {
187
+ extent: this.valueExtent(),
188
+ scale: this.yScale(),
189
+ format: this.axisFormat(),
190
+ includeZero: true,
191
+ min: this.percentStack() ? 0 : this.yMin(),
192
+ max: this.percentStack() ? 100 : this.yMax(),
193
+ title: this.yAxisTitle() || void 0
194
+ },
195
+ grid: this.grid() ?? "value",
196
+ xAxisPosition: this.xAxisPosition(),
197
+ yAxisPosition: this.yAxisPosition()
198
+ });
199
+ }, ...ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []);
200
+ band = computed(() => this.layout().category, ...ngDevMode ? [{ debugName: "band" }] : /* istanbul ignore next */ []);
201
+ valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()), ...ngDevMode ? [{ debugName: "valueFormatter" }] : /* istanbul ignore next */ []);
202
+ formatValue = computed(() => {
203
+ const custom = this.tooltipFormatter();
204
+ const format = this.valueFormatter();
205
+ return (value, seriesIndex, dataPointIndex) => custom ? custom(value, {
206
+ seriesIndex,
207
+ dataPointIndex
208
+ }) : format(value);
209
+ }, ...ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []);
210
+ bars = computed(() => {
211
+ const layout = this.layout();
212
+ const geometry = this.geometry();
213
+ const format = this.formatValue();
214
+ const percent = this.percentStack();
215
+ const stacked = this.stackedValues();
216
+ return columnBars({
217
+ band: this.band(),
218
+ value: layout.value,
219
+ horizontal: this.horizontal(),
220
+ stacked: this.isStacked(),
221
+ widthRatio: this.horizontal() ? geometry.horizontalWidth : geometry.width,
222
+ groupGap: geometry.gap,
223
+ values: this.table().values,
224
+ stackedValues: stacked,
225
+ visible: this.visibleIndexes(),
226
+ colors: this.list().map((item) => item.color),
227
+ labels: this.dataLabels() ? (value, series, index) => {
228
+ if (percent) {
229
+ const entry = stacked[series]?.[index];
230
+ return entry ? chartNumberFormatter(this.intl(), "percent")(entry[1] - entry[0]) : "";
231
+ }
232
+ return format(value, series, index);
233
+ } : null,
234
+ labelFontSize: LABEL_FONT_SIZE
235
+ });
236
+ }, ...ngDevMode ? [{ debugName: "bars" }] : /* istanbul ignore next */ []);
237
+ columns = computed(() => {
238
+ const boxes = /* @__PURE__ */ new Map();
239
+ for (const bar of this.bars()) {
240
+ const box = boxes.get(bar.index);
241
+ const negative = bar.end === "bottom" || bar.end === "left";
242
+ if (!box) boxes.set(bar.index, {
243
+ x1: bar.x,
244
+ y1: bar.y,
245
+ x2: bar.x + bar.width,
246
+ y2: bar.y + bar.height,
247
+ negative
248
+ });
249
+ else {
250
+ box.x1 = Math.min(box.x1, bar.x);
251
+ box.y1 = Math.min(box.y1, bar.y);
252
+ box.x2 = Math.max(box.x2, bar.x + bar.width);
253
+ box.y2 = Math.max(box.y2, bar.y + bar.height);
254
+ box.negative = box.negative && negative;
255
+ }
256
+ }
257
+ return boxes;
258
+ }, ...ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []);
259
+ hoverBand = computed(() => {
260
+ const active = this.active();
261
+ return active ? chartBandRect(this.band(), active.index, this.layout().plot, this.horizontal()) : null;
262
+ }, ...ngDevMode ? [{ debugName: "hoverBand" }] : /* istanbul ignore next */ []);
263
+ annotationShapes = computed(() => {
264
+ const layout = this.layout();
265
+ const band = this.band();
266
+ const labels = this.table().labels;
267
+ return chartAnnotationShapes(this.annotations(), {
268
+ plot: layout.plot,
269
+ horizontal: this.horizontal(),
270
+ x: (value) => {
271
+ const index = chartCategoryIndex(value, labels);
272
+ return index < 0 ? null : band.center(index);
273
+ },
274
+ xSpan: (value) => {
275
+ const index = chartCategoryIndex(value, labels);
276
+ return index < 0 ? null : [band.start(index) - (band.step - band.bandwidth) / 2, band.start(index) + band.step - (band.step - band.bandwidth) / 2];
277
+ },
278
+ y: (value) => layout.value.map(value)
279
+ });
280
+ }, ...ngDevMode ? [{ debugName: "annotationShapes" }] : /* istanbul ignore next */ []);
281
+ legendItems = computed(() => {
282
+ const stat = this.legendVariant() === "stat";
283
+ const active = this.active();
284
+ const format = this.valueFormatter();
285
+ return this.list().map((item, index) => {
286
+ const values = this.table().values[index] ?? [];
287
+ const raw = active ? values[active.index] : values.reduce((sum, value) => sum + (value ?? 0), 0);
288
+ return {
289
+ key: this.keys()[index],
290
+ label: item.name,
291
+ color: seriesColor(item.color, index),
292
+ hidden: this.hidden().has(this.keys()[index]),
293
+ ...stat ? {
294
+ value: raw === null || raw === void 0 ? "—" : format(raw),
295
+ caption: active ? this.table().labels[active.index] : this.translations().chartTotal
296
+ } : {}
297
+ };
298
+ });
299
+ }, ...ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []);
300
+ tooltip = computed(() => {
301
+ const active = this.active();
302
+ if (!active || !this.showTooltip() || this.isEmpty() || this.legendVariant() === "stat") return null;
303
+ const format = this.formatValue();
304
+ const rows = this.visibleIndexes().filter((seriesIndex) => this.tooltipMode() === "shared" || seriesIndex === active.series).flatMap((seriesIndex) => {
305
+ const raw = this.table().values[seriesIndex][active.index];
306
+ if (raw === null) return [];
307
+ return [{
308
+ label: this.list()[seriesIndex].name,
309
+ value: format(raw, seriesIndex, active.index),
310
+ color: seriesColor(this.list()[seriesIndex].color, seriesIndex),
311
+ raw,
312
+ seriesIndex,
313
+ active: seriesIndex === active.series
314
+ }];
315
+ });
316
+ if (!rows.length) return null;
317
+ const box = this.columns().get(active.index);
318
+ if (!box) return null;
319
+ const bar = this.tooltipMode() === "single" ? this.bars().find((item) => item.index === active.index && item.series === active.series) : null;
320
+ const area = bar ? {
321
+ x1: bar.x,
322
+ y1: bar.y,
323
+ x2: bar.x + bar.width,
324
+ y2: bar.y + bar.height,
325
+ negative: bar.end === "bottom" || bar.end === "left"
326
+ } : box;
327
+ const total = this.isStacked() && rows.length > 1 ? this.valueFormatter()(rows.reduce((sum, row) => sum + (row.raw ?? 0), 0)) : void 0;
328
+ const title = this.table().labels[active.index] ?? "";
329
+ if (this.horizontal()) return area.negative ? {
330
+ title,
331
+ rows,
332
+ total,
333
+ index: active.index,
334
+ x: area.x1,
335
+ y: (area.y1 + area.y2) / 2,
336
+ placement: "left"
337
+ } : {
338
+ title,
339
+ rows,
340
+ total,
341
+ index: active.index,
342
+ x: area.x2,
343
+ y: (area.y1 + area.y2) / 2,
344
+ placement: "right"
345
+ };
346
+ return area.negative ? {
347
+ title,
348
+ rows,
349
+ total,
350
+ index: active.index,
351
+ x: (area.x1 + area.x2) / 2,
352
+ y: area.y2,
353
+ placement: "bottom"
354
+ } : {
355
+ title,
356
+ rows,
357
+ total,
358
+ index: active.index,
359
+ x: (area.x1 + area.x2) / 2,
360
+ y: area.y1,
361
+ placement: "top"
362
+ };
363
+ }, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
364
+ summary = computed(() => {
365
+ const t = this.translations();
366
+ const values = this.table().values.flat().filter((value) => value !== null);
367
+ const range = extent(values);
368
+ const format = this.valueFormatter();
369
+ 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);
370
+ return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;
371
+ }, ...ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []);
372
+ dataTable = computed(() => chartTable(this.table().labels, this.list().map((item, index) => ({
373
+ name: item.name,
374
+ values: this.table().values[index]
375
+ })), this.valueFormatter()), ...ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []);
376
+ constructor() {
377
+ afterNextRender(() => setTimeout(() => this.morph.set(true), 120));
378
+ afterRenderEffect(() => {
379
+ this.dt();
380
+ this.readGeometry();
381
+ });
382
+ }
383
+ isActive(index, series) {
384
+ const active = this.active();
385
+ return !!active && active.index === index && (this.tooltipMode() === "shared" || active.series === series);
386
+ }
387
+ onPointer(event) {
388
+ if (event.type === "leave") {
389
+ this.active.set(null);
390
+ return;
391
+ }
392
+ const index = this.categoryAt(event.x, event.y);
393
+ if (index < 0) {
394
+ this.active.set(null);
395
+ return;
396
+ }
397
+ const series = this.seriesAt(index, event.x, event.y);
398
+ this.active.set({
399
+ index,
400
+ series,
401
+ pointerY: null,
402
+ keyboard: false
403
+ });
404
+ if (event.type === "click" && series >= 0) this.barClick.emit({
405
+ seriesIndex: series,
406
+ dataPointIndex: index,
407
+ value: this.table().values[series][index],
408
+ category: this.table().labels[index] ?? ""
409
+ });
410
+ }
411
+ categoryAt(x, y) {
412
+ const plot = this.layout().plot;
413
+ return x >= plot.left - EDGE_SLACK && x <= plot.left + plot.width + EDGE_SLACK && y >= plot.top - EDGE_SLACK && y <= plot.top + plot.height + EDGE_SLACK && this.table().labels.length ? this.band().indexAt(this.horizontal() ? y : x) : -1;
414
+ }
415
+ onNavigate(event) {
416
+ if (event.key === "Escape") {
417
+ this.active.set(null);
418
+ return;
419
+ }
420
+ const count = this.table().labels.length;
421
+ const current = this.active();
422
+ const visible = this.visibleIndexes();
423
+ const horizontal = this.horizontal();
424
+ let index = current?.index ?? -1;
425
+ let series = current?.series ?? visible[0] ?? -1;
426
+ const seriesKeys = horizontal ? ["ArrowLeft", "ArrowRight"] : ["ArrowUp", "ArrowDown"];
427
+ if (seriesKeys.includes(event.key)) {
428
+ series = cycleIndex(series, event.key === seriesKeys[1] ? 1 : -1, visible);
429
+ index = Math.max(0, index);
430
+ } else index = horizontal ? stepIndex(event.key, index, count, "ArrowDown", "ArrowUp") : stepIndex(event.key, index, count);
431
+ if (index < 0 || series < 0) return;
432
+ this.active.set({
433
+ index,
434
+ series,
435
+ pointerY: null,
436
+ keyboard: true
437
+ });
438
+ const value = this.table().values[series][index];
439
+ this.frame()?.announce(formatMessage(this.translations().chartPoint, {
440
+ series: this.list()[series].name,
441
+ category: this.table().labels[index] ?? "",
442
+ value: value === null ? "—" : this.formatValue()(value, series, index)
443
+ }));
444
+ }
445
+ onLegendToggle(key) {
446
+ const index = this.keys().indexOf(key);
447
+ this.hidden.update((keys) => toggleKey(keys, key));
448
+ this.seriesToggle.emit({
449
+ seriesIndex: index,
450
+ name: this.list()[index]?.name ?? "",
451
+ hidden: this.hidden().has(key)
452
+ });
453
+ }
454
+ onLegendHover(key) {
455
+ const index = key === null ? -1 : this.keys().indexOf(key);
456
+ this.focusedSeries.set(index >= 0 && !this.hidden().has(key ?? "") ? index : null);
457
+ }
458
+ seriesAt(index, x, y) {
459
+ 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);
460
+ if (hit) return hit.series;
461
+ const candidates = this.bars().filter((bar) => bar.index === index);
462
+ if (!this.isStacked() && candidates.length) {
463
+ const along = (bar) => this.horizontal() ? Math.abs(y - bar.y - bar.height / 2) : Math.abs(x - bar.x - bar.width / 2);
464
+ return candidates.reduce((best, bar) => along(bar) < along(best) ? bar : best).series;
465
+ }
466
+ return candidates[candidates.length - 1]?.series ?? this.visibleIndexes()[0] ?? -1;
467
+ }
468
+ readGeometry() {
469
+ const element = this.host.nativeElement;
470
+ const next = {
471
+ width: readTokenNumber(element, "--tx-chart-bar-width", DEFAULT_WIDTH),
472
+ horizontalWidth: readTokenNumber(element, "--tx-chart-bar-horizontal-width", DEFAULT_HORIZONTAL_WIDTH),
473
+ gap: readTokenNumber(element, "--tx-chart-bar-group-gap", DEFAULT_GROUP_GAP)
474
+ };
475
+ const current = this.geometry();
476
+ if (current.width !== next.width || current.horizontalWidth !== next.horizontalWidth || current.gap !== next.gap) this.geometry.set(next);
477
+ }
478
+ static ɵfac = i0.ɵɵngDeclareFactory({
479
+ minVersion: "12.0.0",
480
+ version: "22.2.3",
481
+ ngImport: i0,
482
+ type: TxColumnChart,
483
+ deps: [],
484
+ target: i0.ɵɵFactoryTarget.Component
485
+ });
486
+ static ɵcmp = i0.ɵɵngDeclareComponent({
487
+ minVersion: "17.0.0",
488
+ version: "22.2.3",
489
+ type: TxColumnChart,
490
+ isStandalone: true,
491
+ selector: "tx-column-chart",
492
+ inputs: {
493
+ series: {
494
+ classPropertyName: "series",
495
+ publicName: "series",
496
+ isSignal: true,
497
+ isRequired: false,
498
+ transformFunction: null
499
+ },
500
+ categories: {
501
+ classPropertyName: "categories",
502
+ publicName: "categories",
503
+ isSignal: true,
504
+ isRequired: false,
505
+ transformFunction: null
506
+ },
507
+ annotations: {
508
+ classPropertyName: "annotations",
509
+ publicName: "annotations",
510
+ isSignal: true,
511
+ isRequired: false,
512
+ transformFunction: null
513
+ },
514
+ stacked: {
515
+ classPropertyName: "stacked",
516
+ publicName: "stacked",
517
+ isSignal: true,
518
+ isRequired: false,
519
+ transformFunction: null
520
+ },
521
+ stackType: {
522
+ classPropertyName: "stackType",
523
+ publicName: "stackType",
524
+ isSignal: true,
525
+ isRequired: false,
526
+ transformFunction: null
527
+ },
528
+ height: {
529
+ classPropertyName: "height",
530
+ publicName: "height",
531
+ isSignal: true,
532
+ isRequired: false,
533
+ transformFunction: null
534
+ },
535
+ horizontal: {
536
+ classPropertyName: "horizontal",
537
+ publicName: "horizontal",
538
+ isSignal: true,
539
+ isRequired: false,
540
+ transformFunction: null
541
+ },
542
+ dataLabels: {
543
+ classPropertyName: "dataLabels",
544
+ publicName: "dataLabels",
545
+ isSignal: true,
546
+ isRequired: false,
547
+ transformFunction: null
548
+ },
549
+ showLegend: {
550
+ classPropertyName: "showLegend",
551
+ publicName: "showLegend",
552
+ isSignal: true,
553
+ isRequired: false,
554
+ transformFunction: null
555
+ },
556
+ legendPosition: {
557
+ classPropertyName: "legendPosition",
558
+ publicName: "legendPosition",
559
+ isSignal: true,
560
+ isRequired: false,
561
+ transformFunction: null
562
+ },
563
+ legendAlign: {
564
+ classPropertyName: "legendAlign",
565
+ publicName: "legendAlign",
566
+ isSignal: true,
567
+ isRequired: false,
568
+ transformFunction: null
569
+ },
570
+ legendVariant: {
571
+ classPropertyName: "legendVariant",
572
+ publicName: "legendVariant",
573
+ isSignal: true,
574
+ isRequired: false,
575
+ transformFunction: null
576
+ },
577
+ showTooltip: {
578
+ classPropertyName: "showTooltip",
579
+ publicName: "showTooltip",
580
+ isSignal: true,
581
+ isRequired: false,
582
+ transformFunction: null
583
+ },
584
+ tooltipMode: {
585
+ classPropertyName: "tooltipMode",
586
+ publicName: "tooltipMode",
587
+ isSignal: true,
588
+ isRequired: false,
589
+ transformFunction: null
590
+ },
591
+ tooltipFormatter: {
592
+ classPropertyName: "tooltipFormatter",
593
+ publicName: "tooltipFormatter",
594
+ isSignal: true,
595
+ isRequired: false,
596
+ transformFunction: null
597
+ },
598
+ valueFormat: {
599
+ classPropertyName: "valueFormat",
600
+ publicName: "valueFormat",
601
+ isSignal: true,
602
+ isRequired: false,
603
+ transformFunction: null
604
+ },
605
+ yScale: {
606
+ classPropertyName: "yScale",
607
+ publicName: "yScale",
608
+ isSignal: true,
609
+ isRequired: false,
610
+ transformFunction: null
611
+ },
612
+ yMin: {
613
+ classPropertyName: "yMin",
614
+ publicName: "yMin",
615
+ isSignal: true,
616
+ isRequired: false,
617
+ transformFunction: null
618
+ },
619
+ yMax: {
620
+ classPropertyName: "yMax",
621
+ publicName: "yMax",
622
+ isSignal: true,
623
+ isRequired: false,
624
+ transformFunction: null
625
+ },
626
+ xAxisTitle: {
627
+ classPropertyName: "xAxisTitle",
628
+ publicName: "xAxisTitle",
629
+ isSignal: true,
630
+ isRequired: false,
631
+ transformFunction: null
632
+ },
633
+ yAxisTitle: {
634
+ classPropertyName: "yAxisTitle",
635
+ publicName: "yAxisTitle",
636
+ isSignal: true,
637
+ isRequired: false,
638
+ transformFunction: null
639
+ },
640
+ grid: {
641
+ classPropertyName: "grid",
642
+ publicName: "grid",
643
+ isSignal: true,
644
+ isRequired: false,
645
+ transformFunction: null
646
+ },
647
+ xAxisPosition: {
648
+ classPropertyName: "xAxisPosition",
649
+ publicName: "xAxisPosition",
650
+ isSignal: true,
651
+ isRequired: false,
652
+ transformFunction: null
653
+ },
654
+ yAxisPosition: {
655
+ classPropertyName: "yAxisPosition",
656
+ publicName: "yAxisPosition",
657
+ isSignal: true,
658
+ isRequired: false,
659
+ transformFunction: null
660
+ },
661
+ labelMode: {
662
+ classPropertyName: "labelMode",
663
+ publicName: "labelMode",
664
+ isSignal: true,
665
+ isRequired: false,
666
+ transformFunction: null
667
+ },
668
+ maxLabelWidth: {
669
+ classPropertyName: "maxLabelWidth",
670
+ publicName: "maxLabelWidth",
671
+ isSignal: true,
672
+ isRequired: false,
673
+ transformFunction: null
674
+ },
675
+ toolbar: {
676
+ classPropertyName: "toolbar",
677
+ publicName: "toolbar",
678
+ isSignal: true,
679
+ isRequired: false,
680
+ transformFunction: null
681
+ },
682
+ loading: {
683
+ classPropertyName: "loading",
684
+ publicName: "loading",
685
+ isSignal: true,
686
+ isRequired: false,
687
+ transformFunction: null
688
+ },
689
+ ariaLabel: {
690
+ classPropertyName: "ariaLabel",
691
+ publicName: "ariaLabel",
692
+ isSignal: true,
693
+ isRequired: false,
694
+ transformFunction: null
695
+ },
696
+ dt: {
697
+ classPropertyName: "dt",
698
+ publicName: "dt",
699
+ isSignal: true,
700
+ isRequired: false,
701
+ transformFunction: null
702
+ },
703
+ pt: {
704
+ classPropertyName: "pt",
705
+ publicName: "pt",
706
+ isSignal: true,
707
+ isRequired: false,
708
+ transformFunction: null
709
+ },
710
+ ptOptions: {
711
+ classPropertyName: "ptOptions",
712
+ publicName: "ptOptions",
713
+ isSignal: true,
714
+ isRequired: false,
715
+ transformFunction: null
716
+ },
717
+ unstyled: {
718
+ classPropertyName: "unstyled",
719
+ publicName: "unstyled",
720
+ isSignal: true,
721
+ isRequired: false,
722
+ transformFunction: null
723
+ }
724
+ },
725
+ outputs: {
726
+ seriesToggle: "seriesToggle",
727
+ barClick: "barClick"
728
+ },
729
+ host: {
730
+ properties: {
731
+ "class": "passThrough().root?.class",
732
+ "style": "hostStyle()",
733
+ "attr.data-styled": "!isUnstyled() || null",
734
+ "attr.data-orientation": "horizontal() ? \"horizontal\" : \"vertical\"",
735
+ "class.tx-column-chart--fill": "typeof height() === \"string\"",
736
+ "class.tx-column-chart--entering": "entrance.active()",
737
+ "class.tx-column-chart--morph": "morph()",
738
+ "class.tx-column-chart--focused": "focusedSeries() !== null",
739
+ "class.tx-column-chart--stacked": "isStacked()",
740
+ "class.tx-column-chart--active": "active() !== null"
741
+ },
742
+ classAttribute: "tx-column-chart"
743
+ },
744
+ queries: [{
745
+ propertyName: "legendTemplate",
746
+ first: true,
747
+ predicate: TxChartLegendTemplate,
748
+ descendants: true,
749
+ isSignal: true
750
+ }, {
751
+ propertyName: "tooltipTemplate",
752
+ first: true,
753
+ predicate: TxChartTooltipTemplate,
754
+ descendants: true,
755
+ isSignal: true
756
+ }],
757
+ viewQueries: [{
758
+ propertyName: "frame",
759
+ first: true,
760
+ predicate: TxChartFrame,
761
+ descendants: true,
762
+ isSignal: true
763
+ }],
764
+ ngImport: i0,
765
+ 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: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",
766
+ 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__bar[data-end=top]{clip-path:inset(0 round var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0 0)}:host([data-styled]) .tx-column-chart__bar[data-end=bottom]{clip-path:inset(0 round 0 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius))}:host([data-styled]) .tx-column-chart__bar[data-end=right]{clip-path:inset(0 round 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0)}:host([data-styled]) .tx-column-chart__bar[data-end=left]{clip-path:inset(0 round var(--tx-chart-bar-radius) 0 0 var(--tx-chart-bar-radius))}: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,x var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),y var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),width var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),height 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"],
767
+ dependencies: [
768
+ {
769
+ kind: "component",
770
+ type: TxChartFrame,
771
+ selector: "tx-chart-frame",
772
+ inputs: [
773
+ "height",
774
+ "size",
775
+ "legendItems",
776
+ "showLegend",
777
+ "legendPosition",
778
+ "legendAlign",
779
+ "legendVariant",
780
+ "legendToggle",
781
+ "legendTemplate",
782
+ "empty",
783
+ "loading",
784
+ "emptyIcon",
785
+ "summary",
786
+ "table",
787
+ "tooltip",
788
+ "tooltipTemplate",
789
+ "tooltipPlacement",
790
+ "panelStyle",
791
+ "parts",
792
+ "styled",
793
+ "interactive",
794
+ "actionKeys",
795
+ "zoomable",
796
+ "zoomedIn",
797
+ "plotHeight",
798
+ "toolbar",
799
+ "exportName"
800
+ ],
801
+ outputs: [
802
+ "sizeChange",
803
+ "pointer",
804
+ "navigate",
805
+ "legendToggled",
806
+ "legendHovered",
807
+ "tooltipClosed",
808
+ "zoomed",
809
+ "panned",
810
+ "zoomReset"
811
+ ]
812
+ },
813
+ {
814
+ kind: "component",
815
+ type: TxChartAxes,
816
+ selector: "g[tx-chart-axes]",
817
+ inputs: [
818
+ "tx-chart-axes",
819
+ "gridPart",
820
+ "axisPart"
821
+ ]
822
+ },
823
+ {
824
+ kind: "component",
825
+ type: TxChartHoverBand,
826
+ selector: "g[tx-chart-hover-band]",
827
+ inputs: ["tx-chart-hover-band", "part"]
828
+ },
829
+ {
830
+ kind: "component",
831
+ type: TxChartAnnotations,
832
+ selector: "g[tx-chart-annotations]",
833
+ inputs: [
834
+ "tx-chart-annotations",
835
+ "part",
836
+ "layer"
837
+ ]
838
+ }
839
+ ],
840
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
841
+ });
842
+ };
843
+ i0.ɵɵngDeclareClassMetadata({
844
+ minVersion: "12.0.0",
845
+ version: "22.2.3",
846
+ ngImport: i0,
847
+ type: TxColumnChart,
848
+ decorators: [{
849
+ type: Component,
850
+ args: [{
851
+ selector: "tx-column-chart",
852
+ imports: [
853
+ TxChartFrame,
854
+ TxChartAxes,
855
+ TxChartHoverBand,
856
+ TxChartAnnotations
857
+ ],
858
+ changeDetection: ChangeDetectionStrategy.OnPush,
859
+ host: {
860
+ class: "tx-column-chart",
861
+ "[class]": "passThrough().root?.class",
862
+ "[style]": "hostStyle()",
863
+ "[attr.data-styled]": "!isUnstyled() || null",
864
+ "[attr.data-orientation]": "horizontal() ? \"horizontal\" : \"vertical\"",
865
+ "[class.tx-column-chart--fill]": "typeof height() === \"string\"",
866
+ "[class.tx-column-chart--entering]": "entrance.active()",
867
+ "[class.tx-column-chart--morph]": "morph()",
868
+ "[class.tx-column-chart--focused]": "focusedSeries() !== null",
869
+ "[class.tx-column-chart--stacked]": "isStacked()",
870
+ "[class.tx-column-chart--active]": "active() !== null"
871
+ },
872
+ 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: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",
873
+ 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__bar[data-end=top]{clip-path:inset(0 round var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0 0)}:host([data-styled]) .tx-column-chart__bar[data-end=bottom]{clip-path:inset(0 round 0 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius))}:host([data-styled]) .tx-column-chart__bar[data-end=right]{clip-path:inset(0 round 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0)}:host([data-styled]) .tx-column-chart__bar[data-end=left]{clip-path:inset(0 round var(--tx-chart-bar-radius) 0 0 var(--tx-chart-bar-radius))}: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,x var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),y var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),width var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),height 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"]
874
+ }]
875
+ }],
876
+ ctorParameters: () => [],
877
+ propDecorators: {
878
+ series: [{
879
+ type: i0.Input,
880
+ args: [{
881
+ isSignal: true,
882
+ alias: "series",
883
+ required: false
884
+ }]
885
+ }],
886
+ categories: [{
887
+ type: i0.Input,
888
+ args: [{
889
+ isSignal: true,
890
+ alias: "categories",
891
+ required: false
892
+ }]
893
+ }],
894
+ annotations: [{
895
+ type: i0.Input,
896
+ args: [{
897
+ isSignal: true,
898
+ alias: "annotations",
899
+ required: false
900
+ }]
901
+ }],
902
+ stacked: [{
903
+ type: i0.Input,
904
+ args: [{
905
+ isSignal: true,
906
+ alias: "stacked",
907
+ required: false
908
+ }]
909
+ }],
910
+ stackType: [{
911
+ type: i0.Input,
912
+ args: [{
913
+ isSignal: true,
914
+ alias: "stackType",
915
+ required: false
916
+ }]
917
+ }],
918
+ height: [{
919
+ type: i0.Input,
920
+ args: [{
921
+ isSignal: true,
922
+ alias: "height",
923
+ required: false
924
+ }]
925
+ }],
926
+ horizontal: [{
927
+ type: i0.Input,
928
+ args: [{
929
+ isSignal: true,
930
+ alias: "horizontal",
931
+ required: false
932
+ }]
933
+ }],
934
+ dataLabels: [{
935
+ type: i0.Input,
936
+ args: [{
937
+ isSignal: true,
938
+ alias: "dataLabels",
939
+ required: false
940
+ }]
941
+ }],
942
+ showLegend: [{
943
+ type: i0.Input,
944
+ args: [{
945
+ isSignal: true,
946
+ alias: "showLegend",
947
+ required: false
948
+ }]
949
+ }],
950
+ legendPosition: [{
951
+ type: i0.Input,
952
+ args: [{
953
+ isSignal: true,
954
+ alias: "legendPosition",
955
+ required: false
956
+ }]
957
+ }],
958
+ legendAlign: [{
959
+ type: i0.Input,
960
+ args: [{
961
+ isSignal: true,
962
+ alias: "legendAlign",
963
+ required: false
964
+ }]
965
+ }],
966
+ legendVariant: [{
967
+ type: i0.Input,
968
+ args: [{
969
+ isSignal: true,
970
+ alias: "legendVariant",
971
+ required: false
972
+ }]
973
+ }],
974
+ showTooltip: [{
975
+ type: i0.Input,
976
+ args: [{
977
+ isSignal: true,
978
+ alias: "showTooltip",
979
+ required: false
980
+ }]
981
+ }],
982
+ tooltipMode: [{
983
+ type: i0.Input,
984
+ args: [{
985
+ isSignal: true,
986
+ alias: "tooltipMode",
987
+ required: false
988
+ }]
989
+ }],
990
+ tooltipFormatter: [{
991
+ type: i0.Input,
992
+ args: [{
993
+ isSignal: true,
994
+ alias: "tooltipFormatter",
995
+ required: false
996
+ }]
997
+ }],
998
+ valueFormat: [{
999
+ type: i0.Input,
1000
+ args: [{
1001
+ isSignal: true,
1002
+ alias: "valueFormat",
1003
+ required: false
1004
+ }]
1005
+ }],
1006
+ yScale: [{
1007
+ type: i0.Input,
1008
+ args: [{
1009
+ isSignal: true,
1010
+ alias: "yScale",
1011
+ required: false
1012
+ }]
1013
+ }],
1014
+ yMin: [{
1015
+ type: i0.Input,
1016
+ args: [{
1017
+ isSignal: true,
1018
+ alias: "yMin",
1019
+ required: false
1020
+ }]
1021
+ }],
1022
+ yMax: [{
1023
+ type: i0.Input,
1024
+ args: [{
1025
+ isSignal: true,
1026
+ alias: "yMax",
1027
+ required: false
1028
+ }]
1029
+ }],
1030
+ xAxisTitle: [{
1031
+ type: i0.Input,
1032
+ args: [{
1033
+ isSignal: true,
1034
+ alias: "xAxisTitle",
1035
+ required: false
1036
+ }]
1037
+ }],
1038
+ yAxisTitle: [{
1039
+ type: i0.Input,
1040
+ args: [{
1041
+ isSignal: true,
1042
+ alias: "yAxisTitle",
1043
+ required: false
1044
+ }]
1045
+ }],
1046
+ grid: [{
1047
+ type: i0.Input,
1048
+ args: [{
1049
+ isSignal: true,
1050
+ alias: "grid",
1051
+ required: false
1052
+ }]
1053
+ }],
1054
+ xAxisPosition: [{
1055
+ type: i0.Input,
1056
+ args: [{
1057
+ isSignal: true,
1058
+ alias: "xAxisPosition",
1059
+ required: false
1060
+ }]
1061
+ }],
1062
+ yAxisPosition: [{
1063
+ type: i0.Input,
1064
+ args: [{
1065
+ isSignal: true,
1066
+ alias: "yAxisPosition",
1067
+ required: false
1068
+ }]
1069
+ }],
1070
+ labelMode: [{
1071
+ type: i0.Input,
1072
+ args: [{
1073
+ isSignal: true,
1074
+ alias: "labelMode",
1075
+ required: false
1076
+ }]
1077
+ }],
1078
+ maxLabelWidth: [{
1079
+ type: i0.Input,
1080
+ args: [{
1081
+ isSignal: true,
1082
+ alias: "maxLabelWidth",
1083
+ required: false
1084
+ }]
1085
+ }],
1086
+ toolbar: [{
1087
+ type: i0.Input,
1088
+ args: [{
1089
+ isSignal: true,
1090
+ alias: "toolbar",
1091
+ required: false
1092
+ }]
1093
+ }],
1094
+ loading: [{
1095
+ type: i0.Input,
1096
+ args: [{
1097
+ isSignal: true,
1098
+ alias: "loading",
1099
+ required: false
1100
+ }]
1101
+ }],
1102
+ ariaLabel: [{
1103
+ type: i0.Input,
1104
+ args: [{
1105
+ isSignal: true,
1106
+ alias: "ariaLabel",
1107
+ required: false
1108
+ }]
1109
+ }],
1110
+ dt: [{
1111
+ type: i0.Input,
1112
+ args: [{
1113
+ isSignal: true,
1114
+ alias: "dt",
1115
+ required: false
1116
+ }]
1117
+ }],
1118
+ pt: [{
1119
+ type: i0.Input,
1120
+ args: [{
1121
+ isSignal: true,
1122
+ alias: "pt",
1123
+ required: false
1124
+ }]
1125
+ }],
1126
+ ptOptions: [{
1127
+ type: i0.Input,
1128
+ args: [{
1129
+ isSignal: true,
1130
+ alias: "ptOptions",
1131
+ required: false
1132
+ }]
1133
+ }],
1134
+ unstyled: [{
1135
+ type: i0.Input,
1136
+ args: [{
1137
+ isSignal: true,
1138
+ alias: "unstyled",
1139
+ required: false
1140
+ }]
1141
+ }],
1142
+ seriesToggle: [{
1143
+ type: i0.Output,
1144
+ args: ["seriesToggle"]
1145
+ }],
1146
+ barClick: [{
1147
+ type: i0.Output,
1148
+ args: ["barClick"]
1149
+ }],
1150
+ legendTemplate: [{
1151
+ type: i0.ContentChild,
1152
+ args: [i0.forwardRef(() => TxChartLegendTemplate), { isSignal: true }]
1153
+ }],
1154
+ tooltipTemplate: [{
1155
+ type: i0.ContentChild,
1156
+ args: [i0.forwardRef(() => TxChartTooltipTemplate), { isSignal: true }]
1157
+ }],
1158
+ frame: [{
1159
+ type: i0.ViewChild,
1160
+ args: [i0.forwardRef(() => TxChartFrame), { isSignal: true }]
1161
+ }]
1162
+ }
1163
+ });
1164
+ export { TxColumnChart, columnBars };
1165
+
1166
+ //# sourceMappingURL=tectra-ng-charts-column.mjs.map