@tectra-ng/charts 0.1.9 → 0.2.1

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 (122) hide show
  1. package/README.md +21 -1
  2. package/bar-list/README.md +30 -0
  3. package/boxplot/README.md +62 -0
  4. package/bullet/README.md +53 -0
  5. package/candlestick/README.md +57 -0
  6. package/column/README.md +4 -2
  7. package/combo/README.md +83 -0
  8. package/core/README.md +3 -1
  9. package/fesm2022/tectra-ng-charts-bar-list.mjs +299 -0
  10. package/fesm2022/tectra-ng-charts-bar-list.mjs.map +1 -0
  11. package/fesm2022/tectra-ng-charts-boxplot.mjs +887 -0
  12. package/fesm2022/tectra-ng-charts-boxplot.mjs.map +1 -0
  13. package/fesm2022/tectra-ng-charts-bullet.mjs +666 -0
  14. package/fesm2022/tectra-ng-charts-bullet.mjs.map +1 -0
  15. package/fesm2022/tectra-ng-charts-candlestick.mjs +778 -0
  16. package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -0
  17. package/fesm2022/tectra-ng-charts-column.mjs +149 -66
  18. package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
  19. package/fesm2022/tectra-ng-charts-combo.mjs +1218 -0
  20. package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -0
  21. package/fesm2022/tectra-ng-charts-core.mjs +1334 -49
  22. package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
  23. package/fesm2022/tectra-ng-charts-funnel.mjs +694 -0
  24. package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -0
  25. package/fesm2022/tectra-ng-charts-gantt.mjs +947 -0
  26. package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -0
  27. package/fesm2022/tectra-ng-charts-gauge.mjs +693 -0
  28. package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -0
  29. package/fesm2022/tectra-ng-charts-heatmap.mjs +935 -0
  30. package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -0
  31. package/fesm2022/tectra-ng-charts-line.mjs +527 -67
  32. package/fesm2022/tectra-ng-charts-line.mjs.map +1 -1
  33. package/fesm2022/tectra-ng-charts-org-chart.mjs +2341 -0
  34. package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -0
  35. package/fesm2022/tectra-ng-charts-pie.mjs +47 -86
  36. package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
  37. package/fesm2022/tectra-ng-charts-radar.mjs +924 -0
  38. package/fesm2022/tectra-ng-charts-radar.mjs.map +1 -0
  39. package/fesm2022/tectra-ng-charts-radial-bar.mjs +802 -0
  40. package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -0
  41. package/fesm2022/tectra-ng-charts-range-area.mjs +933 -0
  42. package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -0
  43. package/fesm2022/tectra-ng-charts-rank-line.mjs +660 -0
  44. package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -0
  45. package/fesm2022/tectra-ng-charts-sankey.mjs +837 -0
  46. package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -0
  47. package/fesm2022/tectra-ng-charts-scatter.mjs +1174 -0
  48. package/fesm2022/tectra-ng-charts-scatter.mjs.map +1 -0
  49. package/fesm2022/tectra-ng-charts-segmented-bar.mjs +328 -0
  50. package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -0
  51. package/fesm2022/tectra-ng-charts-sunburst.mjs +733 -0
  52. package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -0
  53. package/fesm2022/tectra-ng-charts-treemap.mjs +674 -0
  54. package/fesm2022/tectra-ng-charts-treemap.mjs.map +1 -0
  55. package/fesm2022/tectra-ng-charts-waterfall.mjs +809 -0
  56. package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -0
  57. package/funnel/README.md +53 -0
  58. package/gantt/README.md +53 -0
  59. package/gauge/README.md +41 -0
  60. package/heatmap/README.md +47 -0
  61. package/line/README.md +13 -2
  62. package/org-chart/README.md +57 -0
  63. package/package.json +114 -6
  64. package/pie/README.md +1 -0
  65. package/radar/README.md +64 -0
  66. package/radial-bar/README.md +62 -0
  67. package/range-area/README.md +66 -0
  68. package/rank-line/README.md +51 -0
  69. package/sankey/README.md +52 -0
  70. package/scatter/README.md +71 -0
  71. package/segmented-bar/README.md +35 -0
  72. package/sunburst/README.md +55 -0
  73. package/treemap/README.md +47 -0
  74. package/types/tectra-ng-charts-bar-list.d.ts +724 -0
  75. package/types/tectra-ng-charts-bar-list.d.ts.map +1 -0
  76. package/types/tectra-ng-charts-boxplot.d.ts +882 -0
  77. package/types/tectra-ng-charts-boxplot.d.ts.map +1 -0
  78. package/types/tectra-ng-charts-bullet.d.ts +833 -0
  79. package/types/tectra-ng-charts-bullet.d.ts.map +1 -0
  80. package/types/tectra-ng-charts-candlestick.d.ts +854 -0
  81. package/types/tectra-ng-charts-candlestick.d.ts.map +1 -0
  82. package/types/tectra-ng-charts-column.d.ts +486 -3
  83. package/types/tectra-ng-charts-column.d.ts.map +1 -1
  84. package/types/tectra-ng-charts-combo.d.ts +987 -0
  85. package/types/tectra-ng-charts-combo.d.ts.map +1 -0
  86. package/types/tectra-ng-charts-core.d.ts +266 -5
  87. package/types/tectra-ng-charts-core.d.ts.map +1 -1
  88. package/types/tectra-ng-charts-funnel.d.ts +857 -0
  89. package/types/tectra-ng-charts-funnel.d.ts.map +1 -0
  90. package/types/tectra-ng-charts-gantt.d.ts +884 -0
  91. package/types/tectra-ng-charts-gantt.d.ts.map +1 -0
  92. package/types/tectra-ng-charts-gauge.d.ts +859 -0
  93. package/types/tectra-ng-charts-gauge.d.ts.map +1 -0
  94. package/types/tectra-ng-charts-heatmap.d.ts +914 -0
  95. package/types/tectra-ng-charts-heatmap.d.ts.map +1 -0
  96. package/types/tectra-ng-charts-line.d.ts +556 -2
  97. package/types/tectra-ng-charts-line.d.ts.map +1 -1
  98. package/types/tectra-ng-charts-org-chart.d.ts +1017 -0
  99. package/types/tectra-ng-charts-org-chart.d.ts.map +1 -0
  100. package/types/tectra-ng-charts-pie.d.ts +477 -14
  101. package/types/tectra-ng-charts-pie.d.ts.map +1 -1
  102. package/types/tectra-ng-charts-radar.d.ts +903 -0
  103. package/types/tectra-ng-charts-radar.d.ts.map +1 -0
  104. package/types/tectra-ng-charts-radial-bar.d.ts +886 -0
  105. package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -0
  106. package/types/tectra-ng-charts-range-area.d.ts +897 -0
  107. package/types/tectra-ng-charts-range-area.d.ts.map +1 -0
  108. package/types/tectra-ng-charts-rank-line.d.ts +839 -0
  109. package/types/tectra-ng-charts-rank-line.d.ts.map +1 -0
  110. package/types/tectra-ng-charts-sankey.d.ts +866 -0
  111. package/types/tectra-ng-charts-sankey.d.ts.map +1 -0
  112. package/types/tectra-ng-charts-scatter.d.ts +987 -0
  113. package/types/tectra-ng-charts-scatter.d.ts.map +1 -0
  114. package/types/tectra-ng-charts-segmented-bar.d.ts +751 -0
  115. package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -0
  116. package/types/tectra-ng-charts-sunburst.d.ts +864 -0
  117. package/types/tectra-ng-charts-sunburst.d.ts.map +1 -0
  118. package/types/tectra-ng-charts-treemap.d.ts +847 -0
  119. package/types/tectra-ng-charts-treemap.d.ts.map +1 -0
  120. package/types/tectra-ng-charts-waterfall.d.ts +869 -0
  121. package/types/tectra-ng-charts-waterfall.d.ts.map +1 -0
  122. package/waterfall/README.md +60 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tectra-ng-charts-waterfall.mjs","names":[],"sources":["../../../../packages/charts/waterfall/src/waterfall-layout.ts","../../../../packages/charts/waterfall/src/waterfall-chart.component.ts","../../../../packages/charts/waterfall/src/waterfall-chart.component.html"],"sourcesContent":["import { TxWaterfallItem, TxWaterfallStep } from './waterfall-chart.types';\n\nexport function waterfallSteps(items: readonly TxWaterfallItem[]): TxWaterfallStep[] {\n let running = 0;\n return items.map((item, index) => {\n if (item.total) {\n return { index, label: item.label, kind: 'total', change: running, from: 0, to: running, color: item.color ?? null };\n }\n const change = item.value !== null && item.value !== undefined && Number.isFinite(item.value) ? item.value : 0;\n const from = running;\n running += change;\n return { index, label: item.label, kind: change < 0 ? 'down' : 'up', change, from, to: running, color: item.color ?? null };\n });\n}\n\nexport function waterfallExtent(steps: readonly TxWaterfallStep[]): [number, number] {\n let min = 0;\n let max = 0;\n for (const step of steps) {\n min = Math.min(min, step.from, step.to);\n max = Math.max(max, step.from, step.to);\n }\n return [min, max];\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 TxChartHoverBand,\n TxChartGridMode,\n TxChartHeight,\n TxChartLabelMode,\n TxChartLegendAlign,\n TxChartLegendItem,\n TxChartLegendPosition,\n TxChartPointerEvent,\n TxChartTooltipData,\n TxChartTooltipTemplate,\n TxChartValueFormat,\n cartesianLayout,\n chartBandRect,\n chartNumberFormatter,\n chartSummary,\n initialChartSize,\n injectChartEntrance,\n readTokenNumber,\n stepIndex,\n} from '@tectra-ng/charts/core';\nimport { TxPassThrough, TxPassThroughOptions, injectPassThrough, injectUnstyled } 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 { waterfallExtent, waterfallSteps } from './waterfall-layout';\nimport { TxWaterfallBarEvent, TxWaterfallChartBar, TxWaterfallChartPart, TxWaterfallConnector, TxWaterfallItem, TxWaterfallKind } from './waterfall-chart.types';\n\nconst DEFAULT_WIDTH = 0.56;\nconst LABEL_GAP = 4;\n\n@Component({\n selector: 'tx-waterfall-chart',\n imports: [TxChartFrame, TxChartAxes, TxChartHoverBand],\n templateUrl: './waterfall-chart.component.html',\n styleUrl: './waterfall-chart.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-waterfall-chart',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-waterfall-chart--fill]': 'typeof height() === \"string\"',\n '[class.tx-waterfall-chart--entering]': 'entrance.active()',\n '[class.tx-waterfall-chart--morph]': 'morph()',\n '[class.tx-waterfall-chart--active]': 'active() !== null',\n },\n})\nexport class TxWaterfallChart {\n private locale = inject(TxLocaleService);\n private host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly translations = injectTranslations();\n\n readonly items = input<readonly TxWaterfallItem[] | null | undefined>([]);\n readonly height = input<TxChartHeight>(350);\n readonly dataLabels = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly connectors = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly showLegend = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly legendPosition = input<TxChartLegendPosition>('top');\n readonly legendAlign = input<TxChartLegendAlign>('start');\n readonly showTooltip = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly valueFormat = input<TxChartValueFormat>('number');\n readonly yMin = input<number | undefined>(undefined);\n readonly yMax = input<number | undefined>(undefined);\n readonly xAxisTitle = input('');\n readonly yAxisTitle = input('');\n readonly grid = input<TxChartGridMode>('value');\n readonly labelMode = input<TxChartLabelMode>('auto');\n readonly maxLabelWidth = input(220);\n readonly toolbar = input<boolean, unknown>(true, { transform: booleanAttribute });\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly dt = input<TectraDeepPartial<TectraChartTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxWaterfallChartPart, TxWaterfallChart> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly barClick = output<TxWaterfallBarEvent>();\n\n readonly tooltipTemplate = contentChild(TxChartTooltipTemplate);\n private readonly frame = viewChild(TxChartFrame);\n\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('waterfallChart', 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 barWidth = signal(DEFAULT_WIDTH);\n\n private readonly intl = computed(() => this.locale.locale().intl);\n readonly list = computed(() => this.items() ?? []);\n readonly steps = computed(() => waterfallSteps(this.list()));\n readonly isEmpty = computed(() => !this.list().length);\n readonly kinds = computed(() => new Set(this.steps().map((step) => step.kind)));\n readonly legendShown = computed(() => this.showLegend() && this.kinds().size > 1);\n readonly size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, undefined, this.toolbar()));\n\n readonly valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()));\n readonly signed = computed(() => {\n const format = this.valueFormatter();\n return (value: number) => (value > 0 ? `+${format(value)}` : value < 0 ? `−${format(-value)}` : format(value));\n });\n\n readonly layout = computed(() => {\n const { width, height } = this.size();\n const labels = this.steps().map((step) => step.label);\n return cartesianLayout({\n width,\n height,\n intl: this.intl(),\n category: {\n kind: 'band',\n labels,\n count: labels.length,\n labelMode: this.labelMode(),\n maxLabelWidth: this.maxLabelWidth(),\n title: this.xAxisTitle() || undefined,\n },\n value: {\n extent: waterfallExtent(this.steps()),\n format: this.valueFormat(),\n includeZero: true,\n min: this.yMin(),\n max: this.yMax(),\n title: this.yAxisTitle() || undefined,\n },\n grid: this.grid(),\n });\n });\n\n readonly bars = computed<TxWaterfallChartBar[]>(() => {\n const layout = this.layout();\n const band = layout.category as TxBandScale;\n const width = band.bandwidth * Math.min(1, Math.max(0.05, this.barWidth()));\n const scale = layout.value;\n return this.steps().map((step) => {\n const a = scale.map(step.from);\n const b = scale.map(step.to);\n const y = Math.min(a, b);\n const height = Math.max(1, Math.abs(b - a));\n const above = step.kind === 'total' ? step.to >= 0 : step.change >= 0;\n return {\n ...step,\n key: `${step.index}:${step.label}`,\n x: band.center(step.index) - width / 2,\n y,\n width,\n height,\n text: this.dataLabels() ? (step.kind === 'total' ? this.valueFormatter()(step.to) : this.signed()(step.change)) : null,\n textY: above ? y - LABEL_GAP : y + height + LABEL_GAP,\n above,\n };\n });\n });\n\n readonly hoverBand = computed(() => {\n const index = this.active();\n return index === null ? null : chartBandRect(this.layout().category as TxBandScale, index, this.layout().plot);\n });\n\n readonly connectorLines = computed<TxWaterfallConnector[]>(() => {\n if (!this.connectors()) return [];\n const bars = this.bars();\n const scale = this.layout().value;\n return bars.slice(0, -1).map((bar, index) => {\n const next = bars[index + 1];\n return { key: `${bar.key}>${next.key}`, x1: bar.x + bar.width, x2: next.x, y: scale.map(bar.to) };\n });\n });\n\n readonly legendItems = computed<TxChartLegendItem[]>(() => {\n const t = this.translations();\n const names: Record<TxWaterfallKind, string> = { up: t.chartIncrease, down: t.chartDecrease, total: t.chartTotal };\n return (['up', 'down', 'total'] as const)\n .filter((kind) => this.kinds().has(kind))\n .map((kind) => ({ key: kind, label: names[kind], color: `var(--tx-chart-waterfall-${kind}-color)` }));\n });\n\n readonly tooltip = computed<TxChartTooltipData | null>(() => {\n const index = this.active();\n if (index === null || !this.showTooltip()) return null;\n const bar = this.bars()[index];\n if (!bar) return null;\n const t = this.translations();\n const color = bar.color ?? `var(--tx-chart-waterfall-${bar.kind}-color)`;\n const rows =\n bar.kind === 'total'\n ? [{ label: t.chartTotal, value: this.valueFormatter()(bar.to), color, raw: bar.to, seriesIndex: 0, active: true }]\n : [\n { label: t.chartChange, value: this.signed()(bar.change), color, raw: bar.change, seriesIndex: 0, active: true },\n { label: t.chartTotal, value: this.valueFormatter()(bar.to), color: 'transparent', raw: bar.to, seriesIndex: 1 },\n ];\n return { title: bar.label, rows, index, x: bar.x + bar.width / 2, y: bar.above ? bar.y : bar.y + bar.height, placement: bar.above ? 'top' : 'bottom' };\n });\n\n readonly summary = computed(() => {\n const t = this.translations();\n const steps = this.steps();\n const last = steps[steps.length - 1];\n const text = chartSummary(t, this.intl(), t.chartWaterfall, 1, steps.length, null);\n const withTotal = last ? `${text}, ${t.chartTotal.toLocaleLowerCase(this.intl())} ${this.valueFormatter()(last.to)}` : text;\n return this.ariaLabel() ? `${this.ariaLabel()}. ${withTotal}` : withTotal;\n });\n\n readonly dataTable = computed(() => {\n const t = this.translations();\n return {\n columns: [\n { key: 'change', label: t.chartChange },\n { key: 'total', label: t.chartTotal },\n ],\n rows: this.steps().map((step) => ({\n label: step.label,\n cells: [step.kind === 'total' ? '—' : this.signed()(step.change), this.valueFormatter()(step.to)],\n })),\n };\n });\n\n constructor() {\n afterNextRender(() => setTimeout(() => this.morph.set(true), 120));\n afterRenderEffect(() => {\n this.dt();\n const next = readTokenNumber(this.host.nativeElement, '--tx-chart-bar-width', DEFAULT_WIDTH);\n if (next !== this.barWidth()) this.barWidth.set(next);\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 band = this.layout().category as TxBandScale;\n const inside = event.x >= plot.left && event.x <= plot.left + plot.width && event.y >= plot.top - 8 && event.y <= plot.top + plot.height + 8;\n const index = inside ? band.indexAt(event.x) : -1;\n this.active.set(index >= 0 ? index : null);\n if (event.type === 'click' && index >= 0) {\n const step = this.steps()[index];\n this.barClick.emit({ index, label: step.label, change: step.change, total: step.to, kind: step.kind });\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.steps().length);\n if (index < 0) return;\n this.active.set(index);\n const step = this.steps()[index];\n const t = this.translations();\n this.frame()?.announce(\n step.kind === 'total'\n ? `${step.label}: ${t.chartTotal} ${this.valueFormatter()(step.to)}`\n : `${step.label}: ${this.signed()(step.change)}, ${t.chartTotal.toLocaleLowerCase(this.intl())} ${this.valueFormatter()(step.to)}`,\n );\n }\n}\n","<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendToggle]=\"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-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n @if (connectors()) {\n <svg:g class=\"tx-waterfall-chart__connectors\">\n @for (line of connectorLines(); track line.key) {\n <svg:line\n class=\"tx-waterfall-chart__connector\"\n [class]=\"passThrough().connector?.class\"\n [style]=\"passThrough().connector?.style\"\n [attr.x1]=\"line.x1\"\n [attr.x2]=\"line.x2\"\n [attr.y1]=\"line.y\"\n [attr.y2]=\"line.y\"\n />\n }\n </svg:g>\n }\n <svg:g class=\"tx-waterfall-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-waterfall-chart__bar\"\n [class.tx-waterfall-chart__bar--active]=\"active() === bar.index\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-kind]=\"bar.kind\"\n [attr.data-index]=\"bar.index\"\n [attr.data-dir]=\"bar.above ? 'up' : 'down'\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-waterfall-chart-own]=\"bar.color\"\n [style.--tx-waterfall-chart-order]=\"bar.index\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-waterfall-chart__labels\">\n @for (bar of bars(); track bar.key) {\n <svg:text\n class=\"tx-waterfall-chart__label\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.data-kind]=\"bar.kind\"\n text-anchor=\"middle\"\n [attr.dominant-baseline]=\"bar.above ? 'auto' : 'hanging'\"\n [attr.x]=\"bar.x + bar.width / 2\"\n [attr.y]=\"bar.textY\"\n >\n {{ bar.text }}\n </svg:text>\n }\n </svg:g>\n }\n</tx-chart-frame>\n"],"mappings":";;;;;;;AAEA,SAAgB,eAAe,OAAiC;CAC9D,IAAI,UAAU;CACd,OAAO,MAAM,KAAK,MAAM,UAAS;EAC/B,IAAI,KAAK,OACP,OAAO;GAAE;GAAO,OAAO,KAAK;GAAO,MAAM;GAAS,QAAQ;GAAS,MAAM;GAAG,IAAI;GAAS,OAAO,KAAK,SAAS;EAAI;EAEpH,MAAM,SAAS,KAAK,UAAU,QAAQ,KAAK,UAAU,UAAa,OAAO,SAAS,KAAK,KAAK,IAAI,KAAK,QAAQ;EAC7G,MAAM,OAAO;EACb,WAAW;EACX,OAAO;GAAE;GAAO,OAAO,KAAK;GAAO,MAAM,SAAS,IAAI,SAAS;GAAM;GAAQ;GAAM,IAAI;GAAS,OAAO,KAAK,SAAS;EAAI;CAC3H,CAAC;AACH;AAEA,SAAgB,gBAAgB,OAAiC;CAC/D,IAAI,MAAM;CACV,IAAI,MAAM;CACV,KAAK,MAAM,QAAQ,OAAO;EACxB,MAAM,KAAK,IAAI,KAAK,KAAK,MAAM,KAAK,EAAE;EACtC,MAAM,KAAK,IAAI,KAAK,KAAK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,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,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,UAAA;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"}
