@tectra-ng/charts 0.4.2 → 0.4.4

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 (99) hide show
  1. package/bar-list/README.md +1 -1
  2. package/boxplot/README.md +1 -1
  3. package/bullet/README.md +1 -1
  4. package/candlestick/README.md +1 -1
  5. package/column/README.md +3 -3
  6. package/combo/README.md +1 -1
  7. package/core/README.md +8 -6
  8. package/fesm2022/tectra-ng-charts-bar-list.mjs +3 -3
  9. package/fesm2022/tectra-ng-charts-boxplot.mjs +3 -3
  10. package/fesm2022/tectra-ng-charts-bullet.mjs +3 -3
  11. package/fesm2022/tectra-ng-charts-candlestick.mjs +26 -10
  12. package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -1
  13. package/fesm2022/tectra-ng-charts-column.mjs +4 -4
  14. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
  15. package/fesm2022/tectra-ng-charts-combo.mjs +3 -3
  16. package/fesm2022/tectra-ng-charts-core.mjs +107 -44
  17. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
  18. package/fesm2022/tectra-ng-charts-funnel.mjs +37 -13
  19. package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -1
  20. package/fesm2022/tectra-ng-charts-gantt.mjs +490 -30
  21. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -1
  22. package/fesm2022/tectra-ng-charts-gauge.mjs +82 -37
  23. package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -1
  24. package/fesm2022/tectra-ng-charts-heatmap.mjs +15 -15
  25. package/fesm2022/tectra-ng-charts-line.mjs +3 -3
  26. package/fesm2022/tectra-ng-charts-org-chart.mjs +57 -29
  27. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -1
  28. package/fesm2022/tectra-ng-charts-pie.mjs +50 -20
  29. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
  30. package/fesm2022/tectra-ng-charts-radar.mjs +3 -3
  31. package/fesm2022/tectra-ng-charts-radial-bar.mjs +8 -7
  32. package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -1
  33. package/fesm2022/tectra-ng-charts-range-area.mjs +116 -61
  34. package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -1
  35. package/fesm2022/tectra-ng-charts-rank-line.mjs +82 -34
  36. package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -1
  37. package/fesm2022/tectra-ng-charts-sankey.mjs +102 -21
  38. package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -1
  39. package/fesm2022/tectra-ng-charts-scatter.mjs +3 -3
  40. package/fesm2022/tectra-ng-charts-segmented-bar.mjs +56 -10
  41. package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -1
  42. package/fesm2022/tectra-ng-charts-sunburst.mjs +34 -6
  43. package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -1
  44. package/fesm2022/tectra-ng-charts-treemap.mjs +6 -6
  45. package/fesm2022/tectra-ng-charts-waterfall.mjs +60 -23
  46. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -1
  47. package/fesm2022/tectra-ng-charts.mjs +1 -1
  48. package/funnel/README.md +2 -2
  49. package/gantt/README.md +12 -8
  50. package/gauge/README.md +3 -3
  51. package/line/README.md +1 -1
  52. package/org-chart/README.md +1 -0
  53. package/package.json +5 -5
  54. package/pie/README.md +5 -4
  55. package/radar/README.md +1 -1
  56. package/radial-bar/README.md +2 -2
  57. package/range-area/README.md +2 -1
  58. package/rank-line/README.md +3 -2
  59. package/sankey/README.md +1 -1
  60. package/segmented-bar/README.md +2 -1
  61. package/treemap/README.md +1 -1
  62. package/types/tectra-ng-charts-bar-list.d.ts +1 -1
  63. package/types/tectra-ng-charts-boxplot.d.ts +1 -1
  64. package/types/tectra-ng-charts-bullet.d.ts +1 -1
  65. package/types/tectra-ng-charts-candlestick.d.ts +7 -3
  66. package/types/tectra-ng-charts-candlestick.d.ts.map +1 -1
  67. package/types/tectra-ng-charts-column.d.ts +3 -3
  68. package/types/tectra-ng-charts-combo.d.ts +1 -1
  69. package/types/tectra-ng-charts-core.d.ts +45 -10
  70. package/types/tectra-ng-charts-core.d.ts.map +1 -1
  71. package/types/tectra-ng-charts-funnel.d.ts +9 -2
  72. package/types/tectra-ng-charts-funnel.d.ts.map +1 -1
  73. package/types/tectra-ng-charts-gantt.d.ts +166 -10
  74. package/types/tectra-ng-charts-gantt.d.ts.map +1 -1
  75. package/types/tectra-ng-charts-gauge.d.ts +21 -6
  76. package/types/tectra-ng-charts-gauge.d.ts.map +1 -1
  77. package/types/tectra-ng-charts-line.d.ts +1 -1
  78. package/types/tectra-ng-charts-org-chart.d.ts +13 -2
  79. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -1
  80. package/types/tectra-ng-charts-pie.d.ts +13 -4
  81. package/types/tectra-ng-charts-pie.d.ts.map +1 -1
  82. package/types/tectra-ng-charts-radar.d.ts +1 -1
  83. package/types/tectra-ng-charts-radial-bar.d.ts +3 -2
  84. package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -1
  85. package/types/tectra-ng-charts-range-area.d.ts +12 -3
  86. package/types/tectra-ng-charts-range-area.d.ts.map +1 -1
  87. package/types/tectra-ng-charts-rank-line.d.ts +28 -10
  88. package/types/tectra-ng-charts-rank-line.d.ts.map +1 -1
  89. package/types/tectra-ng-charts-sankey.d.ts +36 -9
  90. package/types/tectra-ng-charts-sankey.d.ts.map +1 -1
  91. package/types/tectra-ng-charts-segmented-bar.d.ts +11 -2
  92. package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -1
  93. package/types/tectra-ng-charts-sunburst.d.ts +10 -0
  94. package/types/tectra-ng-charts-sunburst.d.ts.map +1 -1
  95. package/types/tectra-ng-charts-treemap.d.ts +1 -1
  96. package/types/tectra-ng-charts-waterfall.d.ts +25 -6
  97. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -1
  98. package/types/tectra-ng-charts.d.ts +1 -1
  99. package/waterfall/README.md +5 -5
@@ -15,7 +15,7 @@ import { TxBarList } from '@tectra-ng/charts/bar-list';
15
15
  |---|---|
16
16
  | items | `{ label, value, link?, queryParams? }[]` — rows in any order; no positive values show "No data" |
17
17
  | limit | How many rows to show (10); the percent stays the share of the whole total |
18
- | valueFormat | Format of values: `number`, `integer`, `compact`, `percent` or a function |
18
+ | valueFormat | Format of values: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function |
19
19
  | loading | Shows skeleton rows |
20
20
  | ariaLabel | What the list shows, read by screen readers |
21
21
  | dt | Design tokens of this list (`chart`, group `barList`) |
package/boxplot/README.md CHANGED
@@ -21,7 +21,7 @@ import { TxBoxplotChart } from '@tectra-ng/charts/boxplot';
21
21
  | legendPosition | `top`, `bottom`, `left` or `right` |
22
22
  | legendAlign | `start`, `center` or `end` for a top or bottom legend |
23
23
  | showTooltip | Shows the five numbers and the count of outliers on hover and keyboard focus |
