@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.
- package/README.md +21 -1
- package/bar-list/README.md +30 -0
- package/boxplot/README.md +62 -0
- package/bullet/README.md +53 -0
- package/candlestick/README.md +57 -0
- package/column/README.md +4 -2
- package/combo/README.md +83 -0
- package/core/README.md +3 -1
- package/fesm2022/tectra-ng-charts-bar-list.mjs +299 -0
- package/fesm2022/tectra-ng-charts-bar-list.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-boxplot.mjs +887 -0
- package/fesm2022/tectra-ng-charts-boxplot.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-bullet.mjs +666 -0
- package/fesm2022/tectra-ng-charts-bullet.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-candlestick.mjs +778 -0
- package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-column.mjs +149 -66
- package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-combo.mjs +1218 -0
- package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-core.mjs +1334 -49
- package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-funnel.mjs +694 -0
- package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-gantt.mjs +947 -0
- package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-gauge.mjs +693 -0
- package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-heatmap.mjs +935 -0
- package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-line.mjs +527 -67
- package/fesm2022/tectra-ng-charts-line.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-org-chart.mjs +2341 -0
- package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-pie.mjs +47 -86
- package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-radar.mjs +924 -0
- package/fesm2022/tectra-ng-charts-radar.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-radial-bar.mjs +802 -0
- package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-range-area.mjs +933 -0
- package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-rank-line.mjs +660 -0
- package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-sankey.mjs +837 -0
- package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-scatter.mjs +1174 -0
- package/fesm2022/tectra-ng-charts-scatter.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs +328 -0
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-sunburst.mjs +733 -0
- package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-treemap.mjs +674 -0
- package/fesm2022/tectra-ng-charts-treemap.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-waterfall.mjs +809 -0
- package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -0
- package/funnel/README.md +53 -0
- package/gantt/README.md +53 -0
- package/gauge/README.md +41 -0
- package/heatmap/README.md +47 -0
- package/line/README.md +13 -2
- package/org-chart/README.md +57 -0
- package/package.json +114 -6
- package/pie/README.md +1 -0
- package/radar/README.md +64 -0
- package/radial-bar/README.md +62 -0
- package/range-area/README.md +66 -0
- package/rank-line/README.md +51 -0
- package/sankey/README.md +52 -0
- package/scatter/README.md +71 -0
- package/segmented-bar/README.md +35 -0
- package/sunburst/README.md +55 -0
- package/treemap/README.md +47 -0
- package/types/tectra-ng-charts-bar-list.d.ts +724 -0
- package/types/tectra-ng-charts-bar-list.d.ts.map +1 -0
- package/types/tectra-ng-charts-boxplot.d.ts +882 -0
- package/types/tectra-ng-charts-boxplot.d.ts.map +1 -0
- package/types/tectra-ng-charts-bullet.d.ts +833 -0
- package/types/tectra-ng-charts-bullet.d.ts.map +1 -0
- package/types/tectra-ng-charts-candlestick.d.ts +854 -0
- package/types/tectra-ng-charts-candlestick.d.ts.map +1 -0
- package/types/tectra-ng-charts-column.d.ts +486 -3
- package/types/tectra-ng-charts-column.d.ts.map +1 -1
- package/types/tectra-ng-charts-combo.d.ts +987 -0
- package/types/tectra-ng-charts-combo.d.ts.map +1 -0
- package/types/tectra-ng-charts-core.d.ts +266 -5
- package/types/tectra-ng-charts-core.d.ts.map +1 -1
- package/types/tectra-ng-charts-funnel.d.ts +857 -0
- package/types/tectra-ng-charts-funnel.d.ts.map +1 -0
- package/types/tectra-ng-charts-gantt.d.ts +884 -0
- package/types/tectra-ng-charts-gantt.d.ts.map +1 -0
- package/types/tectra-ng-charts-gauge.d.ts +859 -0
- package/types/tectra-ng-charts-gauge.d.ts.map +1 -0
- package/types/tectra-ng-charts-heatmap.d.ts +914 -0
- package/types/tectra-ng-charts-heatmap.d.ts.map +1 -0
- package/types/tectra-ng-charts-line.d.ts +556 -2
- package/types/tectra-ng-charts-line.d.ts.map +1 -1
- package/types/tectra-ng-charts-org-chart.d.ts +1017 -0
- package/types/tectra-ng-charts-org-chart.d.ts.map +1 -0
- package/types/tectra-ng-charts-pie.d.ts +477 -14
- package/types/tectra-ng-charts-pie.d.ts.map +1 -1
- package/types/tectra-ng-charts-radar.d.ts +903 -0
- package/types/tectra-ng-charts-radar.d.ts.map +1 -0
- package/types/tectra-ng-charts-radial-bar.d.ts +886 -0
- package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -0
- package/types/tectra-ng-charts-range-area.d.ts +897 -0
- package/types/tectra-ng-charts-range-area.d.ts.map +1 -0
- package/types/tectra-ng-charts-rank-line.d.ts +839 -0
- package/types/tectra-ng-charts-rank-line.d.ts.map +1 -0
- package/types/tectra-ng-charts-sankey.d.ts +866 -0
- package/types/tectra-ng-charts-sankey.d.ts.map +1 -0
- package/types/tectra-ng-charts-scatter.d.ts +987 -0
- package/types/tectra-ng-charts-scatter.d.ts.map +1 -0
- package/types/tectra-ng-charts-segmented-bar.d.ts +751 -0
- package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -0
- package/types/tectra-ng-charts-sunburst.d.ts +864 -0
- package/types/tectra-ng-charts-sunburst.d.ts.map +1 -0
- package/types/tectra-ng-charts-treemap.d.ts +847 -0
- package/types/tectra-ng-charts-treemap.d.ts.map +1 -0
- package/types/tectra-ng-charts-waterfall.d.ts +869 -0
- package/types/tectra-ng-charts-waterfall.d.ts.map +1 -0
- package/waterfall/README.md +60 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tectra-ng-charts-candlestick.mjs","names":[],"sources":["../../../../packages/charts/candlestick/src/candlestick-layout.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\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\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\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\nexport function isUp(candle: TxCandle): boolean {\n return candle.close >= candle.open;\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 { 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 { candleExtent, candleLabels, isUp } from './candlestick-layout';\nimport { TxCandle, TxCandleEvent, TxCandleShape, TxCandlestickChartPart, TxCandlestickVariant } from './candlestick-chart.types';\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})\nexport class TxCandlestickChart {\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;AAEjB,SAAgB,YAAY,SAA4B;CACtD,IAAI,CAAC,QAAQ,QAAQ,OAAO;CAC5B,MAAM,QAAQ,QAAQ,KAAK,WAAY,OAAO,aAAa,QAAS,OAAO,OAAO,MAAM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1,4 +1,4 @@
|
|
|
1
|
-
import { TxChartAxes, TxChartFrame, TxChartLegendTemplate, TxChartTooltipTemplate, cartesianLayout, chartNumberFormatter, chartSummary, chartTable, cycleIndex, extent, hasChartData, initialChartSize, injectChartEntrance, normalizeSeries, readTokenNumber, seriesColor, stackExtent, stackValues, stepIndex, textWidth, toggleKey } from "@tectra-ng/charts/core";
|
|
1
|
+
import { TxChartAnnotations, TxChartAxes, TxChartFrame, TxChartHoverBand, TxChartLegendTemplate, TxChartTooltipTemplate, cartesianLayout, chartAnnotationShapes, chartBandRect, chartCategoryIndex, chartNumberFormatter, chartSummary, chartTable, cycleIndex, extent, hasChartData, initialChartSize, injectChartEntrance, normalizeSeries, readTokenNumber, seriesColor, stackExtent, stackValues, stepIndex, textWidth, toggleKey } from "@tectra-ng/charts/core";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { ChangeDetectionStrategy, Component, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
|
|
4
4
|
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
@@ -64,14 +64,14 @@ const DEFAULT_WIDTH = .56;
|
|
|
64
64
|
const DEFAULT_HORIZONTAL_WIDTH = .64;
|
|
65
65
|
const DEFAULT_GROUP_GAP = 3;
|
|
66
66
|
const LABEL_FONT_SIZE = 11;
|
|
67
|
-
const
|
|
68
|
-
const MIN_HIT = 16;
|
|
67
|
+
const EDGE_SLACK = 8;
|
|
69
68
|
var TxColumnChart = class TxColumnChart {
|
|
70
69
|
locale = inject(TxLocaleService);
|
|
71
70
|
host = inject(ElementRef);
|
|
72
71
|
translations = injectTranslations();
|
|
73
72
|
series = input([], ...ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []);
|
|
74
73
|
categories = input([], ...ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []);
|
|
74
|
+
annotations = input([], ...ngDevMode ? [{ debugName: "annotations" }] : /* istanbul ignore next */ []);
|
|
75
75
|
stacked = input(true, {
|
|
76
76
|
...ngDevMode ? { debugName: "stacked" } : /* istanbul ignore next */ {},
|
|
77
77
|
transform: booleanAttribute
|
|
@@ -110,6 +110,10 @@ var TxColumnChart = class TxColumnChart {
|
|
|
110
110
|
yAxisPosition = input("left", ...ngDevMode ? [{ debugName: "yAxisPosition" }] : /* istanbul ignore next */ []);
|
|
111
111
|
labelMode = input("auto", ...ngDevMode ? [{ debugName: "labelMode" }] : /* istanbul ignore next */ []);
|
|
112
112
|
maxLabelWidth = input(220, ...ngDevMode ? [{ debugName: "maxLabelWidth" }] : /* istanbul ignore next */ []);
|
|
113
|
+
toolbar = input(true, {
|
|
114
|
+
...ngDevMode ? { debugName: "toolbar" } : /* istanbul ignore next */ {},
|
|
115
|
+
transform: booleanAttribute
|
|
116
|
+
});
|
|
113
117
|
loading = input(false, {
|
|
114
118
|
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
115
119
|
transform: booleanAttribute
|
|
@@ -152,7 +156,7 @@ var TxColumnChart = class TxColumnChart {
|
|
|
152
156
|
isEmpty = computed(() => !this.list().length || !hasChartData(this.table().values), ...ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []);
|
|
153
157
|
isStacked = computed(() => this.stacked() || this.stackType() === "100%", ...ngDevMode ? [{ debugName: "isStacked" }] : /* istanbul ignore next */ []);
|
|
154
158
|
legendShown = computed(() => this.showLegend() && this.list().length > 1, ...ngDevMode ? [{ debugName: "legendShown" }] : /* istanbul ignore next */ []);
|
|
155
|
-
size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null), ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
159
|
+
size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, void 0, this.toolbar()), ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
156
160
|
stackedValues = computed(() => {
|
|
157
161
|
const visible = new Set(this.visibleIndexes());
|
|
158
162
|
return stackValues(this.table().values.map((row, index) => visible.has(index) ? row : row.map(() => null)), this.stackType());
|
|
@@ -252,6 +256,28 @@ var TxColumnChart = class TxColumnChart {
|
|
|
252
256
|
}
|
|
253
257
|
return boxes;
|
|
254
258
|
}, ...ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []);
|
|
259
|
+
hoverBand = computed(() => {
|
|
260
|
+
const active = this.active();
|
|
261
|
+
return active ? chartBandRect(this.band(), active.index, this.layout().plot, this.horizontal()) : null;
|
|
262
|
+
}, ...ngDevMode ? [{ debugName: "hoverBand" }] : /* istanbul ignore next */ []);
|
|
263
|
+
annotationShapes = computed(() => {
|
|
264
|
+
const layout = this.layout();
|
|
265
|
+
const band = this.band();
|
|
266
|
+
const labels = this.table().labels;
|
|
267
|
+
return chartAnnotationShapes(this.annotations(), {
|
|
268
|
+
plot: layout.plot,
|
|
269
|
+
horizontal: this.horizontal(),
|
|
270
|
+
x: (value) => {
|
|
271
|
+
const index = chartCategoryIndex(value, labels);
|
|
272
|
+
return index < 0 ? null : band.center(index);
|
|
273
|
+
},
|
|
274
|
+
xSpan: (value) => {
|
|
275
|
+
const index = chartCategoryIndex(value, labels);
|
|
276
|
+
return index < 0 ? null : [band.start(index) - (band.step - band.bandwidth) / 2, band.start(index) + band.step - (band.step - band.bandwidth) / 2];
|
|
277
|
+
},
|
|
278
|
+
y: (value) => layout.value.map(value)
|
|
279
|
+
});
|
|
280
|
+
}, ...ngDevMode ? [{ debugName: "annotationShapes" }] : /* istanbul ignore next */ []);
|
|
255
281
|
legendItems = computed(() => {
|
|
256
282
|
const stat = this.legendVariant() === "stat";
|
|
257
283
|
const active = this.active();
|
|
@@ -363,7 +389,7 @@ var TxColumnChart = class TxColumnChart {
|
|
|
363
389
|
this.active.set(null);
|
|
364
390
|
return;
|
|
365
391
|
}
|
|
366
|
-
const index = this.
|
|
392
|
+
const index = this.categoryAt(event.x, event.y);
|
|
367
393
|
if (index < 0) {
|
|
368
394
|
this.active.set(null);
|
|
369
395
|
return;
|
|
@@ -382,18 +408,9 @@ var TxColumnChart = class TxColumnChart {
|
|
|
382
408
|
category: this.table().labels[index] ?? ""
|
|
383
409
|
});
|
|
384
410
|
}
|
|
385
|
-
|
|
386
|
-
const
|
|
387
|
-
|
|
388
|
-
const minSize = this.horizontal() ? box.x2 - box.x1 : box.y2 - box.y1;
|
|
389
|
-
const grow = Math.max(0, MIN_HIT - minSize) / 2;
|
|
390
|
-
const x1 = box.x1 - slack - (this.horizontal() ? grow : 0);
|
|
391
|
-
const x2 = box.x2 + slack + (this.horizontal() ? grow : 0);
|
|
392
|
-
const y1 = box.y1 - slack - (this.horizontal() ? 0 : grow);
|
|
393
|
-
const y2 = box.y2 + slack + (this.horizontal() ? 0 : grow);
|
|
394
|
-
if (x >= x1 && x <= x2 && y >= y1 && y <= y2) return index;
|
|
395
|
-
}
|
|
396
|
-
return -1;
|
|
411
|
+
categoryAt(x, y) {
|
|
412
|
+
const plot = this.layout().plot;
|
|
413
|
+
return x >= plot.left - EDGE_SLACK && x <= plot.left + plot.width + EDGE_SLACK && y >= plot.top - EDGE_SLACK && y <= plot.top + plot.height + EDGE_SLACK && this.table().labels.length ? this.band().indexAt(this.horizontal() ? y : x) : -1;
|
|
397
414
|
}
|
|
398
415
|
onNavigate(event) {
|
|
399
416
|
if (event.key === "Escape") {
|
|
@@ -442,6 +459,10 @@ var TxColumnChart = class TxColumnChart {
|
|
|
442
459
|
const hit = this.bars().find((bar) => bar.index === index && x >= bar.x && x <= bar.x + bar.width && y >= bar.y && y <= bar.y + bar.height);
|
|
443
460
|
if (hit) return hit.series;
|
|
444
461
|
const candidates = this.bars().filter((bar) => bar.index === index);
|
|
462
|
+
if (!this.isStacked() && candidates.length) {
|
|
463
|
+
const along = (bar) => this.horizontal() ? Math.abs(y - bar.y - bar.height / 2) : Math.abs(x - bar.x - bar.width / 2);
|
|
464
|
+
return candidates.reduce((best, bar) => along(bar) < along(best) ? bar : best).series;
|
|
465
|
+
}
|
|
445
466
|
return candidates[candidates.length - 1]?.series ?? this.visibleIndexes()[0] ?? -1;
|
|
446
467
|
}
|
|
447
468
|
readGeometry() {
|
|
@@ -483,6 +504,13 @@ var TxColumnChart = class TxColumnChart {
|
|
|
483
504
|
isRequired: false,
|
|
484
505
|
transformFunction: null
|
|
485
506
|
},
|
|
507
|
+
annotations: {
|
|
508
|
+
classPropertyName: "annotations",
|
|
509
|
+
publicName: "annotations",
|
|
510
|
+
isSignal: true,
|
|
511
|
+
isRequired: false,
|
|
512
|
+
transformFunction: null
|
|
513
|
+
},
|
|
486
514
|
stacked: {
|
|
487
515
|
classPropertyName: "stacked",
|
|
488
516
|
publicName: "stacked",
|
|
@@ -644,6 +672,13 @@ var TxColumnChart = class TxColumnChart {
|
|
|
644
672
|
isRequired: false,
|
|
645
673
|
transformFunction: null
|
|
646
674
|
},
|
|
675
|
+
toolbar: {
|
|
676
|
+
classPropertyName: "toolbar",
|
|
677
|
+
publicName: "toolbar",
|
|
678
|
+
isSignal: true,
|
|
679
|
+
isRequired: false,
|
|
680
|
+
transformFunction: null
|
|
681
|
+
},
|
|
647
682
|
loading: {
|
|
648
683
|
classPropertyName: "loading",
|
|
649
684
|
publicName: "loading",
|
|
@@ -727,54 +762,81 @@ var TxColumnChart = class TxColumnChart {
|
|
|
727
762
|
isSignal: true
|
|
728
763
|
}],
|
|
729
764
|
ngImport: i0,
|
|
730
|
-
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-chart__bar--active]=\"isActive(bar.index, bar.series)\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-series]=\"bar.series\"\n [attr.data-index]=\"bar.index\"\n [attr.data-end]=\"bar.end\"\n [attr.data-dir]=\"bar.dir\"\n [style.--tx-column-chart-order]=\"bar.index\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n</tx-chart-frame>\n",
|
|
765
|
+
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-chart__bar--active]=\"isActive(bar.index, bar.series)\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-series]=\"bar.series\"\n [attr.data-index]=\"bar.index\"\n [attr.data-end]=\"bar.end\"\n [attr.data-dir]=\"bar.dir\"\n [style.--tx-column-chart-order]=\"bar.index\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n",
|
|
731
766
|
styles: [":host{display:block;min-width:0}:host(.tx-column-chart--fill){height:100%}.tx-column-chart__bar{fill:var(--tx-column-chart-color);transform-box:fill-box}.tx-column-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-column-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-column-chart__bar[data-dir=right]{transform-origin:0 50%}.tx-column-chart__bar[data-dir=left]{transform-origin:100% 50%}.tx-column-chart__label{pointer-events:none}:host([data-styled]) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__bar[data-end=top]{clip-path:inset(0 round var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0 0)}:host([data-styled]) .tx-column-chart__bar[data-end=bottom]{clip-path:inset(0 round 0 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius))}:host([data-styled]) .tx-column-chart__bar[data-end=right]{clip-path:inset(0 round 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0)}:host([data-styled]) .tx-column-chart__bar[data-end=left]{clip-path:inset(0 round var(--tx-chart-bar-radius) 0 0 var(--tx-chart-bar-radius))}:host([data-styled]) .tx-column-chart__label{fill:var(--tx-chart-bar-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums;transition:opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label--outside{fill:var(--tx-chart-bar-outside-label-color)}:host([data-styled].tx-column-chart--stacked) .tx-column-chart__bar{stroke:var(--tx-chart-bar-segment-gap-color);stroke-width:var(--tx-chart-bar-segment-gap)}:host([data-styled].tx-column-chart--active) .tx-column-chart__bar:not(.tx-column-chart__bar--active),:host([data-styled].tx-column-chart--focused) .tx-column-chart__bar:not(.tx-column-chart__bar--focused){fill:color-mix(in oklab,var(--tx-column-chart-color) var(--tx-chart-bar-dimmed-strength),var(--tx-chart-bar-dimmed-base))}:host([data-styled].tx-column-chart--morph) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,x var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),y var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),width var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),height var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar{animation:tx-column-chart-grow-y var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-column-chart-order, 0) * var(--tx-chart-motion-stagger))}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar:is([data-dir=left],[data-dir=right]){animation-name:tx-column-chart-grow-x}:host([data-styled].tx-column-chart--entering) .tx-column-chart__labels{animation:tx-column-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-column-chart-grow-y{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-column-chart-grow-x{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes tx-column-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-column-chart__bar,:host([data-styled]) .tx-column-chart__labels,:host([data-styled]) .tx-column-chart__label{transition:none;animation:none}}\n"],
|
|
732
|
-
dependencies: [
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
767
|
+
dependencies: [
|
|
768
|
+
{
|
|
769
|
+
kind: "component",
|
|
770
|
+
type: TxChartFrame,
|
|
771
|
+
selector: "tx-chart-frame",
|
|
772
|
+
inputs: [
|
|
773
|
+
"height",
|
|
774
|
+
"size",
|
|
775
|
+
"legendItems",
|
|
776
|
+
"showLegend",
|
|
777
|
+
"legendPosition",
|
|
778
|
+
"legendAlign",
|
|
779
|
+
"legendVariant",
|
|
780
|
+
"legendToggle",
|
|
781
|
+
"legendTemplate",
|
|
782
|
+
"empty",
|
|
783
|
+
"loading",
|
|
784
|
+
"emptyIcon",
|
|
785
|
+
"summary",
|
|
786
|
+
"table",
|
|
787
|
+
"tooltip",
|
|
788
|
+
"tooltipTemplate",
|
|
789
|
+
"tooltipPlacement",
|
|
790
|
+
"panelStyle",
|
|
791
|
+
"parts",
|
|
792
|
+
"styled",
|
|
793
|
+
"interactive",
|
|
794
|
+
"actionKeys",
|
|
795
|
+
"zoomable",
|
|
796
|
+
"zoomedIn",
|
|
797
|
+
"plotHeight",
|
|
798
|
+
"toolbar",
|
|
799
|
+
"exportName"
|
|
800
|
+
],
|
|
801
|
+
outputs: [
|
|
802
|
+
"sizeChange",
|
|
803
|
+
"pointer",
|
|
804
|
+
"navigate",
|
|
805
|
+
"legendToggled",
|
|
806
|
+
"legendHovered",
|
|
807
|
+
"tooltipClosed",
|
|
808
|
+
"zoomed",
|
|
809
|
+
"panned",
|
|
810
|
+
"zoomReset"
|
|
811
|
+
]
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
kind: "component",
|
|
815
|
+
type: TxChartAxes,
|
|
816
|
+
selector: "g[tx-chart-axes]",
|
|
817
|
+
inputs: [
|
|
818
|
+
"tx-chart-axes",
|
|
819
|
+
"gridPart",
|
|
820
|
+
"axisPart"
|
|
821
|
+
]
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
kind: "component",
|
|
825
|
+
type: TxChartHoverBand,
|
|
826
|
+
selector: "g[tx-chart-hover-band]",
|
|
827
|
+
inputs: ["tx-chart-hover-band", "part"]
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
kind: "component",
|
|
831
|
+
type: TxChartAnnotations,
|
|
832
|
+
selector: "g[tx-chart-annotations]",
|
|
833
|
+
inputs: [
|
|
834
|
+
"tx-chart-annotations",
|
|
835
|
+
"part",
|
|
836
|
+
"layer"
|
|
837
|
+
]
|
|
838
|
+
}
|
|
839
|
+
],
|
|
778
840
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
779
841
|
});
|
|
780
842
|
};
|
|
@@ -787,7 +849,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
787
849
|
type: Component,
|
|
788
850
|
args: [{
|
|
789
851
|
selector: "tx-column-chart",
|
|
790
|
-
imports: [
|
|
852
|
+
imports: [
|
|
853
|
+
TxChartFrame,
|
|
854
|
+
TxChartAxes,
|
|
855
|
+
TxChartHoverBand,
|
|
856
|
+
TxChartAnnotations
|
|
857
|
+
],
|
|
791
858
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
792
859
|
host: {
|
|
793
860
|
class: "tx-column-chart",
|
|
@@ -802,7 +869,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
802
869
|
"[class.tx-column-chart--stacked]": "isStacked()",
|
|
803
870
|
"[class.tx-column-chart--active]": "active() !== null"
|
|
804
871
|
},
|
|
805
|
-
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-chart__bar--active]=\"isActive(bar.index, bar.series)\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-series]=\"bar.series\"\n [attr.data-index]=\"bar.index\"\n [attr.data-end]=\"bar.end\"\n [attr.data-dir]=\"bar.dir\"\n [style.--tx-column-chart-order]=\"bar.index\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n</tx-chart-frame>\n",
|
|
872
|
+
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-bar\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g [tx-chart-hover-band]=\"hoverBand()\" [part]=\"passThrough().hoverBand\" />\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"back\" [part]=\"passThrough().annotation\" />\n <svg:g [tx-chart-axes]=\"layout().axes\" [gridPart]=\"passThrough().grid\" [axisPart]=\"passThrough().axis\" />\n <svg:g class=\"tx-column-chart__bars\">\n @for (bar of bars(); track bar.key) {\n <svg:rect\n class=\"tx-column-chart__bar\"\n [class.tx-column-chart__bar--focused]=\"focusedSeries() === bar.series\"\n [class.tx-column-chart__bar--active]=\"isActive(bar.index, bar.series)\"\n [class]=\"passThrough().bar?.class\"\n [style]=\"passThrough().bar?.style\"\n [attr.data-series]=\"bar.series\"\n [attr.data-index]=\"bar.index\"\n [attr.data-end]=\"bar.end\"\n [attr.data-dir]=\"bar.dir\"\n [style.--tx-column-chart-order]=\"bar.index\"\n [attr.x]=\"bar.x\"\n [attr.y]=\"bar.y\"\n [attr.width]=\"bar.width\"\n [attr.height]=\"bar.height\"\n [style.--tx-column-chart-color]=\"bar.color\"\n />\n }\n </svg:g>\n @if (dataLabels()) {\n <svg:g class=\"tx-column-chart__labels\">\n @for (bar of bars(); track bar.key) {\n @if (bar.label) {\n <svg:text\n class=\"tx-column-chart__label\"\n [class.tx-column-chart__label--outside]=\"!bar.inside\"\n [class]=\"passThrough().dataLabel?.class\"\n [style]=\"passThrough().dataLabel?.style\"\n [attr.x]=\"bar.labelX\"\n [attr.y]=\"bar.labelY\"\n [attr.text-anchor]=\"horizontal() && !bar.inside ? (bar.labelX >= bar.x ? 'start' : 'end') : 'middle'\"\n [attr.dominant-baseline]=\"horizontal() || bar.inside ? 'central' : bar.labelY < bar.y ? 'auto' : 'hanging'\"\n >\n {{ bar.label }}\n </svg:text>\n }\n }\n </svg:g>\n }\n <svg:g [tx-chart-annotations]=\"annotationShapes()\" layer=\"front\" [part]=\"passThrough().annotation\" />\n</tx-chart-frame>\n",
|
|
806
873
|
styles: [":host{display:block;min-width:0}:host(.tx-column-chart--fill){height:100%}.tx-column-chart__bar{fill:var(--tx-column-chart-color);transform-box:fill-box}.tx-column-chart__bar[data-dir=up]{transform-origin:50% 100%}.tx-column-chart__bar[data-dir=down]{transform-origin:50% 0}.tx-column-chart__bar[data-dir=right]{transform-origin:0 50%}.tx-column-chart__bar[data-dir=left]{transform-origin:100% 50%}.tx-column-chart__label{pointer-events:none}:host([data-styled]) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__bar[data-end=top]{clip-path:inset(0 round var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0 0)}:host([data-styled]) .tx-column-chart__bar[data-end=bottom]{clip-path:inset(0 round 0 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius))}:host([data-styled]) .tx-column-chart__bar[data-end=right]{clip-path:inset(0 round 0 var(--tx-chart-bar-radius) var(--tx-chart-bar-radius) 0)}:host([data-styled]) .tx-column-chart__bar[data-end=left]{clip-path:inset(0 round var(--tx-chart-bar-radius) 0 0 var(--tx-chart-bar-radius))}:host([data-styled]) .tx-column-chart__label{fill:var(--tx-chart-bar-label-color);font-size:var(--tx-chart-bar-label-font-size);font-weight:var(--tx-chart-bar-label-font-weight);font-variant-numeric:tabular-nums;transition:opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-column-chart__label--outside{fill:var(--tx-chart-bar-outside-label-color)}:host([data-styled].tx-column-chart--stacked) .tx-column-chart__bar{stroke:var(--tx-chart-bar-segment-gap-color);stroke-width:var(--tx-chart-bar-segment-gap)}:host([data-styled].tx-column-chart--active) .tx-column-chart__bar:not(.tx-column-chart__bar--active),:host([data-styled].tx-column-chart--focused) .tx-column-chart__bar:not(.tx-column-chart__bar--focused){fill:color-mix(in oklab,var(--tx-column-chart-color) var(--tx-chart-bar-dimmed-strength),var(--tx-chart-bar-dimmed-base))}:host([data-styled].tx-column-chart--morph) .tx-column-chart__bar{transition:fill var(--tx-chart-motion-hover-duration) ease,x var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),y var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),width var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),height var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar{animation:tx-column-chart-grow-y var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both;animation-delay:calc(var(--tx-column-chart-order, 0) * var(--tx-chart-motion-stagger))}:host([data-styled].tx-column-chart--entering) .tx-column-chart__bar:is([data-dir=left],[data-dir=right]){animation-name:tx-column-chart-grow-x}:host([data-styled].tx-column-chart--entering) .tx-column-chart__labels{animation:tx-column-chart-fade var(--tx-chart-motion-enter-duration) ease both}@keyframes tx-column-chart-grow-y{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes tx-column-chart-grow-x{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes tx-column-chart-fade{0%,60%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-column-chart__bar,:host([data-styled]) .tx-column-chart__labels,:host([data-styled]) .tx-column-chart__label{transition:none;animation:none}}\n"]
|
|
807
874
|
}]
|
|
808
875
|
}],
|
|
@@ -824,6 +891,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
824
891
|
required: false
|
|
825
892
|
}]
|
|
826
893
|
}],
|
|
894
|
+
annotations: [{
|
|
895
|
+
type: i0.Input,
|
|
896
|
+
args: [{
|
|
897
|
+
isSignal: true,
|
|
898
|
+
alias: "annotations",
|
|
899
|
+
required: false
|
|
900
|
+
}]
|
|
901
|
+
}],
|
|
827
902
|
stacked: [{
|
|
828
903
|
type: i0.Input,
|
|
829
904
|
args: [{
|
|
@@ -1008,6 +1083,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1008
1083
|
required: false
|
|
1009
1084
|
}]
|
|
1010
1085
|
}],
|
|
1086
|
+
toolbar: [{
|
|
1087
|
+
type: i0.Input,
|
|
1088
|
+
args: [{
|
|
1089
|
+
isSignal: true,
|
|
1090
|
+
alias: "toolbar",
|
|
1091
|
+
required: false
|
|
1092
|
+
}]
|
|
1093
|
+
}],
|
|
1011
1094
|
loading: [{
|
|
1012
1095
|
type: i0.Input,
|
|
1013
1096
|
args: [{
|