@@ -0,0 +1,53 @@
1
+ # Funnel Chart
2
+
3
+ `<tx-funnel-chart>` — how many pass each step of a process: visits, sign-ups, trials, purchases. Centred bars sized by value, soft connectors between them and the conversion from the step before. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
4
+
5
+ ```ts
6
+ import { TxFunnelChart } from '@tectra-ng/charts/funnel';
7
+ ```
8
+
9
+ ```html
10
+ <tx-funnel-chart [items]="[{ label: 'Visits', value: 1000 }, { label: 'Sign-ups', value: 400 }, { label: 'Paid', value: 60 }]" />
11
+ ```
12
+
13
+ ## Inputs
14
+ | Name | Description |
15
+ |---|---|
16
+ | items | `{ label, value, color? }[]` — the steps from the top. An empty list shows "No data" |
17
+ | height | Height in px (320), or a CSS size such as `'100%'` of a parent with a definite height |
18
+ | colorful | Gives every step its own palette colour; by default the funnel is one colour |
19
+ | showLabels | Writes the step names in a column on the left (on by default) |
20
+ | showValues | Writes the values on the bars, or beside a bar that is too narrow (on by default) |
21
+ | showConversion | Writes the conversion from the step before between the bars (on by default) |
22
+ | connectors | Draws the soft shapes that join the bars (on by default) |
23
+ | showTooltip | Shows the value, the share of the first step and the conversion on hover and keyboard focus |
24
+ | valueFormat | Format of the values: `number`, `integer`, `compact`, `percent` or a function |
25
+ | toolbar | Shows the chart menu: download SVG, PNG or CSV (the file is named after `ariaLabel`) |
26
+ | loading | Shows a skeleton of the same size |
27
+ | ariaLabel | What the chart shows; starts the summary read by screen readers |
28
+ | dt | Design tokens of this chart (`chart`) — row gap, radius, label column, text, connectors, palette |
29
+ | pt | Classes and styles of the parts: `root`, `plot`, `svg`, `stage`, `connector`, `label`, `value`, `conversion`, `tooltip`, `empty`, `skeleton` |
30
+ | ptOptions | How `pt` merges with the global pass-through |
31
+ | unstyled | Removes the tectra styles and keeps the behaviour |
32
+
33
+ ## Outputs
34
+ | Name | Description |
35
+ |---|---|
36
+ | stageClick | A step was clicked: `index`, `label`, `value`, `ofFirst` and `conversion` (percent, `null` for the first) |
37
+
38
+ ## Slots
39
+ | Name | Description |
40
+ |---|---|
41
+ | txChartTooltip | `<ng-template txChartTooltip let-data>` — own tooltip content |
42
+
43
+ ## Keyboard
44
+ | Key | Action |
45
+ |---|---|
46
+ | Tab | Focuses the chart |
47
+ | ↑ / ↓ (← / →) | Previous / next step; the value and the conversion are announced, the tooltip follows |
48
+ | Home / End | First / last step |
49
+ | Escape | Closes the tooltip |
50
+
51
+ ## Notes
52
+
53
+ The widest bar is the biggest value, so a step that grows is drawn wider. A row is picked anywhere across the chart. Bars grow from the centre once and slide to new values; both are off with reduced motion.
@@ -0,0 +1,53 @@
1
+ # Gantt Chart
2
+
3
+ `<tx-gantt-chart>` — tasks as bars on a calendar: groups that fold, progress, milestones, a line for today, a scale from days to quarters with horizontal scrolling and zoom. The `timeline` layout puts all tasks of a group on one lane — bookings, shifts, releases. Built in HTML on the design tokens, rendered on the server.
4
+
5
+ ```ts
6
+ import { TxGanttChart } from '@tectra-ng/charts/gantt';
7
+ ```
8
+
9
+ ```html
10
+ <tx-gantt-chart [tasks]="[{ id: 'a', label: 'Design', start: '2026-03-02', end: '2026-03-06', progress: 60 }]" />
11
+ ```
12
+
13
+ ## Inputs
14
+ | Name | Description |
15
+ |---|---|
16
+ | tasks | `{ id, label, start, end?, group?, progress?, milestone?, color? }[]`; dates are `Date`, timestamps or ISO strings. A date-only `end` (`'2026-03-06'`) includes that day; without `end` a task lasts one day. `milestone: true` draws a diamond at `start`. An empty list shows "No data" |
17
+ | layout | `tasks` (default) — a row per task under its group, groups fold; `timeline` — a lane per group with all its tasks |
18
+ | zoom | Two-way: `day`, `week` (default), `month` or `quarter` |
19
+ | start | First date of the scale; the earliest task minus `padding` by default |
20
+ | end | Last date of the scale; the latest task plus `padding` by default |
21
+ | padding | Days of air before the first and after the last task (3) |
22
+ | today | Date of the today line; the current moment by default, `null` hides it. On first render the chart scrolls so that today is in view |
23
+ | barLabels | Task names: `auto` (beside the bar for `tasks`, inside for `timeline`), `outside`, `inside` or `none` |
24
+ | toolbar | Shows the zoom buttons and the "Today" button (on by default) |
25
+ | maxHeight | Height after which the rows scroll under the sticky header (the `chart.gantt.maxHeight` token by default) |
26
+ | labelHeader | Text of the corner over the names; "Task" or "Timeline" by default |
27
+ | loading | Shows skeleton rows |
28
+ | ariaLabel | What the chart shows; starts the summary read by screen readers |
29
+ | dt | Design tokens of this chart (`chart`) — row and header height, label column, bars, progress, milestones, weekends, today line, folding |
30
+ | pt | Classes and styles of the parts: `root`, `toolbar`, `scroll`, `head`, `corner`, `scale`, `row`, `group`, `label`, `lane`, `bar`, `milestone`, `today`, `empty` |
31
+ | ptOptions | How `pt` merges with the global pass-through |
32
+ | unstyled | Removes the tectra styles and keeps the layout and the behaviour |
33
+
34
+ ## Outputs
35
+ | Name | Description |
36
+ |---|---|
37
+ | taskClick | A bar or a milestone was clicked or pressed with Enter / Space: `task`, `start`, `end` (dates, `end` exclusive) |
38
+ | groupToggle | A group folded or unfolded: `group`, `collapsed` |
39
+ | zoomChange | The zoom changed from the toolbar, the keys or Ctrl + wheel |
40
+
41
+ ## Keyboard
42
+ | Key | Action |
43
+ |---|---|
44
+ | Tab | Moves to the toolbar, the group toggles and then the bars (one tab stop for all bars) |
45
+ | ↑ / ↓ | Bar on the previous / next row, the one nearest in time |
46
+ | ← / → | Previous / next bar |
47
+ | Home / End | First / last bar |
48
+ | Enter / Space | Clicks the bar (`taskClick`); on a group toggles it |
49
+ | + / − | Zooms in / out |
50
+
51
+ ## Notes
52
+
53
+ The names stay in a sticky column and the scale in a sticky header while you scroll both ways. Ctrl (⌘ on a Mac) and the wheel zoom at the pointer, keeping the date under it in place; the zoom buttons keep the centre. A group folds and unfolds with a height animation (none under reduced motion); the tasks of a folded group leave the tab order and the arrow keys skip them. A focused bar scrolls into view. Weekends are shaded on the day scale. Each bar has a tooltip and an accessible name with its dates, length and progress.
@@ -0,0 +1,41 @@
1
+ # Gauge
2
+
3
+ `<tx-gauge>` — one value on a scale: a progress arc in a tone, or a needle over coloured bands such as good / warning / critical. Ticks, the value and a caption in the middle. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
4
+
5
+ ```ts
6
+ import { TxGauge } from '@tectra-ng/charts/gauge';
7
+ ```
8
+
9
+ ```html
10
+ <tx-gauge [value]="72" label="CPU" valueFormat="percent" />
11
+ ```
12
+
13
+ ## Inputs
14
+ | Name | Description |
15
+ |---|---|
16
+ | value | The value; `null` shows "No data" |
17
+ | min | Start of the scale (0) |
18
+ | max | End of the scale (100) |
19
+ | bands | `{ from, to, tone?, color?, label? }[]` — coloured ranges of the scale; the label of the band holding the value is read by screen readers |
20
+ | needle | Draws a needle; on by default when there are bands, otherwise the value fills a progress arc |
21
+ | tone | Colour of the progress arc: `primary` (default), `success`, `info`, `warn`, `danger` or `neutral`; also the default of a band |
22
+ | color | Any CSS colour for the progress arc instead of the tone |
23
+ | startAngle | Start of the scale in degrees clockwise from the top (-120) |
24
+ | endAngle | End of the scale (120); `-90` / `90` draws a half circle |
25
+ | label | Caption under the value |
26
+ | valueFormat | Format of the value and the ticks: `number`, `integer`, `compact`, `percent` or a function |
27
+ | ticks | Number of ticks to aim for (5) |
28
+ | showTicks | Draws the ticks with their values around the arc |
29
+ | showValue | Writes the value and the caption in the middle |
30
+ | height | Height in px (220), or a CSS size such as `'100%'` of a parent with a definite height |
31
+ | toolbar | Shows the chart menu: download SVG or PNG (the file is named after `ariaLabel` or `label`) |
32
+ | loading | Shows a skeleton of the same size |
33
+ | ariaLabel | What the gauge measures; starts the text read by screen readers |
34
+ | dt | Design tokens of this chart (`chart`) — arc thickness, track, tones, needle, hub, ticks, value text |
35
+ | pt | Classes and styles of the parts: `root`, `plot`, `svg`, `track`, `progress`, `band`, `needle`, `tick`, `value`, `label`, `empty`, `skeleton` |
36
+ | ptOptions | How `pt` merges with the global pass-through |
37
+ | unstyled | Removes the tectra styles and keeps the geometry |
38
+
39
+ ## Notes
40
+
41
+ The gauge is read as one image: "Gauge, CPU: 72% of 0% to 100%", plus the band label when the value is in a band. The progress arc draws in and the needle swings from the start of the scale once; both follow new values smoothly and are off with reduced motion.
@@ -0,0 +1,47 @@
1
+ # Heatmap
2
+
3
+ `<tx-heatmap>` — a grid of rows × columns, the columns grouped in bands (days by week, hours by day, months by year). Each cell is coloured by a tone or by its value on a colour scale. The header row, the row headers and the value column stay in place while the grid scrolls both ways inside `maxHeight`; cells have a tooltip and an accessible name, interactive cells are buttons. `heatmapCalendar()` turns dated values into a year (or any range) of days.
4
+
5
+ ```ts
6
+ import { TxHeatmap, TxHeatmapRowHeader, TxHeatmapRowValue, heatmapCalendar } from '@tectra-ng/charts/heatmap';
7
+ ```
8
+
9
+ ```html
10
+ <tx-heatmap [groups]="groups" [rows]="rows" [legend]="legend" (cellClick)="open($event)" />
11
+ ```
12
+
13
+ ## Inputs
14
+ | Name | Description |
15
+ |---|---|
16
+ | groups | `{ key, label, columns: { key, label }[] }[]` — column bands in order |
17
+ | rows | `{ key, label?, cells, data? }[]` — `cells` follow the columns of all groups in order; a cell is `{ tone?, value?, tooltip?, ariaLabel?, interactive?, hidden?, data? }` or `null` for an empty slot |
18
+ | legend | `{ label, tone?, value? }[]` under the grid; a "No data" item for empty cells is added at the end |
19
+ | labels | `{ rowHeader, valueHeader, empty, region }` — texts of the header cells, the empty legend item and the scroll region name |
20
+ | maxHeight | Height after which the grid scrolls; default — the `chart.heatmap.maxHeight` token (364px) |
21
+ | scaleSteps | Number of colour steps for cells with a `value` (5) |
22
+ | scaleMin | Value drawn as empty and the start of the scale; default — the smallest value or 0 |
23
+ | scaleMax | Value with the full colour; default — the biggest value |
24
+ | dt | Design tokens of this heatmap (`chart`, group `heatmap`) — cell size, column widths (`leadWidth`, `valueWidth`), tone colours, scale colour |
25
+ | pt | Classes and styles of the parts: `root`, `scroll`, `grid`, `head`, `row`, `lead`, `groups`, `group`, `groupLabel`, `columns`, `column`, `value`, `cell`, `legend` |
26
+ | ptOptions | How `pt` merges with the global pass-through |
27
+ | unstyled | Removes the tectra styles and keeps the behaviour |
28
+
29
+ Tones: `success`, `danger`, `warn`, `info` (striped), `pending` (outlined), `neutral`. A cell with a `value` and no `tone` takes the scale colour.
30
+
31
+ ## Outputs
32
+ | Name | Description |
33
+ |---|---|
34
+ | cellClick | An interactive cell was clicked or pressed with Enter / Space: `row`, `cell`, `columnKey` |
35
+
36
+ ## Slots
37
+ | Name | Description |
38
+ |---|---|
39
+ | txHeatmapRowHeader | `<ng-template txHeatmapRowHeader let-row>` — the sticky row header (default: `row.label` or `row.key`) |
40
+ | txHeatmapRowValue | `<ng-template txHeatmapRowValue let-row>` — the sticky value column at the end of each row |
41
+
42
+ ## Keyboard
43
+ | Key | Action |
44
+ |---|---|
45
+ | Tab | Focuses the scroll region, then each interactive cell |
46
+ | Arrow keys | Scroll the focused region |
47
+ | Enter / Space | Activates the focused cell (`cellClick`) |
package/line/README.md CHANGED
@@ -16,6 +16,12 @@ import { TxLineChart } from '@tectra-ng/charts/line';
16
16
  | series | `{ name, data, color? }[]`. `data` holds one number (or `null` for a gap) per category, or `{ x, y }` points. An empty list or only `null` values show "No data" |