24
- | valueFormat | Value axis and tooltip format: `number`, `integer`, `compact`, `percent` or a function |
24
+ | valueFormat | Value axis and tooltip format: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function |
25
25
  | yMin | Fixed start of the value axis |
26
26
  | yMax | Fixed end of the value axis |
27
27
  | xAxisTitle | Title of the category axis |
package/bullet/README.md CHANGED
@@ -19,7 +19,7 @@ import { TxBulletChart } from '@tectra-ng/charts/bullet';
19
19
  | max | End of the scale; the biggest value, target or threshold by default |
20
20
  | height | Height in px; by default one `chart.bullet.rowHeight` per row plus the axis |
21
21
  | showTooltip | Shows the value and the target on hover and keyboard focus |
22
- | valueFormat | Format of the axis and the tooltip: `number`, `integer`, `compact`, `percent` or a function |
22
+ | valueFormat | Format of the axis and the tooltip: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function |
23
23
  | grid | Grid lines: `value` (default), `category`, `both` or `none` |
24
24
  | maxLabelWidth | Longer row labels are cut with an ellipsis (180px) |
25
25
  | toolbar | Shows the chart menu: download SVG, PNG or CSV |
@@ -24,7 +24,7 @@ import { TxCandlestickChart } from '@tectra-ng/charts/candlestick';
24
24
  | yMax | Fixed end of the price axis |
25
25
  | yAxisTitle | Title of the price axis |
26
26
  | grid | Grid lines: `value` (default), `category`, `both` or `none` |
27
- | labelMode | Date labels that do not fit: `skip` (default), `auto` or `rotate` |
27
+ | labelMode | Date labels that do not fit: `skip` (default), `auto` or `rotate`. Dates are written by the step of the data (days for daily and weekly candles, months for monthly ones), so no two labels repeat |
28
28
  | yAxisPosition | Side of the price axis: `right` (default) or `left` |
29
29
  | toolbar | Shows the chart menu: download SVG, PNG or CSV (the file is named after `ariaLabel`) |
30
30
  | loading | Shows a skeleton of the same size |
package/column/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Column Chart
2
2
 
3
- `<tx-column-chart>` — columns or horizontal bars for comparing values across categories: stacked, 100% stacked or grouped. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
3
+ `<tx-column-chart>` — columns or horizontal bars for comparing values across categories: grouped side by side (default), stacked or 100% stacked. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
4
4
 