17
17
  | categories | X labels, one per value. Empty = the 12 month names of the active locale. With `xType="time"` these are dates |
18
18
  | xType | `category` (labels at even steps), `time` (dates with real gaps, calendar ticks) or `linear` (numbers) |
19
+ | 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), a date or a number, as the x axis takes them; bands and lines sit behind the series, points and labels on top |
20
+ | zoom | Zooms and pans along the x axis: Ctrl (⌘) and the wheel or a pinch zoom at the pointer, a drag or a sideways trackpad swipe moves, a double click or the "Reset zoom" button resets |
21
+ | brush | Adds an overview of the whole series under the chart with the visible window: drag the window to move, its edges to resize, click elsewhere to jump there (turns `zoom` on) |
22
+ | xRange | Two-way: the visible x window `[from, to]` — category indexes, timestamps or numbers; `null` shows everything |
23
+ | maxPoints | Keeps only the last N values — a sliding window for live data |
24
+ | live | New values slide the series to the left instead of morphing it; use with `maxPoints` for a stream |
19
25
  | height | Height in px (450), or a CSS size such as `'100%'` of a parent with a definite height |
20
26
  | curve | `smooth` (monotone, never overshoots), `straight` or `step` |
21
27
  | area | Fills the area under each line with a fading gradient of its colour |
@@ -41,10 +47,11 @@ import { TxLineChart } from '@tectra-ng/charts/line';
41
47
  | labelMode | X labels that do not fit: `auto`, `rotate` or `skip` |
42
48
  | maxLabels | At most this many x labels (10) |
43
49
  | decimation | Thins long series with the largest-triangle method before drawing |
50
+ | toolbar | Shows the chart menu in the top right corner: download SVG, PNG or CSV (the file is named after `ariaLabel`); a row is kept for it when the legend is not on top |
44
51
  | loading | Shows a skeleton of the same size |
45
52
  | ariaLabel | What the chart shows; starts the summary read by screen readers |
46
53
  | dt | Design tokens of this chart (`chart`) |
47
- | pt | Classes and styles of the parts: `root`, `legend`, `legendItem`, `plot`, `svg`, `grid`, `axis`, `series`, `line`, `area`, `marker`, `crosshair`, `tooltip`, `empty`, `skeleton` |
54
+ | pt | Classes and styles of the parts: `root`, `legend`, `legendItem`, `plot`, `svg`, `grid`, `axis`, `series`, `line`, `area`, `marker`, `crosshair`, `annotation`, `brush`, `tooltip`, `empty`, `skeleton` |
48
55
  | ptOptions | How `pt` merges with the global pass-through |