5
5
  ```ts
6
6
  import { TxColumnChart } from '@tectra-ng/charts/column';
@@ -16,7 +16,7 @@ import { TxColumnChart } from '@tectra-ng/charts/column';
16
16
  | series | `{ name, data, color? }[]` — one number (or `null`) per category. An empty list shows "No data" |
17
17
  | categories | Labels of the category axis, one per value |
18
18
  | annotations | Marks on the plot: `{ type: 'x-line', x }`, `{ type: 'y-line', y }`, `{ type: 'x-band', from, to }`, `{ type: 'y-band', from, to }`, `{ type: 'point', x, y }`, each with an optional `label`, `tone` (`neutral`, `primary`, `success`, `info`, `warn`, `danger`) or `color`; `x` is a category label or index; an `x-band` covers whole categories. In a horizontal chart the lines turn with the axes |
19
- | stacked | Stacks the series (default); `false` groups them side by side |
19
+ | stacked | Stacks the series; by default they are grouped side by side |
20
20
  | stackType | `normal` or `100%` (every category to 100%; also turns stacking on) |
21
21
  | height | Height in px (350), or a CSS size such as `'100%'` of a parent with a definite height |
22
22
  | horizontal | Draws horizontal bars with the categories on the left |
@@ -28,7 +28,7 @@ import { TxColumnChart } from '@tectra-ng/charts/column';
28
28
  | showTooltip | Shows the tooltip on hover and keyboard focus |
29
29
  | tooltipMode | `shared` (every series of the category) or `single` |
30
30
  | tooltipFormatter | `(value, { seriesIndex, dataPointIndex }) => string` for tooltip and data label values; default — the locale number format |
31
- | valueFormat | Value axis format: `number`, `integer`, `compact`, `percent` or a function |
31
+ | valueFormat | Value axis format: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function |
32
32
  | yScale | `linear` or `log` |
33
33
  | yMin | Fixed start of the value axis |
34
34
  | yMax | Fixed end of the value axis |
package/combo/README.md CHANGED
@@ -34,7 +34,7 @@ import { TxComboChart } from '@tectra-ng/charts/combo';
34
34
  | showTooltip | Shows the tooltip on hover and keyboard focus |
35
35
  | tooltipMode | `shared` (every series of the category) or `single` |
36
36
  | tooltipFormatter | `(value, { seriesIndex, dataPointIndex }) => string` for tooltip values; default — the format of the series' axis |
37
- | valueFormat | Format of the main value axis: `number`, `integer`, `compact`, `percent` or a function |
37
+ | valueFormat | Format of the main value axis: `number`, `integer`, `compact`, `percent`, a currency (`{ currency: 'USD' }`) or a function |
38
38
  | y2ValueFormat | Format of the second value axis; the main one by default |
39
39
  | yScale | `linear` or `log` for the main value axis |
40
40
  | yMin | Fixed start of the main value axis |
package/core/README.md CHANGED
@@ -15,16 +15,17 @@ import { linearScale, niceDomain, chartNumberFormatter, TxChartSeries } from '@t
15
15
  | `timeScale(domain, range)` | Time in ms; `ticks(count)` and `interval(count)` pick calendar steps — seconds, minutes, hours, days, weeks, months, years |
16
16
  | `bandScale(count, range, paddingInner?, paddingOuter?)` | Equal bands for categories: `start`, `center`, `bandwidth`, `indexAt` |
17
17
  | `pointScale(count, range)` | Evenly spaced points from edge to edge: `at`, `indexAt` |
18
- | `niceDomain(min, max, count?)` | Widens a range to round numbers (`[3, 97]` → `[0, 100]`) |
19
- | `linearTicks(min, max, count?)`, `tickStep`, `logTicks`, `timeTicks` | Round tick values |
18
+ | `niceDomain(min, max, count?, integer?)` | Widens a range to round numbers (`[3, 97]` → `[0, 100]`) |
19
+ | `linearTicks(min, max, count?, integer?)`, `tickStep`, `logTicks`, `timeTicks` | Round tick values; with `integer` the step is a whole number, at least 1 — the value axes of the charts do this for the `integer` format, so small counts never repeat a label |
20
20
  | `toTime(value)` | ISO string (a date-only string is local midnight), `Date` or timestamp → ms |
21
21
 
22
22
  ## Formats
23
23
 
24
24
  | Function | What it does |
25
25
  |---|---|
26
- | `chartNumberFormatter(intl, format)` | `number` (up to 2 decimals), `integer`, `compact` (`1.2K`), `percent` or your function → `(value) => string` |
27
- | `tickFormatter(intl, ticks, format)` | Like the above with as many decimals as the tick step needs |
26
+ | `chartNumberFormatter(intl, format)` | `number` (up to 2 decimals), `integer`, `compact` (`1.2K`), `percent`, a currency (`{ currency: 'USD', currencyDisplay? }` → `$36,400`, cents only when the value has them) or your function → `(value) => string` |
27
+ | `tickFormatter(intl, ticks, format)` | Like the above with as many decimals as the tick step needs; a currency in compact form (`$36K`) |
28
+ | `compactValueFormatter(intl, format)` | Short form for tight labels: a currency as `$36.4K`, `number` as `compact`, other formats as they are |
28
29
  | `compactNumber(value, intl?)` | `1234567` → `1.2M` |
29
30
  | `timeTickFormatter(intl, interval, span)`, `timeTooltipFormatter(intl, interval)` | Dates for ticks and tooltips through `Intl.DateTimeFormat` |
30
31
  | `chartMonthNames(intl, 'long' \| 'short')` | 12 capitalised month names |
@@ -39,7 +40,8 @@ import { linearScale, niceDomain, chartNumberFormatter, TxChartSeries } from '@t
39
40
  | `largestTriangleThreeBuckets(points, threshold)`, `decimateSeries(points, threshold)` | Thin long series and keep their shape |
40
41
  | `normalizeSeries(series, categories, xType)` | Turns `TxChartSeries[]` into labels, x values and a value table |
41
42
  | `cartesianLayout(options)` | Plot area, value and category scales, tick labels (skipped or rotated when they collide), grid and zero line |
42
- | `chartColor(index)`, `chartPalette(count?)`, `seriesColor(color, index)` | The series palette as `var(--tx-chart-series-colorN)` |
43
+ | `chartColor(index)`, `chartPalette(count?)`, `seriesColor(color, index)` | The series palette as `var(--tx-chart-series-colorN)`; colour 1 is the primary colour and the others turn its hue in OKLCH, so every primary gets six clearly different neighbours |
44
+ | `injectLegendPlace(position)`, `chartLegendPlace(position, width)`, `injectHostWidth()` | A `left` / `right` legend moves to the `bottom` when the chart is narrower than `TX_CHART_NARROW_WIDTH` (420px); the width is measured in the browser, the server keeps the asked position |
43
45
 
44
46
  ## Components
45
47
 
@@ -55,7 +57,7 @@ import { linearScale, niceDomain, chartNumberFormatter, TxChartSeries } from '@t
55
57
 
56
58
  ## Types
57
59
 
58
- `TxChartSeries` (`name`, `data` — numbers or `{ x, y }` points, `color?`), `TxChartValueFormat`, `TxChartTooltipFormatter` (`(value, { seriesIndex, dataPointIndex }) => string`), `TxChartLegendItem`, `TxChartTooltipData`, `TxChartLegendPosition`, `TxChartHeight`.
60
+ `TxChartSeries` (`name`, `data` — numbers or `{ x, y }` points, `color?`), `TxChartValueFormat` (`number`, `integer`, `compact`, `percent`, `TxChartCurrencyFormat` or a function), `TxChartCurrencyFormat` (`currency`, `currencyDisplay?` — formatted in the active tectra locale, compact on the axes and in full in tooltips; it follows locale switches), `TxChartTooltipFormatter` (`(value, { seriesIndex, dataPointIndex }) => string`), `TxChartLegendItem`, `TxChartTooltipData`, `TxChartLegendPosition`, `TxChartHeight`.
59
61
 
60
62
  ## Notes
61
63
 
@@ -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.5",
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.5",
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.5",
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.5",
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.5",
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.5",
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.5",
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.5",
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.5",
498
+ version: "22.2.6",
499
499
  ngImport: i0,
500
500
  type: TxBulletChart,
501
501
  decorators: [{
@@ -12,6 +12,20 @@ function candleTimes(candles) {
12
12
  const times = candles.map((candle) => candle.x instanceof Date || typeof candle.x === "string" && ISO_DATE.test(candle.x) ? toTime(candle.x) : null);
13
13
  return times.every((time) => time !== null) ? times : null;
14
14
  }
15
+ function candleStep(times) {
16
+ let gap = Infinity;
17
+ for (let index = 1; index < times.length; index++) {
18
+ const next = Math.abs(times[index] - times[index - 1]);
19
+ if (next > 0) gap = Math.min(gap, next);
20
+ }
21
+ return timeInterval(0, Number.isFinite(gap) ? gap : 864e5, 1);
22
+ }
23
+ function blankRepeats(labels) {
24
+ return labels.map((label, index) => index > 0 && label === labels[index - 1] ? "" : label);
25
+ }
26
+ function unique(labels) {
27
+ return new Set(labels).size === labels.length;
28
+ }
15
29
  function candleLabels(candles, intl) {
16
30
  const times = candleTimes(candles);
17
31
  if (!times) {
@@ -21,13 +35,15 @@ function candleLabels(candles, intl) {
21
35
  full: labels
22
36
  };
23
37
  }
24
- const span = times[times.length - 1] - times[0];
25
- const interval = timeInterval(times[0], times[times.length - 1] || times[0] + 1, Math.max(2, Math.min(12, times.length)));
26
- const axis = timeTickFormatter(intl, interval, span);
27
- const full = timeTooltipFormatter(intl, interval);
38
+ const interval = candleStep(times);
39
+ const span = Math.abs(times[times.length - 1] - times[0]);
40
+ const short = timeTickFormatter(intl, interval, span);
41
+ const long = timeTooltipFormatter(intl, interval);
42
+ const full = times.map((time) => long(time));
43
+ const axis = times.map((time) => short(time));
28
44
  return {
29
- axis: times.map((time) => axis(time)),
30
- full: times.map((time) => full(time))
45
+ axis: blankRepeats(unique(axis) ? axis : full),
46
+ full
31
47
  };
32
48
  }
33
49
  function candleExtent(candles, volumeShare) {
@@ -333,7 +349,7 @@ var TxCandlestickChart = class TxCandlestickChart {
333
349
  }
334
350
  static ɵfac = i0.ɵɵngDeclareFactory({
335
351
  minVersion: "12.0.0",
336
- version: "22.2.5",
352
+ version: "22.2.6",
337
353
  ngImport: i0,
338
354
  type: TxCandlestickChart,
339
355
  deps: [],
@@ -341,7 +357,7 @@ var TxCandlestickChart = class TxCandlestickChart {
341
357
  });
342
358
  static ɵcmp = i0.ɵɵngDeclareComponent({
343
359
  minVersion: "17.0.0",
344
- version: "22.2.5",
360
+ version: "22.2.6",
345
361
  type: TxCandlestickChart,
346
362
  isStandalone: true,
347
363
  selector: "tx-candlestick-chart",
@@ -578,7 +594,7 @@ var TxCandlestickChart = class TxCandlestickChart {
578
594
  };
579
595
  i0.ɵɵngDeclareClassMetadata({
580
596
  minVersion: "12.0.0",
581
- version: "22.2.5",
597
+ version: "22.2.6",
582
598
  ngImport: i0,
583
599
  type: TxCandlestickChart,
584
600
  decorators: [{
@@ -779,6 +795,6 @@ i0.ɵɵngDeclareClassMetadata({
779
795
  }]
780
796
  }
781
797
  });
782
- export { TxCandlestickChart, candleExtent, candleLabels, candleTimes, isUp };
798
+ export { TxCandlestickChart, candleExtent, candleLabels, candleStep, candleTimes, isUp };
783
799
 
784
800
  //# sourceMappingURL=tectra-ng-charts-candlestick.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-charts-candlestick.mjs","names":[],"sources":["../../../../packages/charts/candlestick/src/candlestick-layout.ts","../../../../packages/charts/candlestick/src/candlestick.icons.ts","../../../../packages/charts/candlestick/src/candlestick.theme.ts","../../../../packages/charts/candlestick/src/candlestick-chart.component.ts","../../../../packages/charts/candlestick/src/candlestick-chart.component.html"],"sourcesContent":["import { TxRange, timeInterval, timeTickFormatter, timeTooltipFormatter, toTime } from '@tectra-ng/charts/core';\nimport { TxCandle } from './candlestick-chart.types';\n\nconst ISO_DATE = /^\\d{4}-\\d{2}-\\d{2}/;\n\n/** Timestamps of the candles when every `x` is a `Date` or an ISO date string; `null` otherwise. */\nexport function candleTimes(candles: readonly TxCandle[]): number[] | null {\n if (!candles.length) return null;\n const times = candles.map((candle) => (candle.x instanceof Date || (typeof candle.x === 'string' && ISO_DATE.test(candle.x)) ? toTime(candle.x) : null));\n return times.every((time): time is number => time !== null) ? times : null;\n}\n\n/**\n * Axis and tooltip labels of the candles: formatted dates for time data, the `x` values as text otherwise.\n */\nexport function candleLabels(candles: readonly TxCandle[], intl: string): { axis: string[]; full: string[] } {\n const times = candleTimes(candles);\n if (!times) {\n const labels = candles.map((candle) => String(candle.x));\n return { axis: labels, full: labels };\n }\n const span = times[times.length - 1] - times[0];\n const interval = timeInterval(times[0], times[times.length - 1] || times[0] + 1, Math.max(2, Math.min(12, times.length)));\n const axis = timeTickFormatter(intl, interval, span);\n const full = timeTooltipFormatter(intl, interval);\n return { axis: times.map((time) => axis(time)), full: times.map((time) => full(time)) };\n}\n\n/**\n * Price range of the candles with room under it for the volume bars, which take `volumeShare` of the height (at most 0.6).\n */\nexport function candleExtent(candles: readonly TxCandle[], volumeShare: number): TxRange {\n if (!candles.length) return [0, 1];\n let low = Infinity;\n let high = -Infinity;\n for (const candle of candles) {\n low = Math.min(low, candle.low, candle.open, candle.close);\n high = Math.max(high, candle.high, candle.open, candle.close);\n }\n const span = high - low || Math.abs(high) * 0.1 || 1;\n const share = Math.min(0.6, Math.max(0, volumeShare));\n return [low - (span * share) / (1 - share), high];\n}\n\n/** Tells whether a candle rose, that is its close is at or above its open. */\nexport function isUp(candle: TxCandle): boolean {\n return candle.close >= candle.open;\n}\n","import { TxIconSet, txIconChartBar } from '@tectra-ng/icons';\n\nexport const CANDLESTICK_ICON_DEFAULTS: TxIconSet = {\n 'chart-bar': txIconChartBar,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const CANDLESTICK_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 TxChartAxes,\n TxChartFrame,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartPointerEvent,\n TxChartTooltipData,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n cartesianLayout,\n chartNumberFormatter,\n chartSummary,\n initialChartSize,\n injectChartEntrance,\n readTokenNumber,\n stepIndex,\n} from '@tectra-ng/charts/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { candleExtent, candleLabels, isUp } from './candlestick-layout';\nimport { TxCandle, TxCandleEvent, TxCandleShape, TxCandlestickChartPart, TxCandlestickVariant } from './candlestick-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CANDLESTICK_ICON_DEFAULTS } from './candlestick.icons';\nimport { CANDLESTICK_THEME } from './candlestick.theme';\n\nconst DEFAULTS = { bodyWidth: 0.68, volumeHeight: 0.22 };\nconst EDGE_SLACK = 8;\n\n@Component({\n selector: 'tx-candlestick-chart',\n imports: [TxChartFrame, TxChartAxes],\n templateUrl: './candlestick-chart.component.html',\n styleUrl: './candlestick-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-candlestick-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-variant]': 'variant()',\n '[class.tx-candlestick-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-candlestick-chart--entering]': 'entrance.active()',\n '[class.tx-candlestick-chart--morph]': 'morph()',\n '[class.tx-candlestick-chart--active]': 'active() !== null',\n },\n viewProviders: [provideTxIconDefaults(CANDLESTICK_ICON_DEFAULTS)],\n})\nexport class TxCandlestickChart {\n private readonly candlestickTheme = injectTokens(CANDLESTICK_THEME);\n\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly data = input<readonly TxCandle[] | null | undefined>([]);\n readonly variant = input<TxCandlestickVariant>('candle');\n readonly showVolume = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly height = input<TxChartHeight>(380);\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly volumeFormat = input<TxChartValueFormat>('compact');\n readonly yMin = input<number | undefined>(undefined);\n readonly yMax = input<number | undefined>(undefined);\n readonly yAxisTitle = input('');\n readonly grid = input<TxChartGridMode>('value');\n readonly labelMode = input<TxChartLabelMode>('skip');\n readonly yAxisPosition = input<'left' | 'right'>('right');\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<TxCandlestickChartPart, TxCandlestickChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly candleClick = output<TxCandleEvent>();\n\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('candlestickChart', 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 readonly active = signal<number | null>(null);\n readonly geometry = signal(DEFAULTS);\n\n private readonly intl = computed(() => this.locale.locale().intl);\n readonly list = computed(() => (this.data() ?? []).filter((candle) => [candle.open, candle.high, candle.low, candle.close].every((value) => Number.isFinite(value))));\n readonly isEmpty = computed(() => !this.list().length);\n readonly hasVolume = computed(() => this.showVolume() && this.list().some((candle) => (candle.volume ?? 0) > 0));\n readonly size = linkedSignal(() => initialChartSize(this.height(), null, undefined, this.toolbar()));\n readonly labels = computed(() => candleLabels(this.list(), this.intl()));\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n readonly volumeFormatter = computed(() => chartNumberFormatter(this.intl(), this.volumeFormat()));\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const labels = this.labels().axis;\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n category: { kind: 'band', labels, count: labels.length, labelMode: this.labelMode() },\n value: {\n extent: candleExtent(this.list(), this.hasVolume() ? this.geometry().volumeHeight : 0),\n format: this.valueFormat(),\n includeZero: false,\n min: this.yMin(),\n max: this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid(),\n yAxisPosition: this.yAxisPosition(),\n });\n });\n\n readonly candles = computed<TxCandleShape[]>(() => {\n const layout = this.layout();\n const band = layout.category as TxBandScale;\n const scale = layout.value;\n const width = Math.max(1, band.bandwidth * Math.min(1, Math.max(0.05, this.geometry().bodyWidth)));\n const plot = layout.plot;\n const volumeArea = this.hasVolume() ? plot.height * this.geometry().volumeHeight : 0;\n const maxVolume = Math.max(0, ...this.list().map((candle) => candle.volume ?? 0));\n return this.list().map((candle, index) => {\n const open = scale.map(candle.open);\n const close = scale.map(candle.close);\n const volume = candle.volume ?? 0;\n const volumeHeight = volumeArea && maxVolume ? (Math.max(0, volume) / maxVolume) * volumeArea : 0;\n return {\n index,\n key: `${index}`,\n up: isUp(candle),\n center: band.center(index),\n width,\n high: scale.map(candle.high),\n low: scale.map(candle.low),\n open,\n close,\n bodyY: Math.min(open, close),\n bodyHeight: Math.max(1, Math.abs(open - close)),\n volumeY: volumeHeight ? plot.top + plot.height - volumeHeight : null,\n volumeHeight,\n };\n });\n });\n\n readonly crosshair = computed(() => {\n const index = this.active();\n const candle = index === null ? null : this.candles()[index];\n if (!candle) return null;\n const plot = this.layout().plot;\n return { x: candle.center, y1: plot.top, y2: plot.top + plot.height };\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const index = this.active();\n if (index === null || !this.showTooltip()) return null;\n const candle = this.list()[index];\n const shape = this.candles()[index];\n if (!candle || !shape) return null;\n const t = this.translations();\n const format = this.valueFormatter();\n const color = `var(--tx-chart-candlestick-${shape.up ? 'up' : 'down'}-color)`;\n const rows = [\n { label: t.chartOpen, value: format(candle.open), color, raw: candle.open, seriesIndex: 0 },\n { label: t.chartHigh, value: format(candle.high), color: 'transparent', raw: candle.high, seriesIndex: 1 },\n { label: t.chartLow, value: format(candle.low), color: 'transparent', raw: candle.low, seriesIndex: 2 },\n { label: t.chartClose, value: format(candle.close), color: 'transparent', raw: candle.close, seriesIndex: 3, active: true },\n ...(this.hasVolume() && candle.volume !== null && candle.volume !== undefined\n ? [{ label: t.chartVolume, value: this.volumeFormatter()(candle.volume), color: 'transparent', raw: candle.volume, seriesIndex: 4 }]\n : []),\n ];\n return { title: this.labels().full[index] ?? '', rows, index, x: shape.center, y: shape.high, placement: 'top' };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const list = this.list();\n const format = this.valueFormatter();\n const range = list.length ? [format(Math.min(...list.map((candle) => candle.low))), format(Math.max(...list.map((candle) => candle.high)))] as [string, string] : null;\n const text = chartSummary(t, this.intl(), t.chartCandlestick, 1, list.length, range);\n return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;\n });\n\n readonly dataTable = computed(() => {\n const t = this.translations();\n const format = this.valueFormatter();\n const volume = this.hasVolume();\n return {\n columns: [\n { key: 'open', label: t.chartOpen },\n { key: 'high', label: t.chartHigh },\n { key: 'low', label: t.chartLow },\n { key: 'close', label: t.chartClose },\n ...(volume ? [{ key: 'volume', label: t.chartVolume }] : []),\n ],\n rows: this.list().map((candle, index) => ({\n label: this.labels().full[index],\n cells: [\n format(candle.open),\n format(candle.high),\n format(candle.low),\n format(candle.close),\n ...(volume ? [candle.volume === null || candle.volume === undefined ? '—' : this.volumeFormatter()(candle.volume)] : []),\n ],\n })),\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 onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.active.set(null);\n return;\n }\n const plot = this.layout().plot;\n const inside =\n event.x >= plot.left - EDGE_SLACK && event.x <= plot.left + plot.width + EDGE_SLACK && event.y >= plot.top - EDGE_SLACK && event.y <= plot.top + plot.height + EDGE_SLACK;\n const index = inside ? (this.layout().category as TxBandScale).indexAt(event.x) : -1;\n this.active.set(index >= 0 ? index : null);\n if (event.type === 'click' && index >= 0) {\n this.candleClick.emit({ index, label: this.labels().full[index], candle: this.list()[index] });\n }\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const index = stepIndex(event.key, this.active() ?? -1, this.list().length);\n if (index < 0) return;\n this.active.set(index);\n const candle = this.list()[index];\n const t = this.translations();\n const format = this.valueFormatter();\n this.frame()?.announce(\n `${this.labels().full[index]}: ${t.chartOpen} ${format(candle.open)}, ${t.chartHigh} ${format(candle.high)}, ${t.chartLow} ${format(candle.low)}, ${t.chartClose} ${format(candle.close)}`,\n );\n }\n\n private readGeometry(): void {\n const element = this.host.nativeElement;\n const next = {\n bodyWidth: readTokenNumber(element, '--tx-chart-candlestick-body-width', DEFAULTS.bodyWidth),\n volumeHeight: readTokenNumber(element, '--tx-chart-candlestick-volume-height', DEFAULTS.volumeHeight),\n };\n const current = this.geometry();\n if (current.bodyWidth !== next.bodyWidth || current.volumeHeight !== next.volumeHeight) {\n this.geometry.set(next);\n }\n }\n}\n","<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [showLegend]=\"false\"\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 (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (hasVolume()) {\n <svg:g class=\"tx-candlestick-chart__volumes\">\n @for (candle of candles(); track candle.key) {\n @if (candle.volumeY !== null) {\n <svg:rect\n class=\"tx-candlestick-chart__volume\"\n [class]=\"passThrough().volume?.class\"\n [style]=\"passThrough().volume?.style\"\n [attr.data-dir]=\"candle.up ? 'up' : 'down'\"\n [attr.x]=\"candle.center - candle.width / 2\"\n [attr.y]=\"candle.volumeY\"\n [attr.width]=\"candle.width\"\n [attr.height]=\"candle.volumeHeight\"\n />\n }\n }\n </svg:g>\n }\n @if (crosshair(); as line) {\n <svg:line\n class=\"tx-candlestick-chart__crosshair\"\n [class]=\"passThrough().crosshair?.class\"\n [style]=\"passThrough().crosshair?.style\"\n [attr.x1]=\"line.x\"\n [attr.x2]=\"line.x\"\n [attr.y1]=\"line.y1\"\n [attr.y2]=\"line.y2\"\n />\n }\n <svg:g class=\"tx-candlestick-chart__candles\">\n @for (candle of candles(); track candle.key) {\n <svg:g\n class=\"tx-candlestick-chart__candle\"\n [class.tx-candlestick-chart__candle--active]=\"active() === candle.index\"\n [class]=\"passThrough().candle?.class\"\n [style]=\"passThrough().candle?.style\"\n [attr.data-dir]=\"candle.up ? 'up' : 'down'\"\n [attr.data-index]=\"candle.index\"\n [style.--tx-candlestick-chart-order]=\"candle.index\"\n >\n <svg:line\n class=\"tx-candlestick-chart__wick\"\n [class]=\"passThrough().wick?.class\"\n [style]=\"passThrough().wick?.style\"\n [attr.x1]=\"candle.center\"\n [attr.x2]=\"candle.center\"\n [attr.y1]=\"candle.high\"\n [attr.y2]=\"candle.low\"\n />\n @if (variant() === 'candle') {\n <svg:rect\n class=\"tx-candlestick-chart__body\"\n [class]=\"passThrough().body?.class\"\n [style]=\"passThrough().body?.style\"\n [attr.x]=\"candle.center - candle.width / 2\"\n [attr.y]=\"candle.bodyY\"\n [attr.width]=\"candle.width\"\n [attr.height]=\"candle.bodyHeight\"\n />\n } @else {\n <svg:line class=\"tx-candlestick-chart__tick\" [attr.x1]=\"candle.center - candle.width / 2\" [attr.x2]=\"candle.center\" [attr.y1]=\"candle.open\" [attr.y2]=\"candle.open\" />\n <svg:line class=\"tx-candlestick-chart__tick\" [attr.x1]=\"candle.center\" [attr.x2]=\"candle.center + candle.width / 2\" [attr.y1]=\"candle.close\" [attr.y2]=\"candle.close\" />\n }\n </svg:g>\n }\n </svg:g>\n</tx-chart-frame>\n"],"mappings":";;;;;;;;AAGA,MAAM,WAAW;AAGjB,SAAgB,YAAY,SAA4B;CACtD,IAAI,CAAC,QAAQ,QAAQ,OAAO;CAC5B,MAAM,QAAQ,QAAQ,KAAK,WAAY,OAAO,aAAa,QAAS,OAAO,OAAO,MAAM,YAAY,SAAS,KAAK,OAAO,CAAC,IAAK,OAAO,OAAO,CAAC,IAAI,IAAK;CACvJ,OAAO,MAAM,OAAO,SAAyB,SAAS,IAAI,IAAI,QAAQ;AACxE;AAKA,SAAgB,aAAa,SAA8B,MAAY;CACrE,MAAM,QAAQ,YAAY,OAAO;CACjC,IAAI,CAAC,OAAO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":[],"sources":["../../../../packages/charts/candlestick/src/candlestick-layout.ts","../../../../packages/charts/candlestick/src/candlestick.icons.ts","../../../../packages/charts/candlestick/src/candlestick.theme.ts","../../../../packages/charts/candlestick/src/candlestick-chart.component.ts","../../../../packages/charts/candlestick/src/candlestick-chart.component.html"],"sourcesContent":["import { TxRange, TxTimeInterval, timeInterval, timeTickFormatter, timeTooltipFormatter, toTime } from '@tectra-ng/charts/core';\nimport { TxCandle } from './candlestick-chart.types';\n\nconst ISO_DATE = /^\\d{4}-\\d{2}-\\d{2}/;\n\n/** Timestamps of the candles when every `x` is a `Date` or an ISO date string; `null` otherwise. */\nexport function candleTimes(candles: readonly TxCandle[]): number[] | null {\n if (!candles.length) return null;\n const times = candles.map((candle) => (candle.x instanceof Date || (typeof candle.x === 'string' && ISO_DATE.test(candle.x)) ? toTime(candle.x) : null));\n return times.every((time): time is number => time !== null) ? times : null;\n}\n\n/** Calendar step of the candles: the step that covers the smallest gap between two of them, a day for a single candle. */\nexport function candleStep(times: readonly number[]): TxTimeInterval {\n let gap = Infinity;\n for (let index = 1; index < times.length; index++) {\n const next = Math.abs(times[index] - times[index - 1]);\n if (next > 0) gap = Math.min(gap, next);\n }\n return timeInterval(0, Number.isFinite(gap) ? gap : 86_400_000, 1);\n}\n\nfunction blankRepeats(labels: readonly string[]): string[] {\n return labels.map((label, index) => (index > 0 && label === labels[index - 1] ? '' : label));\n}\n\nfunction unique(labels: readonly string[]): boolean {\n return new Set(labels).size === labels.length;\n}\n\n/**\n * Axis and tooltip labels of the candles: dates formatted by the step of the data for time data, the `x` values as text\n * otherwise. Axis labels are unique: when the step format repeats a label the full date is used, and a label equal to the\n * one before it is left blank.\n */\nexport function candleLabels(candles: readonly TxCandle[], intl: string): { axis: string[]; full: string[] } {\n const times = candleTimes(candles);\n if (!times) {\n const labels = candles.map((candle) => String(candle.x));\n return { axis: labels, full: labels };\n }\n const interval = candleStep(times);\n const span = Math.abs(times[times.length - 1] - times[0]);\n const short = timeTickFormatter(intl, interval, span);\n const long = timeTooltipFormatter(intl, interval);\n const full = times.map((time) => long(time));\n const axis = times.map((time) => short(time));\n return { axis: blankRepeats(unique(axis) ? axis : full), full };\n}\n\n/**\n * Price range of the candles with room under it for the volume bars, which take `volumeShare` of the height (at most 0.6).\n */\nexport function candleExtent(candles: readonly TxCandle[], volumeShare: number): TxRange {\n if (!candles.length) return [0, 1];\n let low = Infinity;\n let high = -Infinity;\n for (const candle of candles) {\n low = Math.min(low, candle.low, candle.open, candle.close);\n high = Math.max(high, candle.high, candle.open, candle.close);\n }\n const span = high - low || Math.abs(high) * 0.1 || 1;\n const share = Math.min(0.6, Math.max(0, volumeShare));\n return [low - (span * share) / (1 - share), high];\n}\n\n/** Tells whether a candle rose, that is its close is at or above its open. */\nexport function isUp(candle: TxCandle): boolean {\n return candle.close >= candle.open;\n}\n","import { TxIconSet, txIconChartBar } from '@tectra-ng/icons';\n\nexport const CANDLESTICK_ICON_DEFAULTS: TxIconSet = {\n 'chart-bar': txIconChartBar,\n};\n","import { chartTokens } from '@tectra-ng/themes';\n\nexport const CANDLESTICK_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 TxChartAxes,\n TxChartFrame,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartPointerEvent,\n TxChartTooltipData,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n cartesianLayout,\n chartNumberFormatter,\n chartSummary,\n initialChartSize,\n injectChartEntrance,\n readTokenNumber,\n stepIndex,\n} from '@tectra-ng/charts/core';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { TxLocaleService, injectTranslations } from '@tectra-ng/core/i18n';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraChartTokens, TectraDeepPartial, toStyleObject } from '@tectra-ng/themes';\nimport { candleExtent, candleLabels, isUp } from './candlestick-layout';\nimport { TxCandle, TxCandleEvent, TxCandleShape, TxCandlestickChartPart, TxCandlestickVariant } from './candlestick-chart.types';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CANDLESTICK_ICON_DEFAULTS } from './candlestick.icons';\nimport { CANDLESTICK_THEME } from './candlestick.theme';\n\nconst DEFAULTS = { bodyWidth: 0.68, volumeHeight: 0.22 };\nconst EDGE_SLACK = 8;\n\n@Component({\n selector: 'tx-candlestick-chart',\n imports: [TxChartFrame, TxChartAxes],\n templateUrl: './candlestick-chart.component.html',\n styleUrl: './candlestick-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-candlestick-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[attr.data-variant]': 'variant()',\n '[class.tx-candlestick-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-candlestick-chart--entering]': 'entrance.active()',\n '[class.tx-candlestick-chart--morph]': 'morph()',\n '[class.tx-candlestick-chart--active]': 'active() !== null',\n },\n viewProviders: [provideTxIconDefaults(CANDLESTICK_ICON_DEFAULTS)],\n})\nexport class TxCandlestickChart {\n private readonly candlestickTheme = injectTokens(CANDLESTICK_THEME);\n\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly data = input<readonly TxCandle[] | null | undefined>([]);\n readonly variant = input<TxCandlestickVariant>('candle');\n readonly showVolume = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly height = input<TxChartHeight>(380);\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly volumeFormat = input<TxChartValueFormat>('compact');\n readonly yMin = input<number | undefined>(undefined);\n readonly yMax = input<number | undefined>(undefined);\n readonly yAxisTitle = input('');\n readonly grid = input<TxChartGridMode>('value');\n readonly labelMode = input<TxChartLabelMode>('skip');\n readonly yAxisPosition = input<'left' | 'right'>('right');\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<TxCandlestickChartPart, TxCandlestickChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly candleClick = output<TxCandleEvent>();\n\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('candlestickChart', 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 readonly active = signal<number | null>(null);\n readonly geometry = signal(DEFAULTS);\n\n private readonly intl = computed(() => this.locale.locale().intl);\n readonly list = computed(() => (this.data() ?? []).filter((candle) => [candle.open, candle.high, candle.low, candle.close].every((value) => Number.isFinite(value))));\n readonly isEmpty = computed(() => !this.list().length);\n readonly hasVolume = computed(() => this.showVolume() && this.list().some((candle) => (candle.volume ?? 0) > 0));\n readonly size = linkedSignal(() => initialChartSize(this.height(), null, undefined, this.toolbar()));\n readonly labels = computed(() => candleLabels(this.list(), this.intl()));\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n readonly volumeFormatter = computed(() => chartNumberFormatter(this.intl(), this.volumeFormat()));\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const labels = this.labels().axis;\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n category: { kind: 'band', labels, count: labels.length, labelMode: this.labelMode() },\n value: {\n extent: candleExtent(this.list(), this.hasVolume() ? this.geometry().volumeHeight : 0),\n format: this.valueFormat(),\n includeZero: false,\n min: this.yMin(),\n max: this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid(),\n yAxisPosition: this.yAxisPosition(),\n });\n });\n\n readonly candles = computed<TxCandleShape[]>(() => {\n const layout = this.layout();\n const band = layout.category as TxBandScale;\n const scale = layout.value;\n const width = Math.max(1, band.bandwidth * Math.min(1, Math.max(0.05, this.geometry().bodyWidth)));\n const plot = layout.plot;\n const volumeArea = this.hasVolume() ? plot.height * this.geometry().volumeHeight : 0;\n const maxVolume = Math.max(0, ...this.list().map((candle) => candle.volume ?? 0));\n return this.list().map((candle, index) => {\n const open = scale.map(candle.open);\n const close = scale.map(candle.close);\n const volume = candle.volume ?? 0;\n const volumeHeight = volumeArea && maxVolume ? (Math.max(0, volume) / maxVolume) * volumeArea : 0;\n return {\n index,\n key: `${index}`,\n up: isUp(candle),\n center: band.center(index),\n width,\n high: scale.map(candle.high),\n low: scale.map(candle.low),\n open,\n close,\n bodyY: Math.min(open, close),\n bodyHeight: Math.max(1, Math.abs(open - close)),\n volumeY: volumeHeight ? plot.top + plot.height - volumeHeight : null,\n volumeHeight,\n };\n });\n });\n\n readonly crosshair = computed(() => {\n const index = this.active();\n const candle = index === null ? null : this.candles()[index];\n if (!candle) return null;\n const plot = this.layout().plot;\n return { x: candle.center, y1: plot.top, y2: plot.top + plot.height };\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const index = this.active();\n if (index === null || !this.showTooltip()) return null;\n const candle = this.list()[index];\n const shape = this.candles()[index];\n if (!candle || !shape) return null;\n const t = this.translations();\n const format = this.valueFormatter();\n const color = `var(--tx-chart-candlestick-${shape.up ? 'up' : 'down'}-color)`;\n const rows = [\n { label: t.chartOpen, value: format(candle.open), color, raw: candle.open, seriesIndex: 0 },\n { label: t.chartHigh, value: format(candle.high), color: 'transparent', raw: candle.high, seriesIndex: 1 },\n { label: t.chartLow, value: format(candle.low), color: 'transparent', raw: candle.low, seriesIndex: 2 },\n { label: t.chartClose, value: format(candle.close), color: 'transparent', raw: candle.close, seriesIndex: 3, active: true },\n ...(this.hasVolume() && candle.volume !== null && candle.volume !== undefined\n ? [{ label: t.chartVolume, value: this.volumeFormatter()(candle.volume), color: 'transparent', raw: candle.volume, seriesIndex: 4 }]\n : []),\n ];\n return { title: this.labels().full[index] ?? '', rows, index, x: shape.center, y: shape.high, placement: 'top' };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const list = this.list();\n const format = this.valueFormatter();\n const range = list.length ? [format(Math.min(...list.map((candle) => candle.low))), format(Math.max(...list.map((candle) => candle.high)))] as [string, string] : null;\n const text = chartSummary(t, this.intl(), t.chartCandlestick, 1, list.length, range);\n return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;\n });\n\n readonly dataTable = computed(() => {\n const t = this.translations();\n const format = this.valueFormatter();\n const volume = this.hasVolume();\n return {\n columns: [\n { key: 'open', label: t.chartOpen },\n { key: 'high', label: t.chartHigh },\n { key: 'low', label: t.chartLow },\n { key: 'close', label: t.chartClose },\n ...(volume ? [{ key: 'volume', label: t.chartVolume }] : []),\n ],\n rows: this.list().map((candle, index) => ({\n label: this.labels().full[index],\n cells: [\n format(candle.open),\n format(candle.high),\n format(candle.low),\n format(candle.close),\n ...(volume ? [candle.volume === null || candle.volume === undefined ? '—' : this.volumeFormatter()(candle.volume)] : []),\n ],\n })),\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 onPointer(event: TxChartPointerEvent): void {\n if (event.type === 'leave') {\n this.active.set(null);\n return;\n }\n const plot = this.layout().plot;\n const inside =\n event.x >= plot.left - EDGE_SLACK && event.x <= plot.left + plot.width + EDGE_SLACK && event.y >= plot.top - EDGE_SLACK && event.y <= plot.top + plot.height + EDGE_SLACK;\n const index = inside ? (this.layout().category as TxBandScale).indexAt(event.x) : -1;\n this.active.set(index >= 0 ? index : null);\n if (event.type === 'click' && index >= 0) {\n this.candleClick.emit({ index, label: this.labels().full[index], candle: this.list()[index] });\n }\n }\n\n onNavigate(event: KeyboardEvent): void {\n if (event.key === 'Escape') {\n this.active.set(null);\n return;\n }\n const index = stepIndex(event.key, this.active() ?? -1, this.list().length);\n if (index < 0) return;\n this.active.set(index);\n const candle = this.list()[index];\n const t = this.translations();\n const format = this.valueFormatter();\n this.frame()?.announce(\n `${this.labels().full[index]}: ${t.chartOpen} ${format(candle.open)}, ${t.chartHigh} ${format(candle.high)}, ${t.chartLow} ${format(candle.low)}, ${t.chartClose} ${format(candle.close)}`,\n );\n }\n\n private readGeometry(): void {\n const element = this.host.nativeElement;\n const next = {\n bodyWidth: readTokenNumber(element, '--tx-chart-candlestick-body-width', DEFAULTS.bodyWidth),\n volumeHeight: readTokenNumber(element, '--tx-chart-candlestick-volume-height', DEFAULTS.volumeHeight),\n };\n const current = this.geometry();\n if (current.bodyWidth !== next.bodyWidth || current.volumeHeight !== next.volumeHeight) {\n this.geometry.set(next);\n }\n }\n}\n","<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [showLegend]=\"false\"\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 (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (hasVolume()) {\n <svg:g class=\"tx-candlestick-chart__volumes\">\n @for (candle of candles(); track candle.key) {\n @if (candle.volumeY !== null) {\n <svg:rect\n class=\"tx-candlestick-chart__volume\"\n [class]=\"passThrough().volume?.class\"\n [style]=\"passThrough().volume?.style\"\n [attr.data-dir]=\"candle.up ? 'up' : 'down'\"\n [attr.x]=\"candle.center - candle.width / 2\"\n [attr.y]=\"candle.volumeY\"\n [attr.width]=\"candle.width\"\n [attr.height]=\"candle.volumeHeight\"\n />\n }\n }\n </svg:g>\n }\n @if (crosshair(); as line) {\n <svg:line\n class=\"tx-candlestick-chart__crosshair\"\n [class]=\"passThrough().crosshair?.class\"\n [style]=\"passThrough().crosshair?.style\"\n [attr.x1]=\"line.x\"\n [attr.x2]=\"line.x\"\n [attr.y1]=\"line.y1\"\n [attr.y2]=\"line.y2\"\n />\n }\n <svg:g class=\"tx-candlestick-chart__candles\">\n @for (candle of candles(); track candle.key) {\n <svg:g\n class=\"tx-candlestick-chart__candle\"\n [class.tx-candlestick-chart__candle--active]=\"active() === candle.index\"\n [class]=\"passThrough().candle?.class\"\n [style]=\"passThrough().candle?.style\"\n [attr.data-dir]=\"candle.up ? 'up' : 'down'\"\n [attr.data-index]=\"candle.index\"\n [style.--tx-candlestick-chart-order]=\"candle.index\"\n >\n <svg:line\n class=\"tx-candlestick-chart__wick\"\n [class]=\"passThrough().wick?.class\"\n [style]=\"passThrough().wick?.style\"\n [attr.x1]=\"candle.center\"\n [attr.x2]=\"candle.center\"\n [attr.y1]=\"candle.high\"\n [attr.y2]=\"candle.low\"\n />\n @if (variant() === 'candle') {\n <svg:rect\n class=\"tx-candlestick-chart__body\"\n [class]=\"passThrough().body?.class\"\n [style]=\"passThrough().body?.style\"\n [attr.x]=\"candle.center - candle.width / 2\"\n [attr.y]=\"candle.bodyY\"\n [attr.width]=\"candle.width\"\n [attr.height]=\"candle.bodyHeight\"\n />\n } @else {\n <svg:line class=\"tx-candlestick-chart__tick\" [attr.x1]=\"candle.center - candle.width / 2\" [attr.x2]=\"candle.center\" [attr.y1]=\"candle.open\" [attr.y2]=\"candle.open\" />\n <svg:line class=\"tx-candlestick-chart__tick\" [attr.x1]=\"candle.center\" [attr.x2]=\"candle.center + candle.width / 2\" [attr.y1]=\"candle.close\" [attr.y2]=\"candle.close\" />\n }\n </svg:g>\n }\n </svg:g>\n</tx-chart-frame>\n"],"mappings":";;;;;;;;AAGA,MAAM,WAAW;AAGjB,SAAgB,YAAY,SAA4B;CACtD,IAAI,CAAC,QAAQ,QAAQ,OAAO;CAC5B,MAAM,QAAQ,QAAQ,KAAK,WAAY,OAAO,aAAa,QAAS,OAAO,OAAO,MAAM,YAAY,SAAS,KAAK,OAAO,CAAC,IAAK,OAAO,OAAO,CAAC,IAAI,IAAK;CACvJ,OAAO,MAAM,OAAO,SAAyB,SAAS,IAAI,IAAI,QAAQ;AACxE;AAGA,SAAgB,WAAW,OAAwB;CACjD,IAAI,MAAM;CACV,KAAK,IAAI,QAAQ,GAAG,QAAQ,MAAM,QAAQ,SAAS;EACjD,MAAM,OAAO,KAAK,IAAI,MAAM,SAAS,MAAM,QAAQ,EAAE;EACrD,IAAI,OAAO,GAAG,MAAM,KAAK,IAAI,KAAK,IAAI;CACxC;CACA,OAAO,aAAa,GAAG,OAAO,SAAS,GAAG,IAAI,MAAM,OAAY,CAAC;AACnE;AAEA,SAAS,aAAa,QAAyB;CAC7C,OAAO,OAAO,KAAK,OAAO,UAAW,QAAQ,KAAK,UAAU,OAAO,QAAQ,KAAK,KAAK,KAAM;AAC7F;AAEA,SAAS,OAAO,QAAyB;CACvC,OAAO,IAAI,IAAI,MAAM,CAAC,CAAC,SAAS,OAAO;AACzC;AAOA,SAAgB,aAAa,SAA8B,MAAY;CACrE,MAAM,QAAQ,YAAY,OAAO;CACjC,IAAI,CAAC,OAAO;EACV,MAAM,SAAS,QAAQ,KAAK,WAAW,OAAO,OAAO,CAAC,CAAC;EACvD,OAAO;GAAE,M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AA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,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,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,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,aAAA;EAAA,CAAA;EAAA,iBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,GAAA,iBAAA,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"}
@@ -79,7 +79,7 @@ var TxColumnChart = class TxColumnChart {
79
79
  series = input([], ...ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []);
80
80
  categories = input([], ...ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []);
81
81
  annotations = input([], ...ngDevMode ? [{ debugName: "annotations" }] : /* istanbul ignore next */ []);
82
- stacked = input(true, {
82
+ stacked = input(false, {
83
83
  ...ngDevMode ? { debugName: "stacked" } : /* istanbul ignore next */ {},
84
84
  transform: booleanAttribute
85
85
  });
@@ -484,7 +484,7 @@ var TxColumnChart = class TxColumnChart {
484
484
  }
485
485
  static ɵfac = i0.ɵɵngDeclareFactory({
486
486
  minVersion: "12.0.0",
487
- version: "22.2.5",
487
+ version: "22.2.6",
488
488
  ngImport: i0,
489
489
  type: TxColumnChart,
490
490
  deps: [],
@@ -492,7 +492,7 @@ var TxColumnChart = class TxColumnChart {
492
492
  });
493
493
  static ɵcmp = i0.ɵɵngDeclareComponent({
494
494
  minVersion: "17.0.0",
495
- version: "22.2.5",
495
+ version: "22.2.6",
496
496
  type: TxColumnChart,
497
497
  isStandalone: true,
498
498
  selector: "tx-column-chart",
@@ -850,7 +850,7 @@ var TxColumnChart = class TxColumnChart {
850
850
  };
851
851
  i0.ɵɵngDeclareClassMetadata({
852
852
  minVersion: "12.0.0",
853
- version: "22.2.5",
853
+ version: "22.2.6",
854
854
  ngImport: i0,
855
855
  type: TxColumnChart,
856
856
  decorators: [{