49
56
  | unstyled | Removes the tectra styles and keeps the behaviour |
50
57
 
@@ -53,6 +60,7 @@ import { TxLineChart } from '@tectra-ng/charts/line';
53
60
  |---|---|
54
61
  | pointClick | A value was clicked: `seriesIndex`, `dataPointIndex`, `value`, `category` |
55
62
  | seriesToggle | A legend item hid or showed a series: `seriesIndex`, `name`, `hidden` |
63
+ | xRangeChange | The visible x window changed by zoom, pan, the brush or a reset (`null` = everything) |
56
64
 
57
65
  ## Slots
58
66
  | Name | Description |
@@ -68,8 +76,11 @@ import { TxLineChart } from '@tectra-ng/charts/line';
68
76
  | ↑ / ↓ | Previous / next visible series |
69
77
  | Home / End | First / last value |
70
78
  | Escape | Closes the tooltip |
79
+ | + / − | Zoom in / out around the focused value (with `zoom` or `brush`) |
80
+ | 0 | Resets the zoom |
81
+ | Shift + ← / → | Moves a zoomed window |
71
82
  | ← / → in the legend | Moves between legend items; Enter or Space toggles the series |
72
83
 
73
84
  ## Notes
74
85
 
75
- On hover a vertical rule marks the nearest value, every series gets a ringed point on it, and the tooltip is pinned above the rule with an arrow (in `single` mode — above the point); stacked charts add the total. The server renders the chart at a fixed width with the same markup the browser hydrates; the real width is measured after hydration and the chart redraws inside the same box, so nothing on the page moves. New inputs redraw in place and the lines morph to the new values. Colours of hidden series stay with their series.
86
+ On hover a vertical rule marks the nearest value, every series gets a ringed point on it, and the tooltip follows the mouse beside the cursor; with the keyboard or a tap it is pinned above the rule with an arrow (in `single` mode — above the point); stacked charts add the total. The server renders the chart at a fixed width with the same markup the browser hydrates; the real width is measured after hydration and the chart redraws inside the same box, so nothing on the page moves. New inputs redraw in place and the lines morph to the new values. Colours of hidden series stay with their series.
@@ -0,0 +1,57 @@
1
+ # Org Chart
2
+
3
+ `<tx-org-chart>` — a hierarchy as a tree of cards on a pan and zoom canvas: drag to move, wheel or pinch to zoom at the cursor, trackpad scroll to pan; a toolbar with search, zoom − / % / +, fit, expand / collapse all and full screen (with an overlay fallback), a minimap with click and drag navigation, hotkeys, the path to the root on hover, focus on a found node and a fit on the first render. Cards have an avatar or an icon, a title, a subtitle, pills and a chevron for collapsible nodes; a template draws your own cards.
4
+
5
+ ```ts
6
+ import { TxOrgChart, orgChartSearch, orgChartToggle } from '@tectra-ng/charts/org-chart';
7
+ ```
8
+
9
+ ```html
10
+ <tx-org-chart [nodes]="nodes" [highlightIds]="matches" (nodeToggle)="toggle($event)" (searchChange)="search($event)" />
11
+ ```
12
+
13
+ The chart does not change `nodes` itself: handle `nodeToggle`, `expandAll`, `collapseAll` and `searchChange` and pass new nodes and `highlightIds`. The helpers `orgChartToggle`, `orgChartExpandAll`, `orgChartSearch`, `orgChartReveal` (open the ancestors of the matches) and `orgChartPathTo` do it immutably.
14
+
15
+ ## Inputs
16
+ | Name | Description |
17
+ |---|---|
18
+ | nodes | `{ id, title, kind?, subtitle?, avatar?: { src?, name? }, icon?, pills?: { label, tone?, icon? }[], children?, collapsible?, expanded?, loading?, childrenEmptyText?, minimapTone?, data? }[]` — the roots of the tree |
19
+ | highlightIds | Ids of the matching nodes; they get the match outline and their count shows next to the search |
20
+ | focusId | Id of a node to centre and zoom to (at least 125%) after it renders |
21
+ | labels | Own texts: `title`, `hint`, `search`, `matches` (`{count} found`), `noMatches`, `zoomIn`, `zoomOut`, `resetZoom`, `fit`, `expandAll`, `collapseAll`, `fullscreen`, `exitFullscreen`, `expand`, `collapse`, `more` (the button that holds the actions on a narrow toolbar); default — the tectra locale |
22
+ | toolbar | Shows the toolbar; on a narrow chart (under 56rem) expand / collapse all and full screen move into a menu button, under 30rem the zoom buttons too |
23
+ | minimap | Shows the minimap in the corner of the canvas (smaller on a canvas under 480px) |
24
+ | height | Height of the canvas (`calc(100vh - 15rem)`) |
25
+ | busy | Dims the canvas and blocks it while data loads |
26
+ | pathKinds | Node `kind`s that draw the path to the root on hover; `null` — every node |
27
+ | dt | Design tokens of this chart (`chart`, group `orgChart`) |
28
+ | pt | Classes and styles of the parts: `root`, `bar`, `toolbar`, `canvas`, `stage`, `minimap`, `hint` |
29
+ | ptOptions | How `pt` merges with the global pass-through |
30
+ | unstyled | Removes the tectra styles and keeps the behaviour |
31
+
32
+ ## Outputs
33
+ | Name | Description |
34
+ |---|---|
35
+ | nodeToggle | The chevron of a node was pressed: the node id |
36
+ | nodeClick | A card was clicked or pressed with Enter / Space (not after a drag): the node |
37
+ | searchChange | The search text, 400ms after typing stops |
38
+ | expandAll | "Expand all" was pressed |
39
+ | collapseAll | "Collapse all" was pressed |
40
+
41
+ ## Slots
42
+ | Name | Description |
43
+ |---|---|
44
+ | txOrgChartHeader | `<h3 txOrgChartHeader>` — content left of the toolbar |
45
+ | txOrgChartNode | `<ng-template txOrgChartNode let-node let-highlighted="highlighted" let-inPath="inPath" let-toggle="toggle">` — own card; `<tx-org-chart-card [node]="node">` is the default card for reuse |
46
+
47
+ ## Keyboard
48
+ | Key | Action |
49
+ |---|---|
50
+ | Tab | Moves through the toolbar, the canvas, the cards and their chevrons |
51
+ | + / − | Zoom in / out |
52
+ | 0 | Reset the zoom to 100% |
53
+ | F | Fit the tree to the canvas |
54
+ | / | Focus the search |
55
+ | Arrow keys | Move the canvas (when it has the focus) |
56
+ | Enter / Space | Click the focused card |
57
+ | Escape | Leave the full screen |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tectra-ng/charts",
3
- "version": "0.1.9",
4
- "description": "Angular charts drawn as SVG with no chart library: line and area, column and bar, pie and donut on one core of scales, axes, legend, tooltip and accessibility. Server rendered, themed by design tokens, dark mode ready.",
3
+ "version": "0.2.1",
4
+ "description": "Angular charts drawn as SVG with no chart library: line and area, column and bar, combo with two value axes, scatter and bubble, pie and donut, radar, radial bar, gauge, funnel, waterfall, bullet, candlestick, box plot, range area, gantt, sankey, sunburst, bar list, segmented bar, heatmap, treemap, rank chart, org chart on one core of scales, axes, legend, tooltip and accessibility. Server rendered, themed by design tokens, dark mode ready.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tectra-ng.com/components/line-chart",
7
7
  "repository": {
@@ -21,8 +21,30 @@
21
21
  "area-chart",
22
22
  "bar-chart",
23
23
  "column-chart",
24
+ "combo-chart",
25
+ "scatter-chart",
26
+ "bubble-chart",
27
+ "radar-chart",
28
+ "radial-bar",
29
+ "gauge",
30
+ "funnel-chart",
31
+ "waterfall-chart",
32
+ "bullet-chart",
33
+ "candlestick-chart",
34
+ "boxplot",
35
+ "range-area",
36
+ "gantt",
37
+ "timeline",
38
+ "sankey",
39
+ "sunburst",
24
40
  "pie-chart",
25
41
  "donut-chart",
42
+ "bar-list",
43
+ "segmented-bar",
44
+ "heatmap",
45
+ "treemap",
46
+ "rank-chart",
47
+ "org-chart",
26
48
  "data-visualization",
27
49
  "dataviz",
28
50
  "ssr",
@@ -33,10 +55,16 @@
33
55
  "@angular/cdk": "^22.0.0",
34
56
  "@angular/common": "^22.0.0",
35
57
  "@angular/core": "^22.0.0",
36
- "@tectra-ng/core": "^0.1.9",
37
- "@tectra-ng/icons": "^0.1.9",
38
- "@tectra-ng/themes": "^0.1.9",
39
- "@tectra-ng/ui": "^0.1.9"
58
+ "@angular/router": "^22.0.0",
59
+ "@tectra-ng/core": "^0.2.1",
60
+ "@tectra-ng/icons": "^0.2.1",
61
+ "@tectra-ng/themes": "^0.2.1",
62
+ "@tectra-ng/ui": "^0.2.1"
63
+ },
64
+ "peerDependenciesMeta": {
65
+ "@angular/router": {
66
+ "optional": true
67
+ }
40
68
  },
41
69
  "publishConfig": {
42
70
  "access": "public"
@@ -51,21 +79,101 @@
51
79
  "types": "./types/tectra-ng-charts.d.ts",
52
80
  "default": "./fesm2022/tectra-ng-charts.mjs"
53
81
  },
82
+ "./bar-list": {
83
+ "types": "./types/tectra-ng-charts-bar-list.d.ts",
84
+ "default": "./fesm2022/tectra-ng-charts-bar-list.mjs"
85
+ },
86
+ "./boxplot": {
87
+ "types": "./types/tectra-ng-charts-boxplot.d.ts",
88
+ "default": "./fesm2022/tectra-ng-charts-boxplot.mjs"
89
+ },
90
+ "./bullet": {
91
+ "types": "./types/tectra-ng-charts-bullet.d.ts",
92
+ "default": "./fesm2022/tectra-ng-charts-bullet.mjs"
93
+ },
94
+ "./candlestick": {
95
+ "types": "./types/tectra-ng-charts-candlestick.d.ts",
96
+ "default": "./fesm2022/tectra-ng-charts-candlestick.mjs"
97
+ },
54
98
  "./column": {
55
99
  "types": "./types/tectra-ng-charts-column.d.ts",
56
100
  "default": "./fesm2022/tectra-ng-charts-column.mjs"
57
101
  },
102
+ "./combo": {
103
+ "types": "./types/tectra-ng-charts-combo.d.ts",
104
+ "default": "./fesm2022/tectra-ng-charts-combo.mjs"
105
+ },
58
106
  "./core": {
59
107
  "types": "./types/tectra-ng-charts-core.d.ts",
60
108
  "default": "./fesm2022/tectra-ng-charts-core.mjs"
61
109
  },
110
+ "./funnel": {
111
+ "types": "./types/tectra-ng-charts-funnel.d.ts",
112
+ "default": "./fesm2022/tectra-ng-charts-funnel.mjs"
113
+ },
114
+ "./gantt": {
115
+ "types": "./types/tectra-ng-charts-gantt.d.ts",
116
+ "default": "./fesm2022/tectra-ng-charts-gantt.mjs"
117
+ },
118
+ "./gauge": {
119
+ "types": "./types/tectra-ng-charts-gauge.d.ts",
120
+ "default": "./fesm2022/tectra-ng-charts-gauge.mjs"
121
+ },
122
+ "./heatmap": {
123
+ "types": "./types/tectra-ng-charts-heatmap.d.ts",
124
+ "default": "./fesm2022/tectra-ng-charts-heatmap.mjs"
125
+ },
62
126
  "./line": {
63
127
  "types": "./types/tectra-ng-charts-line.d.ts",
64
128
  "default": "./fesm2022/tectra-ng-charts-line.mjs"
65
129
  },
130
+ "./org-chart": {
131
+ "types": "./types/tectra-ng-charts-org-chart.d.ts",
132
+ "default": "./fesm2022/tectra-ng-charts-org-chart.mjs"
133
+ },
66
134
  "./pie": {
67
135
  "types": "./types/tectra-ng-charts-pie.d.ts",
68
136
  "default": "./fesm2022/tectra-ng-charts-pie.mjs"
137
+ },
138
+ "./radar": {
139
+ "types": "./types/tectra-ng-charts-radar.d.ts",
140
+ "default": "./fesm2022/tectra-ng-charts-radar.mjs"
141
+ },
142
+ "./radial-bar": {
143
+ "types": "./types/tectra-ng-charts-radial-bar.d.ts",
144
+ "default": "./fesm2022/tectra-ng-charts-radial-bar.mjs"
145
+ },
146
+ "./range-area": {
147
+ "types": "./types/tectra-ng-charts-range-area.d.ts",
148
+ "default": "./fesm2022/tectra-ng-charts-range-area.mjs"
149
+ },
150
+ "./rank-line": {
151
+ "types": "./types/tectra-ng-charts-rank-line.d.ts",
152
+ "default": "./fesm2022/tectra-ng-charts-rank-line.mjs"
153
+ },
154
+ "./sankey": {
155
+ "types": "./types/tectra-ng-charts-sankey.d.ts",
156
+ "default": "./fesm2022/tectra-ng-charts-sankey.mjs"
157
+ },
158
+ "./scatter": {
159
+ "types": "./types/tectra-ng-charts-scatter.d.ts",
160
+ "default": "./fesm2022/tectra-ng-charts-scatter.mjs"
161
+ },
162
+ "./segmented-bar": {
163
+ "types": "./types/tectra-ng-charts-segmented-bar.d.ts",
164
+ "default": "./fesm2022/tectra-ng-charts-segmented-bar.mjs"
165
+ },
166
+ "./sunburst": {
167
+ "types": "./types/tectra-ng-charts-sunburst.d.ts",
168
+ "default": "./fesm2022/tectra-ng-charts-sunburst.mjs"
169
+ },
170
+ "./treemap": {
171
+ "types": "./types/tectra-ng-charts-treemap.d.ts",
172
+ "default": "./fesm2022/tectra-ng-charts-treemap.mjs"
173
+ },
174
+ "./waterfall": {
175
+ "types": "./types/tectra-ng-charts-waterfall.d.ts",
176
+ "default": "./fesm2022/tectra-ng-charts-waterfall.mjs"
69
177
  }
70
178
  },
71
179
  "sideEffects": false,
package/pie/README.md CHANGED
@@ -32,6 +32,7 @@ import { TxPieChart, TxPieLegendPipe } from '@tectra-ng/charts/pie';
32
32
  | segmentRadius | Rounding of the segment corners in px; default — the `chart.pie.segmentRadius` token (4px). It shrinks on narrow segments and thin rings so the shape never breaks; `0` keeps sharp corners |
33
33
  | startAngle | Where the first segment starts, degrees clockwise from the top (0) |
34
34
  | endAngle | Where the last one ends (360); `-90` to `90` is a half donut |
35
+ | toolbar | Shows the chart menu in the top right corner: download SVG, PNG or CSV (the file is named after `ariaLabel`); a row is kept for it when the legend is not on top |
35
36
  | loading | Shows a skeleton of the same size |
36
37
  | ariaLabel | What the chart shows; starts the summary read by screen readers |
37
38
  | dt | Design tokens of this chart (`chart`) |
@@ -0,0 +1,64 @@
1
+ # Radar Chart
2
+
3
+ `<tx-radar-chart>` — values of several series on axes spread around a centre: compare profiles, skills or ratings at a glance. Filled polygons over polygon or circular grid rings. Drawn as SVG by the component, rendered on the server and themed by the design tokens.
4
+
5
+ ```ts
6
+ import { TxRadarChart } from '@tectra-ng/charts/radar';
7
+ ```
8
+
9
+ ```html
10
+ <tx-radar-chart [series]="[{ name: 'Model A', data: [80, 60, 70, 50, 90] }]" [categories]="['Speed', 'Power', 'Range', 'Comfort', 'Price']" />
11
+ ```
12
+
13
+ ## Inputs
14
+ | Name | Description |
15
+ |---|---|
16
+ | series | `{ name, data, color? }[]` — one number (or `null`) per axis. An empty list shows "No data" |
17
+ | categories | Names of the axes, clockwise from the top |
18
+ | height | Height in px (350), or a CSS size such as `'100%'` of a parent with a definite height |
19
+ | shape | Grid rings: `polygon` (default) or `circle` |
20
+ | min | Value at the centre; 0 or the nice minimum by default |
21
+ | max | Value at the outer ring; the nice maximum of the data by default |
22
+ | rings | Number of grid rings to aim for (4) |
23
+ | fill | Fills the polygons with a soft tint of the series colour (on by default) |
24
+ | markers | Draws a point on every value (on by default) |
25
+ | showTicks | Writes the ring values along the top axis |
26
+ | showLegend | Shows the legend; a single series never has one |
27
+ | legendPosition | `top`, `bottom`, `left` or `right` |
28
+ | legendAlign | `start`, `center` or `end` for a top or bottom legend |
29
+ | legendVariant | Look of the legend: `dot` (default), `line`, `pill` or `stat` (the average of each series, or the value on the focused axis, in large type; it replaces the tooltip) |
30
+ | showTooltip | Shows the tooltip on hover and keyboard focus |
31
+ | tooltipFormatter | `(value, { seriesIndex, dataPointIndex }) => string` for tooltip values |
32
+ | valueFormat | Format of the ring values and the tooltip: `number`, `integer`, `compact`, `percent` or a function |
33
+ | toolbar | Shows the chart menu in the top right corner: download SVG, PNG or CSV (the file is named after `ariaLabel`) |
34
+ | loading | Shows a skeleton of the same size |
35
+ | ariaLabel | What the chart shows; starts the summary read by screen readers |
36
+ | dt | Design tokens of this chart (`chart`) — line width, fill, points, labels, grid, palette |
37
+ | pt | Classes and styles of the parts: `root`, `legend`, `legendItem`, `plot`, `svg`, `grid`, `ring`, `axisLine`, `axisLabel`, `series`, `area`, `line`, `marker`, `tooltip`, `empty`, `skeleton` |
38
+ | ptOptions | How `pt` merges with the global pass-through |
39
+ | unstyled | Removes the tectra styles and keeps the behaviour |
40
+
41
+ ## Outputs
42
+ | Name | Description |
43
+ |---|---|
44
+ | pointClick | An axis was clicked: `seriesIndex` (the series nearest to the pointer on that axis), `dataPointIndex`, `value`, `category` |
45
+ | seriesToggle | A legend item hid or showed a series: `seriesIndex`, `name`, `hidden` |
46
+
47
+ ## Slots
48
+ | Name | Description |
49
+ |---|---|
50
+ | txChartTooltip | `<ng-template txChartTooltip let-data>` — own tooltip content |
51
+ | txChartLegend | `<ng-template txChartLegend let-item>` — own legend item |
52
+
53
+ ## Keyboard
54
+ | Key | Action |
55
+ |---|---|
56
+ | Tab | Focuses the chart, then the legend items |
57
+ | ← / → | Previous / next axis; announced, the tooltip follows |
58
+ | ↑ / ↓ | Previous / next series on the axis |
59
+ | Home / End | First / last axis |
60
+ | Escape | Closes the tooltip |
61
+
62
+ ## Notes
63
+
64
+ Hovering anywhere in a slice of the chart picks the nearest axis: its spoke and label light up, every series gets a marker on it and the tooltip lists them. The radius shrinks so the axis labels always fit. Polygons grow from the centre once and morph to new values; both are off with reduced motion.