@codeauradev/ngx-wind-charts 1.0.0 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"codeauradev-ngx-wind-charts.mjs","names":[],"sources":["../../src/format.ts","../../src/math.ts","../../src/geometry.ts","../../src/frame.ts","../../src/normalize.ts","../../src/tip.ts","../../src/width.ts","../../src/line-chart.ts","../../src/bar-chart.ts","../../src/pie-chart.ts","../../src/gauge-chart.ts","../../src/heatmap.ts","../../src/radar-chart.ts","../../src/scatter-chart.ts","../../src/sparkline.ts"],"sourcesContent":["import type { ChartFormat } from './types';\n\nexport function resolveFormat(format: ChartFormat, currency = 'USD'): (value: number) => string {\n if (typeof format === 'function') return format;\n const number = new Intl.NumberFormat(undefined, { maximumFractionDigits: 2 });\n if (format === 'compact') {\n const compact = new Intl.NumberFormat(\n undefined,\n { notation: 'compact', maximumFractionDigits: 1 } as unknown as Intl.NumberFormatOptions,\n );\n return (value) => compact.format(value);\n }\n if (format === 'percent') {\n return (value) => `${number.format(value)}%`;\n }\n if (format === 'currency') {\n const money = new Intl.NumberFormat(undefined, {\n style: 'currency',\n currency,\n maximumFractionDigits: 0,\n });\n return (value) => money.format(value);\n }\n return (value) => number.format(value);\n}\n\nexport function percentLabel(part: number, total: number): string {\n if (total <= 0) return '0%';\n const rounded = Math.round((part / total) * 1000) / 10;\n return `${rounded}%`;\n}\n","export const DEFAULT_PALETTE = [\n 'var(--ngx-1)',\n 'var(--ngx-2)',\n 'var(--ngx-3)',\n 'var(--ngx-4)',\n 'var(--ngx-5)',\n] as const;\n\nexport function num(value: number): number {\n return Number.isFinite(value) ? value : 0;\n}\n\nexport function clamp(value: number, min: number, max: number): number {\n return Math.min(max, Math.max(min, value));\n}\n\nexport function round(value: number): number {\n return Math.round(value * 100) / 100;\n}\n\nexport function ellipsize(label: string, max = 16): string {\n if (label.length <= max) return label;\n return `${label.slice(0, max - 1)}…`;\n}\n\nexport function seriesColor(explicit: string | undefined, index: number, palette: readonly string[]): string {\n if (explicit) return explicit;\n const source = palette.length > 0 ? palette : DEFAULT_PALETTE;\n return source[index % source.length] ?? DEFAULT_PALETTE[0];\n}\n\nexport function niceNum(range: number, roundToStep: boolean): number {\n const abs = Math.abs(range);\n if (!Number.isFinite(abs) || abs === 0) return 1;\n const exp = Math.floor(Math.log10(abs));\n const frac = abs / 10 ** exp;\n let nice: number;\n if (roundToStep) {\n if (frac < 1.5) nice = 1;\n else if (frac < 3) nice = 2;\n else if (frac < 7) nice = 5;\n else nice = 10;\n } else if (frac <= 1) nice = 1;\n else if (frac <= 2) nice = 2;\n else if (frac <= 5) nice = 5;\n else nice = 10;\n return nice * 10 ** exp;\n}\n\nexport function niceTicks(min: number, max: number, count = 4): number[] {\n if (!Number.isFinite(min) || !Number.isFinite(max)) return [0, 1];\n if (min > max) {\n const swap = min;\n min = max;\n max = swap;\n }\n if (min === max) {\n const pad = Math.abs(min) || 1;\n min -= pad / 2;\n max += pad / 2;\n }\n const step = niceNum((max - min) / Math.max(count, 1), true);\n const start = Math.floor(min / step) * step;\n const end = Math.ceil(max / step) * step;\n const ticks: number[] = [];\n const steps = Math.round((end - start) / step);\n const guard = Math.min(Math.max(steps, 0), count + 8);\n for (let i = 0; i <= guard; i += 1) {\n ticks.push(Number((start + i * step).toPrecision(12)));\n }\n if (ticks.length < 2) return [min, max];\n return ticks;\n}\n\nexport function pointOnCircle(cx: number, cy: number, radius: number, radians: number): [number, number] {\n return [cx + Math.cos(radians) * radius, cy + Math.sin(radians) * radius];\n}\n\nexport function mathPoint(cx: number, cy: number, radius: number, degrees: number): [number, number] {\n const radians = (degrees * Math.PI) / 180;\n return [cx + Math.cos(radians) * radius, cy - Math.sin(radians) * radius];\n}\n\nexport function arcPath(cx: number, cy: number, radius: number, startDeg: number, endDeg: number): string {\n const [x0, y0] = mathPoint(cx, cy, radius, startDeg);\n const [x1, y1] = mathPoint(cx, cy, radius, endDeg);\n let delta = startDeg - endDeg;\n delta = ((delta % 360) + 360) % 360;\n if (delta === 0) return '';\n const large = delta > 180 ? 1 : 0;\n return `M ${round(x0)} ${round(y0)} A ${round(radius)} ${round(radius)} 0 ${large} 1 ${round(x1)} ${round(y1)}`;\n}\n\nexport function donutSlicePath(\n cx: number,\n cy: number,\n outer: number,\n inner: number,\n start: number,\n end: number,\n): string {\n const sweep = end - start;\n if (sweep <= 0.0001) return '';\n if (sweep >= Math.PI * 2 - 0.0001) {\n const mid = start + Math.PI;\n return `${donutSlicePath(cx, cy, outer, inner, start, mid)} ${donutSlicePath(cx, cy, outer, inner, mid, start + Math.PI * 2 - 0.0001)}`;\n }\n const large = sweep > Math.PI ? 1 : 0;\n const [x0, y0] = pointOnCircle(cx, cy, outer, start);\n const [x1, y1] = pointOnCircle(cx, cy, outer, end);\n if (inner <= 0) {\n return `M ${round(cx)} ${round(cy)} L ${round(x0)} ${round(y0)} A ${round(outer)} ${round(outer)} 0 ${large} 1 ${round(x1)} ${round(y1)} Z`;\n }\n const [ix0, iy0] = pointOnCircle(cx, cy, inner, end);\n const [ix1, iy1] = pointOnCircle(cx, cy, inner, start);\n return `M ${round(x0)} ${round(y0)} A ${round(outer)} ${round(outer)} 0 ${large} 1 ${round(x1)} ${round(y1)} L ${round(ix0)} ${round(iy0)} A ${round(inner)} ${round(inner)} 0 ${large} 0 ${round(ix1)} ${round(iy1)} Z`;\n}\n\nexport interface Domain {\n min: number;\n max: number;\n ticks: number[];\n}\n\nexport function domainOf(values: number[], includeZero: boolean, maxPin?: number): Domain {\n const finite = values.filter((value) => Number.isFinite(value));\n if (finite.length === 0) return { min: 0, max: 1, ticks: [0, 1] };\n let min = Math.min(...finite);\n let max = Math.max(...finite);\n if (includeZero) {\n min = Math.min(0, min);\n max = Math.max(0, max);\n }\n if (maxPin !== undefined && Number.isFinite(maxPin)) max = Math.max(max, maxPin);\n if (min === max) {\n const pad = Math.abs(min) || 1;\n min -= includeZero ? 0 : pad * 0.5;\n max += pad * 0.5;\n if (includeZero) min = Math.min(0, min);\n } else if (!includeZero) {\n const pad = (max - min) * 0.08;\n min -= pad;\n max += pad;\n }\n const ticks = niceTicks(min, max, 4);\n return { min: ticks[0] ?? min, max: ticks[ticks.length - 1] ?? max, ticks };\n}\n\nexport function scale(domainMin: number, domainMax: number, rangeMin: number, rangeMax: number): (value: number) => number {\n const span = domainMax - domainMin || 1;\n return (value) => rangeMin + ((value - domainMin) / span) * (rangeMax - rangeMin);\n}\n","import { percentLabel } from './format';\nimport {\n arcPath,\n clamp,\n DEFAULT_PALETTE,\n domainOf,\n donutSlicePath,\n ellipsize,\n num,\n pointOnCircle,\n round,\n scale,\n seriesColor,\n} from './math';\nimport type { BarMode, BarOrientation, ChartSeries, LegendItem, ScatterSeries } from './types';\n\nexport interface TickMark {\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n label: string;\n labelX: number;\n labelY: number;\n anchor: 'start' | 'middle' | 'end';\n}\n\nexport interface CategoryLabel {\n label: string;\n x: number;\n y: number;\n anchor: 'start' | 'middle' | 'end';\n}\n\nexport interface ZeroLine {\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n}\n\nexport interface BarMark {\n key: string;\n x: number;\n y: number;\n width: number;\n height: number;\n color: string;\n category: string;\n series: string;\n value: number;\n formatted: string;\n labelX: number;\n labelY: number;\n showLabel: boolean;\n}\n\nexport interface BarLayout {\n empty: boolean;\n width: number;\n height: number;\n marks: BarMark[];\n ticks: TickMark[];\n categories: CategoryLabel[];\n zero: ZeroLine | null;\n legend: LegendItem[];\n}\n\nexport interface TrendPoint {\n key: string;\n x: number;\n y: number;\n value: number;\n formatted: string;\n category: string;\n series: string;\n color: string;\n}\n\nexport interface TrendSeriesLayout {\n name: string;\n color: string;\n line: string;\n area: string | null;\n points: TrendPoint[];\n}\n\nexport interface TrendLayout {\n empty: boolean;\n width: number;\n height: number;\n series: TrendSeriesLayout[];\n ticks: TickMark[];\n categories: CategoryLabel[];\n zero: ZeroLine | null;\n legend: LegendItem[];\n}\n\nexport interface PieSlice {\n key: string;\n label: string;\n value: number;\n formatted: string;\n percent: string;\n color: string;\n path: string;\n}\n\nexport interface PieLayout {\n empty: boolean;\n width: number;\n height: number;\n slices: PieSlice[];\n total: number;\n legend: LegendItem[];\n}\n\nexport interface RadarPoint {\n key: string;\n x: number;\n y: number;\n value: number;\n formatted: string;\n axis: string;\n series: string;\n color: string;\n}\n\nexport interface RadarLayout {\n empty: boolean;\n width: number;\n height: number;\n rings: string[];\n spokes: ZeroLine[];\n axes: CategoryLabel[];\n series: { name: string; color: string; polygon: string; points: RadarPoint[] }[];\n legend: LegendItem[];\n}\n\nexport interface ScatterMark {\n key: string;\n cx: number;\n cy: number;\n color: string;\n series: string;\n label: string;\n xValue: number;\n yValue: number;\n formattedX: string;\n formattedY: string;\n}\n\nexport interface ScatterLayout {\n empty: boolean;\n width: number;\n height: number;\n ticksX: TickMark[];\n ticksY: TickMark[];\n points: ScatterMark[];\n legend: LegendItem[];\n}\n\nexport interface GaugeLayout {\n empty: boolean;\n width: number;\n height: number;\n track: string;\n valuePath: string;\n fraction: number;\n labelX: number;\n labelY: number;\n color: string;\n}\n\nexport interface SparkLayout {\n empty: boolean;\n width: number;\n height: number;\n line: string;\n area: string;\n last: { x: number; y: number; value: number; formatted: string } | null;\n color: string;\n}\n\nexport interface HeatCell {\n key: string;\n x: number;\n y: number;\n width: number;\n height: number;\n t: number;\n value: number;\n formatted: string;\n xlabel: string;\n ylabel: string;\n}\n\nexport interface HeatLayout {\n empty: boolean;\n width: number;\n height: number;\n cells: HeatCell[];\n xLabels: CategoryLabel[];\n yLabels: CategoryLabel[];\n min: number;\n max: number;\n}\n\ninterface PlotBox {\n left: number;\n right: number;\n top: number;\n bottom: number;\n width: number;\n height: number;\n}\n\nfunction box(width: number, height: number, pad: { top: number; right: number; bottom: number; left: number }): PlotBox {\n return {\n left: pad.left,\n right: width - pad.right,\n top: pad.top,\n bottom: height - pad.bottom,\n width: Math.max(1, width - pad.left - pad.right),\n height: Math.max(1, height - pad.top - pad.bottom),\n };\n}\n\nfunction yTicks(values: number[], format: (value: number) => string, plot: PlotBox): TickMark[] {\n const y = scale(values[0] ?? 0, values[values.length - 1] ?? 1, plot.bottom, plot.top);\n return values.map((value) => {\n const py = round(y(value));\n return {\n x1: plot.left,\n y1: py,\n x2: plot.right,\n y2: py,\n label: format(value),\n labelX: plot.left - 8,\n labelY: py,\n anchor: 'end' as const,\n };\n });\n}\n\nfunction xValueTicks(values: number[], format: (value: number) => string, plot: PlotBox): TickMark[] {\n const x = scale(values[0] ?? 0, values[values.length - 1] ?? 1, plot.left, plot.right);\n return values.map((value) => {\n const px = round(x(value));\n return {\n x1: px,\n y1: plot.top,\n x2: px,\n y2: plot.bottom,\n label: format(value),\n labelX: px,\n labelY: plot.bottom + 16,\n anchor: 'middle' as const,\n };\n });\n}\n\nfunction legendOf(series: { name: string; color?: string }[], palette: readonly string[]): LegendItem[] {\n return series.map((item, index) => ({\n name: item.name,\n color: seriesColor(item.color, index, palette),\n }));\n}\n\nfunction labelStep(count: number, space: number, estimate = 56): number {\n const fit = Math.max(1, Math.floor(space / estimate));\n return Math.max(1, Math.ceil(count / Math.max(fit, 1)));\n}\n\nexport function layoutBars(input: {\n categories: string[];\n series: ChartSeries[];\n pointColors?: (string | undefined)[];\n mode: BarMode;\n orientation: BarOrientation;\n width: number;\n height: number;\n palette?: readonly string[];\n format: (value: number) => string;\n showValues?: boolean;\n max?: number;\n}): BarLayout {\n const palette = input.palette ?? DEFAULT_PALETTE;\n const categories = input.categories;\n const series = input.series;\n const values = series.reduce<number[]>((all, item) => all.concat(item.data), []);\n const empty = categories.length === 0 || series.length === 0;\n const domain = domainOf(values, true, input.max);\n const longest = domain.ticks.reduce((max, tick) => Math.max(max, input.format(tick).length), 2);\n const horizontal = input.orientation === 'horizontal';\n const categoryEstimate = categories.reduce((max, label) => Math.max(max, label.length), 0);\n const pad = horizontal\n ? { top: 12, right: 16, bottom: 28, left: Math.min(132, Math.max(48, categoryEstimate * 7 + 16)) }\n : { top: 12, right: 12, bottom: 28, left: Math.min(96, Math.max(40, longest * 7 + 14)) };\n const width = Math.max(input.width, pad.left + pad.right + 40);\n const height = Math.max(input.height, pad.top + pad.bottom + 40);\n const plot = box(width, height, pad);\n const legend = series.length > 1 || series.some((item) => item.name !== 'Value') ? legendOf(series, palette) : legendOf(series, palette);\n if (empty) {\n return { empty: true, width, height, marks: [], ticks: [], categories: [], zero: null, legend: [] };\n }\n\n const marks: BarMark[] = [];\n const mode = input.mode;\n const showValues = input.showValues ?? false;\n\n if (!horizontal) {\n const y = scale(domain.min, domain.max, plot.bottom, plot.top);\n const band = plot.width / categories.length;\n const step = labelStep(categories.length, plot.width);\n const categoryLabels: CategoryLabel[] = categories.map((label, index) => ({\n label: ellipsize(label),\n x: round(plot.left + band * index + band / 2),\n y: plot.bottom + 16,\n anchor: 'middle' as const,\n })).filter((_, index) => index % step === 0);\n const zeroY = round(y(0));\n categories.forEach((category, categoryIndex) => {\n const inset = band * 0.18;\n const inner = Math.max(1, band - inset * 2);\n if (mode === 'stacked') {\n let positive = 0;\n let negative = 0;\n series.forEach((item, seriesIndex) => {\n const value = num(item.data[categoryIndex] ?? 0);\n const start = value >= 0 ? positive : negative;\n const end = start + value;\n if (value >= 0) positive = end;\n else negative = end;\n const y0 = y(start);\n const y1 = y(end);\n const top = Math.min(y0, y1);\n const barHeight = Math.max(Math.abs(y1 - y0), value === 0 ? 0 : 1);\n const x = plot.left + band * categoryIndex + inset;\n const color = input.pointColors?.[categoryIndex] || seriesColor(item.color, seriesIndex, palette);\n marks.push(barMark(category, item.name, value, input.format, color, x, top, inner, barHeight, showValues, `${categoryIndex}-${seriesIndex}`));\n });\n } else {\n const gap = series.length > 1 ? Math.min(4, inner * 0.08) : 0;\n const barWidth = Math.max(1, (inner - gap * (series.length - 1)) / series.length);\n series.forEach((item, seriesIndex) => {\n const value = num(item.data[categoryIndex] ?? 0);\n const y0 = y(0);\n const y1 = y(value);\n const top = Math.min(y0, y1);\n const barHeight = Math.max(Math.abs(y1 - y0), value === 0 ? 0 : 1);\n const x = plot.left + band * categoryIndex + inset + seriesIndex * (barWidth + gap);\n const color = (series.length === 1 ? input.pointColors?.[categoryIndex] : undefined) || seriesColor(item.color, seriesIndex, palette);\n marks.push(barMark(category, item.name, value, input.format, color, x, top, barWidth, barHeight, showValues, `${categoryIndex}-${seriesIndex}`));\n });\n }\n });\n return {\n empty: false,\n width,\n height,\n marks,\n ticks: yTicks(domain.ticks, input.format, plot),\n categories: categoryLabels,\n zero: domain.min < 0 && domain.max > 0 ? { x1: plot.left, y1: zeroY, x2: plot.right, y2: zeroY } : null,\n legend,\n };\n }\n\n const x = scale(domain.min, domain.max, plot.left, plot.right);\n const band = plot.height / categories.length;\n const categoryLabels: CategoryLabel[] = categories.map((label, index) => ({\n label: ellipsize(label, 18),\n x: plot.left - 8,\n y: round(plot.top + band * index + band / 2),\n anchor: 'end' as const,\n }));\n const zeroX = round(x(0));\n categories.forEach((category, categoryIndex) => {\n const inset = band * 0.2;\n const inner = Math.max(1, band - inset * 2);\n if (mode === 'stacked') {\n let positive = 0;\n let negative = 0;\n series.forEach((item, seriesIndex) => {\n const value = num(item.data[categoryIndex] ?? 0);\n const start = value >= 0 ? positive : negative;\n const end = start + value;\n if (value >= 0) positive = end;\n else negative = end;\n const x0 = x(start);\n const x1 = x(end);\n const left = Math.min(x0, x1);\n const barWidth = Math.max(Math.abs(x1 - x0), value === 0 ? 0 : 1);\n const y = plot.top + band * categoryIndex + inset;\n const color = input.pointColors?.[categoryIndex] || seriesColor(item.color, seriesIndex, palette);\n marks.push(barMark(category, item.name, value, input.format, color, left, y, barWidth, inner, showValues, `${categoryIndex}-${seriesIndex}`, true));\n });\n } else {\n const gap = series.length > 1 ? Math.min(4, inner * 0.08) : 0;\n const barHeight = Math.max(1, (inner - gap * (series.length - 1)) / series.length);\n series.forEach((item, seriesIndex) => {\n const value = num(item.data[categoryIndex] ?? 0);\n const x0 = x(0);\n const x1 = x(value);\n const left = Math.min(x0, x1);\n const barWidth = Math.max(Math.abs(x1 - x0), value === 0 ? 0 : 1);\n const y = plot.top + band * categoryIndex + inset + seriesIndex * (barHeight + gap);\n const color = (series.length === 1 ? input.pointColors?.[categoryIndex] : undefined) || seriesColor(item.color, seriesIndex, palette);\n marks.push(barMark(category, item.name, value, input.format, color, left, y, barWidth, barHeight, showValues, `${categoryIndex}-${seriesIndex}`, true));\n });\n }\n });\n return {\n empty: false,\n width,\n height,\n marks,\n ticks: xValueTicks(domain.ticks, input.format, plot),\n categories: categoryLabels,\n zero: domain.min < 0 && domain.max > 0 ? { x1: zeroX, y1: plot.top, x2: zeroX, y2: plot.bottom } : null,\n legend,\n };\n}\n\nfunction barMark(\n category: string,\n seriesName: string,\n value: number,\n format: (value: number) => string,\n color: string,\n x: number,\n y: number,\n width: number,\n height: number,\n showValues: boolean,\n key: string,\n horizontal = false,\n): BarMark {\n const formatted = format(value);\n const showLabel = showValues && (horizontal ? width > 28 : height > 16);\n return {\n key,\n x: round(x),\n y: round(y),\n width: round(Math.max(width, 0)),\n height: round(Math.max(height, 0)),\n color,\n category,\n series: seriesName,\n value,\n formatted,\n labelX: round(horizontal ? x + width + 6 : x + width / 2),\n labelY: round(horizontal ? y + height / 2 : y - 6),\n showLabel,\n };\n}\n\nexport function layoutTrend(input: {\n categories: string[];\n series: ChartSeries[];\n width: number;\n height: number;\n palette?: readonly string[];\n format: (value: number) => string;\n filled?: boolean;\n stacked?: boolean;\n}): TrendLayout {\n const palette = input.palette ?? DEFAULT_PALETTE;\n const categories = input.categories;\n const series = input.series;\n const empty = categories.length === 0 || series.length === 0;\n const stacked = input.stacked ?? false;\n const values = stacked\n ? categories.map((_, index) => series.reduce((sum, item) => sum + num(item.data[index] ?? 0), 0))\n : series.reduce<number[]>((all, item) => all.concat(item.data.map(num)), []);\n const domain = domainOf(values, stacked || Boolean(input.filled), undefined);\n const longest = domain.ticks.reduce((max, tick) => Math.max(max, input.format(tick).length), 2);\n const pad = { top: 16, right: 16, bottom: 28, left: Math.min(96, Math.max(40, longest * 7 + 14)) };\n const width = Math.max(input.width, pad.left + pad.right + 40);\n const height = Math.max(input.height, pad.top + pad.bottom + 40);\n const plot = box(width, height, pad);\n if (empty) {\n return { empty: true, width, height, series: [], ticks: [], categories: [], zero: null, legend: [] };\n }\n const y = scale(domain.min, domain.max, plot.bottom, plot.top);\n const xAt = (index: number) => {\n if (categories.length === 1) return plot.left + plot.width / 2;\n return plot.left + (index / (categories.length - 1)) * plot.width;\n };\n const step = labelStep(categories.length, plot.width, 48);\n const categoryLabels = categories\n .map((label, index) => ({\n label: ellipsize(label),\n x: round(xAt(index)),\n y: plot.bottom + 16,\n anchor: 'middle' as const,\n }))\n .filter((_, index) => index % step === 0);\n\n const baselines = categories.map(() => 0);\n const layouts: TrendSeriesLayout[] = series.map((item, seriesIndex) => {\n const color = seriesColor(item.color, seriesIndex, palette);\n const points: TrendPoint[] = categories.map((category, index) => {\n const value = num(item.data[index] ?? 0);\n const base = stacked ? baselines[index] ?? 0 : 0;\n const yValue = stacked ? base + value : value;\n if (stacked) baselines[index] = yValue;\n return {\n key: `${seriesIndex}-${index}`,\n x: round(xAt(index)),\n y: round(y(yValue)),\n value,\n formatted: input.format(value),\n category,\n series: item.name,\n color,\n };\n });\n const line = points.map((point, index) => `${index === 0 ? 'M' : 'L'} ${point.x} ${point.y}`).join(' ');\n let area: string | null = null;\n if (input.filled) {\n if (!stacked) {\n const baseline = round(y(domain.min < 0 && domain.max > 0 ? 0 : domain.min));\n area = `${line} L ${points[points.length - 1]?.x ?? 0} ${baseline} L ${points[0]?.x ?? 0} ${baseline} Z`;\n } else {\n const previous = seriesIndex === 0\n ? categories.map((_, index) => ({ x: round(xAt(index)), y: round(y(0)) }))\n : null;\n const under = previous\n ? [...previous].reverse()\n : categories.map((_, index) => {\n const base = series.slice(0, seriesIndex).reduce((sum, entry) => sum + num(entry.data[index] ?? 0), 0);\n return { x: round(xAt(index)), y: round(y(base)) };\n }).reverse();\n area = `${line} ${under.map((point) => `L ${point.x} ${point.y}`).join(' ')} Z`;\n }\n }\n return { name: item.name, color, line, area, points };\n });\n\n const zeroY = round(y(0));\n return {\n empty: false,\n width,\n height,\n series: layouts,\n ticks: yTicks(domain.ticks, input.format, plot),\n categories: categoryLabels,\n zero: domain.min < 0 && domain.max > 0 ? { x1: plot.left, y1: zeroY, x2: plot.right, y2: zeroY } : null,\n legend: legendOf(series, palette),\n };\n}\n\nexport function layoutPie(input: {\n data: { label: string; value: number; color?: string }[];\n width: number;\n height: number;\n donut?: boolean;\n innerRatio?: number;\n palette?: readonly string[];\n format: (value: number) => string;\n}): PieLayout {\n const palette = input.palette ?? DEFAULT_PALETTE;\n const slicesIn = input.data.map((datum) => ({ ...datum, value: Math.max(0, num(datum.value)) })).filter((datum) => datum.value > 0);\n const width = Math.max(input.width, 80);\n const height = Math.max(input.height, 80);\n const total = slicesIn.reduce((sum, datum) => sum + datum.value, 0);\n if (total <= 0) {\n return { empty: true, width, height, slices: [], total: 0, legend: [] };\n }\n const size = Math.min(width, height);\n const cx = width / 2;\n const cy = height / 2;\n const outer = size / 2 - 8;\n const inner = input.donut ? outer * clamp(input.innerRatio ?? 0.62, 0.2, 0.85) : 0;\n let angle = -Math.PI / 2;\n const slices: PieSlice[] = slicesIn.map((datum, index) => {\n const sweep = (datum.value / total) * Math.PI * 2;\n const start = angle;\n const end = angle + sweep;\n angle = end;\n const color = datum.color || seriesColor(undefined, index, palette);\n return {\n key: `${datum.label}-${index}`,\n label: datum.label,\n value: datum.value,\n formatted: input.format(datum.value),\n percent: percentLabel(datum.value, total),\n color,\n path: donutSlicePath(cx, cy, outer, inner, start, end - 0.00001),\n };\n });\n return {\n empty: false,\n width,\n height,\n slices,\n total,\n legend: slices.map((slice) => ({ name: slice.label, color: slice.color })),\n };\n}\n\nexport function layoutRadar(input: {\n categories: string[];\n series: ChartSeries[];\n width: number;\n height: number;\n palette?: readonly string[];\n format: (value: number) => string;\n}): RadarLayout {\n const palette = input.palette ?? DEFAULT_PALETTE;\n const categories = input.categories;\n const series = input.series;\n const width = Math.max(input.width, 160);\n const height = Math.max(input.height, 160);\n const empty = categories.length < 3 || series.length === 0;\n if (empty) {\n return { empty: true, width, height, rings: [], spokes: [], axes: [], series: [], legend: [] };\n }\n const maxValue = Math.max(\n 1,\n ...series.reduce<number[]>((all, item) => all.concat(item.data.map((value) => Math.max(0, num(value)))), []),\n );\n const cx = width / 2;\n const cy = height / 2 + 4;\n const radius = Math.min(width, height) / 2 - 36;\n const levels = 4;\n const rings = Array.from({ length: levels }, (_, level) => {\n const ringRadius = radius * ((level + 1) / levels);\n return categories\n .map((_, index) => {\n const angle = -Math.PI / 2 + (index / categories.length) * Math.PI * 2;\n const [x, y] = pointOnCircle(cx, cy, ringRadius, angle);\n return `${index === 0 ? 'M' : 'L'} ${round(x)} ${round(y)}`;\n })\n .join(' ') + ' Z';\n });\n const spokes: ZeroLine[] = categories.map((_, index) => {\n const angle = -Math.PI / 2 + (index / categories.length) * Math.PI * 2;\n const [x, y] = pointOnCircle(cx, cy, radius, angle);\n return { x1: round(cx), y1: round(cy), x2: round(x), y2: round(y) };\n });\n const axes: CategoryLabel[] = categories.map((label, index) => {\n const angle = -Math.PI / 2 + (index / categories.length) * Math.PI * 2;\n const [x, y] = pointOnCircle(cx, cy, radius + 16, angle);\n const anchor = x < cx - 8 ? 'end' : x > cx + 8 ? 'start' : 'middle';\n return { label: ellipsize(label, 14), x: round(x), y: round(y), anchor };\n });\n const layouts = series.map((item, seriesIndex) => {\n const color = seriesColor(item.color, seriesIndex, palette);\n const points: RadarPoint[] = categories.map((axis, index) => {\n const value = Math.max(0, num(item.data[index] ?? 0));\n const angle = -Math.PI / 2 + (index / categories.length) * Math.PI * 2;\n const [x, y] = pointOnCircle(cx, cy, radius * (value / maxValue), angle);\n return {\n key: `${seriesIndex}-${index}`,\n x: round(x),\n y: round(y),\n value,\n formatted: input.format(value),\n axis,\n series: item.name,\n color,\n };\n });\n const polygon = `${points.map((point, index) => `${index === 0 ? 'M' : 'L'} ${point.x} ${point.y}`).join(' ')} Z`;\n return { name: item.name, color, polygon, points };\n });\n return { empty: false, width, height, rings, spokes, axes, series: layouts, legend: legendOf(series, palette) };\n}\n\nexport function layoutScatter(input: {\n series: ScatterSeries[];\n width: number;\n height: number;\n palette?: readonly string[];\n format: (value: number) => string;\n}): ScatterLayout {\n const palette = input.palette ?? DEFAULT_PALETTE;\n const series = input.series.filter((item) => item.data.length > 0);\n const width = Math.max(input.width, 160);\n const height = Math.max(input.height, 160);\n const pointsIn = series.reduce<ScatterSeries['data']>((all, item) => all.concat(item.data), []);\n if (series.length === 0 || pointsIn.length === 0) {\n return { empty: true, width, height, ticksX: [], ticksY: [], points: [], legend: [] };\n }\n const xDomain = domainOf(pointsIn.map((point) => num(point.x)), false);\n const yDomain = domainOf(pointsIn.map((point) => num(point.y)), false);\n const longest = yDomain.ticks.reduce((max, tick) => Math.max(max, input.format(tick).length), 2);\n const pad = { top: 16, right: 16, bottom: 32, left: Math.min(96, Math.max(40, longest * 7 + 14)) };\n const plot = box(width, height, pad);\n const x = scale(xDomain.min, xDomain.max, plot.left, plot.right);\n const y = scale(yDomain.min, yDomain.max, plot.bottom, plot.top);\n const points: ScatterMark[] = series.reduce<ScatterMark[]>((all, item, seriesIndex) => {\n const color = seriesColor(item.color, seriesIndex, palette);\n return all.concat(\n item.data.map((point, index) => ({\n key: `${seriesIndex}-${index}`,\n cx: round(x(num(point.x))),\n cy: round(y(num(point.y))),\n color,\n series: item.name,\n label: point.label || item.name,\n xValue: num(point.x),\n yValue: num(point.y),\n formattedX: input.format(num(point.x)),\n formattedY: input.format(num(point.y)),\n })),\n );\n }, []);\n return {\n empty: false,\n width,\n height,\n ticksX: xValueTicks(xDomain.ticks, input.format, plot),\n ticksY: yTicks(yDomain.ticks, input.format, plot),\n points,\n legend: legendOf(series, palette),\n };\n}\n\nexport function layoutGauge(input: {\n value: number;\n min?: number;\n max?: number;\n width: number;\n height: number;\n color?: string;\n}): GaugeLayout {\n const width = Math.max(input.width, 160);\n const height = Math.max(input.height, 120);\n const min = input.min ?? 0;\n const max = input.max ?? 100;\n const fraction = clamp((num(input.value) - min) / (max - min || 1), 0, 1);\n const cx = width / 2;\n const cy = height * 0.72;\n const radius = Math.min(width * 0.38, height * 0.48);\n const start = 210;\n const sweep = 240;\n const track = arcPath(cx, cy, radius, start, start - sweep);\n const valuePath = fraction <= 0 ? '' : arcPath(cx, cy, radius, start, start - sweep * fraction);\n return {\n empty: false,\n width,\n height,\n track,\n valuePath,\n fraction,\n labelX: round(cx),\n labelY: round(cy + 4),\n color: input.color || 'var(--ngx-1)',\n };\n}\n\nexport function layoutSparkline(input: {\n data: number[];\n width: number;\n height: number;\n format: (value: number) => string;\n color?: string;\n}): SparkLayout {\n const data = input.data.map(num);\n const width = Math.max(input.width, 40);\n const height = Math.max(input.height, 28);\n const color = input.color || 'var(--ngx-1)';\n if (data.length === 0) return { empty: true, width, height, line: '', area: '', last: null, color };\n const min = Math.min(...data);\n const max = Math.max(...data);\n const span = max - min || 1;\n const pad = 4;\n const xAt = (index: number) => (data.length === 1 ? width / 2 : pad + (index / (data.length - 1)) * (width - pad * 2));\n const yAt = (value: number) => pad + (1 - (value - min) / span) * (height - pad * 2);\n const coords = data.map((value, index) => ({ x: round(xAt(index)), y: round(yAt(value)), value }));\n const line = coords.map((point, index) => `${index === 0 ? 'M' : 'L'} ${point.x} ${point.y}`).join(' ');\n const area = `${line} L ${coords[coords.length - 1]?.x ?? 0} ${round(height - 1)} L ${coords[0]?.x ?? 0} ${round(height - 1)} Z`;\n const last = coords[coords.length - 1];\n return {\n empty: false,\n width,\n height,\n line,\n area,\n last: last ? { x: last.x, y: last.y, value: last.value, formatted: input.format(last.value) } : null,\n color,\n };\n}\n\nexport function layoutHeatmap(input: {\n xLabels: string[];\n yLabels: string[];\n data: number[][];\n width: number;\n height: number;\n format: (value: number) => string;\n}): HeatLayout {\n const xLabels = input.xLabels;\n const yLabels = input.yLabels;\n const width = Math.max(input.width, 160);\n const height = Math.max(input.height, 120);\n const rows = yLabels.map((_, row) => xLabels.map((_, column) => num(input.data[row]?.[column] ?? 0)));\n const flat = rows.reduce((all, row) => all.concat(row), [] as number[]);\n if (xLabels.length === 0 || yLabels.length === 0) {\n return { empty: true, width, height, cells: [], xLabels: [], yLabels: [], min: 0, max: 0 };\n }\n const min = Math.min(...flat);\n const max = Math.max(...flat);\n const span = max - min || 1;\n const yEstimate = yLabels.reduce((longest, label) => Math.max(longest, label.length), 0);\n const pad = { top: 8, right: 8, bottom: 28, left: Math.min(120, Math.max(36, yEstimate * 7 + 12)) };\n const plot = box(width, height, pad);\n const gap = 3;\n const cellW = Math.max(1, (plot.width - gap * (xLabels.length - 1)) / xLabels.length);\n const cellH = Math.max(1, (plot.height - gap * (yLabels.length - 1)) / yLabels.length);\n const cells: HeatCell[] = [];\n yLabels.forEach((ylabel, row) => {\n xLabels.forEach((xlabel, column) => {\n const value = rows[row]?.[column] ?? 0;\n cells.push({\n key: `${row}-${column}`,\n x: round(plot.left + column * (cellW + gap)),\n y: round(plot.top + row * (cellH + gap)),\n width: round(cellW),\n height: round(cellH),\n t: clamp((value - min) / span, 0, 1),\n value,\n formatted: input.format(value),\n xlabel,\n ylabel,\n });\n });\n });\n return {\n empty: false,\n width,\n height,\n cells,\n xLabels: xLabels.map((label, index) => ({\n label: ellipsize(label, 8),\n x: round(plot.left + index * (cellW + gap) + cellW / 2),\n y: plot.bottom + 16,\n anchor: 'middle' as const,\n })),\n yLabels: yLabels.map((label, index) => ({\n label: ellipsize(label, 14),\n x: plot.left - 8,\n y: round(plot.top + index * (cellH + gap) + cellH / 2),\n anchor: 'end' as const,\n })),\n min,\n max,\n };\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport type { ChartTooltip, LegendItem } from './types';\n\n@Component({\n selector: 'ngx-chart-frame',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styles: [':host{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0}'],\n template: `\n <figure class=\"ngx-charts ngx-wind-charts text-sm text-muted\" [attr.aria-label]=\"ariaLabel()\">\n @if (title()) {\n <div class=\"text-sm font-medium text-foreground\">{{ title() }}</div>\n }\n <div class=\"ngx-plot relative w-full\">\n <ng-content />\n @if (tooltip(); as tip) {\n <div class=\"ngx-tip\" [style.left.px]=\"tip.x\" [style.top.px]=\"tip.y\">\n <div class=\"font-medium\">{{ tip.title }}</div>\n @for (row of tip.rows; track row.label) {\n <div class=\"ngx-key mt-1\">\n <span class=\"ngx-swatch\" [style.background]=\"row.swatch\"></span>\n <span>{{ row.label }}</span>\n <span class=\"ml-auto pl-3 font-medium text-foreground\">{{ row.value }}</span>\n </div>\n }\n </div>\n }\n </div>\n @if (showLegend() && legend().length > 0) {\n <ul class=\"ngx-legend\">\n @for (item of legend(); track item.name) {\n <li>\n <span class=\"ngx-swatch\" [style.background]=\"item.color\"></span>\n <span>{{ item.name }}</span>\n </li>\n }\n </ul>\n }\n @if (range(); as scale) {\n <div class=\"ngx-key text-xs\">\n <span>{{ scale.min }}</span>\n <span class=\"ngx-heat-scale\"></span>\n <span>{{ scale.max }}</span>\n </div>\n }\n <table class=\"ngx-sr\">\n <caption>{{ ariaLabel() }}</caption>\n <thead>\n <tr>\n @for (header of srHeaders(); track header) {\n <th>{{ header }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of srRows(); track $index) {\n <tr>\n @for (cell of row; track $index) {\n <td>{{ cell }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n </figure>\n `,\n})\nexport class NgxChartFrame {\n readonly title = input<string | undefined>(undefined);\n readonly ariaLabel = input('Chart');\n readonly legend = input<LegendItem[]>([]);\n readonly showLegend = input(false);\n readonly tooltip = input<ChartTooltip | null>(null);\n readonly srHeaders = input<string[]>([]);\n readonly srRows = input<string[][]>([]);\n readonly range = input<{ min: string; max: string } | undefined>(undefined);\n}\n","import { num } from './math';\nimport type { CategoryDatum, ChartSeries, NormalizedSeries } from './types';\n\nexport function normalizeSeries(input: {\n data?: CategoryDatum[] | null;\n series?: ChartSeries[] | null;\n categories?: string[] | null;\n}): NormalizedSeries {\n if (input.series && input.series.length > 0) {\n const longest = input.series.reduce((max, series) => Math.max(max, series.data.length), 0);\n const categories =\n input.categories && input.categories.length > 0\n ? input.categories\n : Array.from({ length: longest }, (_, index) => String(index + 1));\n return {\n categories,\n series: input.series.map((series) => ({\n name: series.name || 'Series',\n color: series.color,\n data: categories.map((_, index) => num(series.data[index] ?? 0)),\n })),\n };\n }\n const data = input.data ?? [];\n return {\n categories: data.map((datum) => datum.label),\n series: [\n {\n name: 'Value',\n data: data.map((datum) => num(datum.value)),\n },\n ],\n pointColors: data.map((datum) => datum.color),\n };\n}\n","import type { ChartTooltip, ChartTooltipRow } from './types';\n\nexport function tooltipAt(event: PointerEvent, title: string, rows: ChartTooltipRow[]): ChartTooltip {\n const plot = (event.currentTarget as Element | null)?.closest('.ngx-plot');\n const box = plot?.getBoundingClientRect();\n return {\n x: box ? event.clientX - box.left : event.offsetX,\n y: box ? event.clientY - box.top : event.offsetY,\n title,\n rows,\n };\n}\n","import { DestroyRef, ElementRef, afterNextRender, effect, inject, signal, type Signal } from '@angular/core';\n\n/** Width follows the parent. Height is the chart's own `height` input, so the drawing still shows when the parent has no size. */\nexport const chartHost = ':host{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0}';\n\nexport function chartBox(preferred: Signal<number>, initialWidth = 640) {\n const host = inject(ElementRef<HTMLElement>);\n const destroyRef = inject(DestroyRef);\n const width = signal(initialWidth);\n const height = signal(Math.max(1, preferred()));\n effect(() => height.set(Math.max(1, preferred())));\n afterNextRender(() => {\n const root = host.nativeElement;\n const measure = () => {\n const nextW = root.clientWidth;\n if (nextW > 0) width.set(Math.round(nextW));\n };\n measure();\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(measure);\n observer.observe(root);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n return { width, height };\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input, signal } from '@angular/core';\nimport { layoutTrend, type TrendPoint } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { normalizeSeries } from './normalize';\nimport { tooltipAt } from './tip';\nimport type { CategoryDatum, ChartFormat, ChartSeries, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-line-chart, ngx-area-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [legend]=\"layout().legend\"\n [showLegend]=\"legendOn()\"\n [tooltip]=\"tip()\"\n [srHeaders]=\"headers()\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <svg\n class=\"block w-full max-w-full\"\n [style.height.px]=\"height()\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n aria-hidden=\"true\"\n (pointerleave)=\"tip.set(null)\"\n >\n @for (tick of layout().ticks; track tick.label + '-' + tick.labelY) {\n @if (showGrid()) {\n <line class=\"ngx-grid\" [attr.x1]=\"tick.x1\" [attr.y1]=\"tick.y1\" [attr.x2]=\"tick.x2\" [attr.y2]=\"tick.y2\" />\n }\n <text [attr.x]=\"tick.labelX\" [attr.y]=\"tick.labelY\" [attr.text-anchor]=\"tick.anchor\" dominant-baseline=\"middle\">\n {{ tick.label }}\n </text>\n }\n @if (layout().zero; as zero) {\n <line class=\"ngx-zero\" [attr.x1]=\"zero.x1\" [attr.y1]=\"zero.y1\" [attr.x2]=\"zero.x2\" [attr.y2]=\"zero.y2\" />\n }\n @for (item of layout().series; track item.name) {\n @if (item.area) {\n <path [attr.d]=\"item.area\" [attr.fill]=\"item.color\" fill-opacity=\"0.18\" [class.ngx-in]=\"animate()\" />\n }\n <path\n [attr.d]=\"item.line\"\n fill=\"none\"\n [attr.stroke]=\"item.color\"\n stroke-width=\"2\"\n stroke-linejoin=\"round\"\n stroke-linecap=\"round\"\n [class.ngx-in]=\"animate()\"\n />\n @for (point of item.points; track point.key) {\n <circle\n [attr.cx]=\"point.x\"\n [attr.cy]=\"point.y\"\n r=\"4\"\n [attr.fill]=\"point.color\"\n class=\"cursor-pointer\"\n stroke=\"var(--ngx-surface)\"\n stroke-width=\"1.5\"\n (pointerenter)=\"onPoint(point, $event)\"\n />\n }\n }\n @for (label of layout().categories; track label.label + '-' + label.x) {\n <text [attr.x]=\"label.x\" [attr.y]=\"label.y\" text-anchor=\"middle\" dominant-baseline=\"middle\">{{ label.label }}</text>\n }\n </svg>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxLineChart {\n private readonly host = inject(ElementRef<HTMLElement>);\n readonly data = input<CategoryDatum[] | undefined>(undefined);\n readonly series = input<ChartSeries[] | undefined>(undefined);\n readonly categories = input<string[] | undefined>(undefined);\n readonly stacked = input(false);\n readonly height = input(320);\n readonly showLegend = input<boolean | undefined>(undefined);\n readonly showGrid = input(true);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly colors = input<readonly string[] | undefined>(undefined);\n readonly ariaLabel = input('Line chart');\n readonly title = input<string | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly filled = computed(() => this.host.nativeElement.localName === 'ngx-area-chart');\n readonly normalized = computed(() => normalizeSeries({ data: this.data(), series: this.series(), categories: this.categories() }));\n readonly layout = computed(() =>\n layoutTrend({\n categories: this.normalized().categories,\n series: this.normalized().series,\n width: this.box.width(),\n height: this.height(),\n palette: this.colors(),\n format: resolveFormat(this.format(), this.currency()),\n filled: this.filled(),\n stacked: this.stacked(),\n }),\n );\n readonly legendOn = computed(() => this.showLegend() ?? this.layout().legend.length > 1);\n readonly headers = computed(() => ['Category', ...this.normalized().series.map((item) => item.name)]);\n readonly rows = computed(() =>\n this.normalized().categories.map((category, index) => [\n category,\n ...this.normalized().series.map((item) => String(item.data[index] ?? 0)),\n ]),\n );\n\n onPoint(point: TrendPoint, event: PointerEvent): void {\n this.tip.set(tooltipAt(event, point.category, [{ swatch: point.color, label: point.series, value: point.formatted }]));\n }\n}\n\nexport { NgxLineChart as NgxAreaChart };\n","import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { layoutBars, type BarMark } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { normalizeSeries } from './normalize';\nimport { tooltipAt } from './tip';\nimport type { BarMode, BarOrientation, CategoryDatum, ChartFormat, ChartSeries, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-bar-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [legend]=\"layout().legend\"\n [showLegend]=\"legendOn()\"\n [tooltip]=\"tip()\"\n [srHeaders]=\"headers()\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <svg\n class=\"block w-full max-w-full\"\n [style.height.px]=\"height()\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n aria-hidden=\"true\"\n (pointerleave)=\"tip.set(null)\"\n >\n @for (tick of layout().ticks; track tick.label + '-' + tick.labelX + '-' + tick.labelY) {\n @if (showGrid()) {\n <line class=\"ngx-grid\" [attr.x1]=\"tick.x1\" [attr.y1]=\"tick.y1\" [attr.x2]=\"tick.x2\" [attr.y2]=\"tick.y2\" />\n }\n <text [attr.x]=\"tick.labelX\" [attr.y]=\"tick.labelY\" [attr.text-anchor]=\"tick.anchor\" dominant-baseline=\"middle\">\n {{ tick.label }}\n </text>\n }\n @if (layout().zero; as zero) {\n <line class=\"ngx-zero\" [attr.x1]=\"zero.x1\" [attr.y1]=\"zero.y1\" [attr.x2]=\"zero.x2\" [attr.y2]=\"zero.y2\" />\n }\n @for (mark of layout().marks; track mark.key) {\n <rect\n [attr.x]=\"mark.x\"\n [attr.y]=\"mark.y\"\n [attr.width]=\"mark.width\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"mark.color\"\n rx=\"3\"\n class=\"cursor-pointer\"\n [class.ngx-in]=\"animate()\"\n [style.animation-delay.ms]=\"animate() ? $index * 18 : 0\"\n (pointerenter)=\"onMark(mark, $event)\"\n />\n @if (mark.showLabel) {\n <text\n class=\"ngx-value\"\n [attr.x]=\"mark.labelX\"\n [attr.y]=\"mark.labelY\"\n [attr.text-anchor]=\"orientation() === 'horizontal' ? 'start' : 'middle'\"\n dominant-baseline=\"middle\"\n >\n {{ mark.formatted }}\n </text>\n }\n }\n @for (label of layout().categories; track label.label + '-' + label.x + '-' + label.y) {\n <text [attr.x]=\"label.x\" [attr.y]=\"label.y\" [attr.text-anchor]=\"label.anchor\" dominant-baseline=\"middle\">\n {{ label.label }}\n </text>\n }\n </svg>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxBarChart {\n readonly data = input<CategoryDatum[] | undefined>(undefined);\n readonly series = input<ChartSeries[] | undefined>(undefined);\n readonly categories = input<string[] | undefined>(undefined);\n readonly mode = input<BarMode>('grouped');\n readonly orientation = input<BarOrientation>('vertical');\n readonly height = input(320);\n readonly showLegend = input<boolean | undefined>(undefined);\n readonly showGrid = input(true);\n readonly showValues = input(false);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly colors = input<readonly string[] | undefined>(undefined);\n readonly ariaLabel = input('Bar chart');\n readonly title = input<string | undefined>(undefined);\n readonly max = input<number | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly normalized = computed(() => normalizeSeries({ data: this.data(), series: this.series(), categories: this.categories() }));\n readonly layout = computed(() =>\n layoutBars({\n categories: this.normalized().categories,\n series: this.normalized().series,\n pointColors: this.normalized().pointColors,\n mode: this.mode(),\n orientation: this.orientation(),\n width: this.box.width(),\n height: this.height(),\n palette: this.colors(),\n format: resolveFormat(this.format(), this.currency()),\n showValues: this.showValues(),\n max: this.max(),\n }),\n );\n readonly legendOn = computed(() => this.showLegend() ?? this.layout().legend.length > 1);\n readonly headers = computed(() => ['Category', ...this.normalized().series.map((item) => item.name)]);\n readonly rows = computed(() =>\n this.normalized().categories.map((category, index) => [\n category,\n ...this.normalized().series.map((item) => String(item.data[index] ?? 0)),\n ]),\n );\n\n onMark(mark: BarMark, event: PointerEvent): void {\n this.tip.set(tooltipAt(event, mark.category, [{ swatch: mark.color, label: mark.series, value: mark.formatted }]));\n }\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input, signal } from '@angular/core';\nimport { layoutPie, type PieSlice } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { tooltipAt } from './tip';\nimport type { CategoryDatum, ChartFormat, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-pie-chart, ngx-donut-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [legend]=\"layout().legend\"\n [showLegend]=\"legendOn()\"\n [tooltip]=\"tip()\"\n [srHeaders]=\"['Category', 'Value', 'Share']\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <div class=\"ngx-square\" [style.width.px]=\"side()\" [style.height.px]=\"side()\">\n <svg class=\"h-full w-full\" [attr.viewBox]=\"'0 0 ' + side() + ' ' + side()\" aria-hidden=\"true\" (pointerleave)=\"tip.set(null)\">\n @for (slice of layout().slices; track slice.key) {\n <path\n [attr.d]=\"slice.path\"\n [attr.fill]=\"slice.color\"\n class=\"cursor-pointer\"\n [class.ngx-in]=\"animate()\"\n stroke=\"var(--ngx-surface)\"\n stroke-width=\"1\"\n (pointerenter)=\"onSlice(slice, $event)\"\n />\n }\n </svg>\n @if (isDonut()) {\n <div class=\"pointer-events-none absolute inset-0 flex flex-col items-center justify-center\">\n <span class=\"text-xs\">Total</span>\n <span class=\"font-display text-2xl font-medium text-foreground\">{{ totalLabel() }}</span>\n </div>\n }\n </div>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxPieChart {\n private readonly host = inject(ElementRef<HTMLElement>);\n readonly data = input<CategoryDatum[]>([]);\n readonly donut = input(false);\n readonly innerRatio = input(0.62);\n readonly height = input(280);\n readonly showLegend = input<boolean | undefined>(undefined);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly colors = input<readonly string[] | undefined>(undefined);\n readonly ariaLabel = input('Pie chart');\n readonly title = input<string | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly isDonut = computed(() => this.donut() || this.host.nativeElement.localName === 'ngx-donut-chart');\n readonly side = computed(() => Math.max(1, Math.min(this.box.width(), this.height())));\n readonly formatter = computed(() => resolveFormat(this.format(), this.currency()));\n readonly layout = computed(() =>\n layoutPie({\n data: this.data(),\n width: this.side(),\n height: this.side(),\n donut: this.isDonut(),\n innerRatio: this.innerRatio(),\n palette: this.colors(),\n format: this.formatter(),\n }),\n );\n readonly legendOn = computed(() => this.showLegend() ?? true);\n readonly totalLabel = computed(() => this.formatter()(this.layout().total));\n readonly rows = computed(() => this.layout().slices.map((slice) => [slice.label, slice.formatted, slice.percent]));\n\n onSlice(slice: PieSlice, event: PointerEvent): void {\n this.tip.set(\n tooltipAt(event, slice.label, [{ swatch: slice.color, label: slice.percent, value: slice.formatted }]),\n );\n }\n}\n\nexport { NgxPieChart as NgxDonutChart };\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { layoutGauge } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport type { ChartFormat } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-gauge-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [srHeaders]=\"['Label', 'Value']\"\n [srRows]=\"[[label() || ariaLabel(), formatted()]]\"\n >\n <div class=\"relative w-full\" [style.height.px]=\"height()\">\n <svg class=\"h-full w-full\" [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\" aria-hidden=\"true\">\n <path [attr.d]=\"layout().track\" fill=\"none\" stroke=\"var(--ngx-track)\" stroke-width=\"14\" stroke-linecap=\"round\" />\n @if (layout().valuePath) {\n <path\n [attr.d]=\"layout().valuePath\"\n fill=\"none\"\n [attr.stroke]=\"layout().color\"\n stroke-width=\"14\"\n stroke-linecap=\"round\"\n [class.ngx-in]=\"animate()\"\n />\n }\n </svg>\n <div\n class=\"pointer-events-none absolute flex -translate-x-1/2 -translate-y-1/2 flex-col items-center\"\n [style.left.%]=\"(layout().labelX / layout().width) * 100\"\n [style.top.%]=\"(layout().labelY / layout().height) * 100\"\n >\n <span class=\"font-display text-3xl font-medium text-foreground\">{{ formatted() }}</span>\n @if (label()) {\n <span class=\"text-xs\">{{ label() }}</span>\n }\n </div>\n </div>\n </ngx-chart-frame>\n `,\n})\nexport class NgxGaugeChart {\n readonly value = input(0);\n readonly min = input(0);\n readonly max = input(100);\n readonly label = input<string | undefined>(undefined);\n readonly height = input(220);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly color = input<string | undefined>(undefined);\n readonly ariaLabel = input('Gauge chart');\n readonly title = input<string | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly formatter = computed(() => resolveFormat(this.format(), this.currency()));\n readonly formatted = computed(() => this.formatter()(this.value()));\n readonly layout = computed(() =>\n layoutGauge({\n value: this.value(),\n min: this.min(),\n max: this.max(),\n width: this.box.width(),\n height: this.height(),\n color: this.color(),\n }),\n );\n}\n","import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { layoutHeatmap, type HeatCell } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { tooltipAt } from './tip';\nimport type { ChartFormat, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-heatmap',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [tooltip]=\"tip()\"\n [range]=\"range()\"\n [srHeaders]=\"headers()\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <svg\n class=\"block w-full max-w-full\"\n [style.height.px]=\"height()\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n aria-hidden=\"true\"\n (pointerleave)=\"tip.set(null)\"\n >\n @for (cell of layout().cells; track cell.key) {\n <rect\n [attr.x]=\"cell.x\"\n [attr.y]=\"cell.y\"\n [attr.width]=\"cell.width\"\n [attr.height]=\"cell.height\"\n rx=\"4\"\n [attr.fill]=\"fill(cell.t)\"\n class=\"cursor-pointer\"\n (pointerenter)=\"onCell(cell, $event)\"\n />\n }\n @for (label of layout().xLabels; track label.label + '-' + label.x) {\n <text [attr.x]=\"label.x\" [attr.y]=\"label.y\" text-anchor=\"middle\" dominant-baseline=\"middle\">{{ label.label }}</text>\n }\n @for (label of layout().yLabels; track label.label + '-' + label.y) {\n <text [attr.x]=\"label.x\" [attr.y]=\"label.y\" text-anchor=\"end\" dominant-baseline=\"middle\">{{ label.label }}</text>\n }\n </svg>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxHeatmap {\n readonly xLabels = input<string[]>([]);\n readonly yLabels = input<string[]>([]);\n readonly data = input<number[][]>([]);\n readonly height = input(280);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly ariaLabel = input('Heatmap');\n readonly title = input<string | undefined>(undefined);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly formatter = computed(() => resolveFormat(this.format(), this.currency()));\n readonly layout = computed(() =>\n layoutHeatmap({\n xLabels: this.xLabels(),\n yLabels: this.yLabels(),\n data: this.data(),\n width: this.box.width(),\n height: this.height(),\n format: this.formatter(),\n }),\n );\n readonly range = computed(() =>\n this.layout().empty ? undefined : { min: this.formatter()(this.layout().min), max: this.formatter()(this.layout().max) },\n );\n readonly headers = computed(() => ['', ...this.xLabels()]);\n readonly rows = computed(() => this.yLabels().map((label, row) => [label, ...(this.data()[row] ?? []).map((value) => this.formatter()(value))]));\n\n fill(t: number): string {\n return `color-mix(in oklab, var(--ngx-2) ${Math.round(t * 100)}%, var(--ngx-track))`;\n }\n\n onCell(cell: HeatCell, event: PointerEvent): void {\n this.tip.set(tooltipAt(event, `${cell.ylabel} · ${cell.xlabel}`, [{ swatch: 'var(--ngx-2)', label: 'Value', value: cell.formatted }]));\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { layoutRadar, type RadarPoint } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { normalizeSeries } from './normalize';\nimport { tooltipAt } from './tip';\nimport type { ChartFormat, ChartSeries, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-radar-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [legend]=\"layout().legend\"\n [showLegend]=\"legendOn()\"\n [tooltip]=\"tip()\"\n [srHeaders]=\"headers()\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">Add at least three axes.</p>\n } @else {\n <div class=\"ngx-square\" [style.width.px]=\"side()\" [style.height.px]=\"side()\">\n <svg class=\"h-full w-full\" [attr.viewBox]=\"'0 0 ' + side() + ' ' + side()\" aria-hidden=\"true\" (pointerleave)=\"tip.set(null)\">\n @for (ring of layout().rings; track $index) {\n <path [attr.d]=\"ring\" fill=\"none\" class=\"ngx-grid\" />\n }\n @for (spoke of layout().spokes; track $index) {\n <line class=\"ngx-grid\" [attr.x1]=\"spoke.x1\" [attr.y1]=\"spoke.y1\" [attr.x2]=\"spoke.x2\" [attr.y2]=\"spoke.y2\" />\n }\n @for (item of layout().series; track item.name) {\n <path [attr.d]=\"item.polygon\" [attr.fill]=\"item.color\" fill-opacity=\"0.16\" [attr.stroke]=\"item.color\" stroke-width=\"2\" [class.ngx-in]=\"animate()\" />\n @for (point of item.points; track point.key) {\n <circle\n [attr.cx]=\"point.x\"\n [attr.cy]=\"point.y\"\n r=\"3.5\"\n [attr.fill]=\"point.color\"\n class=\"cursor-pointer\"\n (pointerenter)=\"onPoint(point, $event)\"\n />\n }\n }\n @for (axis of layout().axes; track axis.label + '-' + axis.x) {\n <text [attr.x]=\"axis.x\" [attr.y]=\"axis.y\" [attr.text-anchor]=\"axis.anchor\" dominant-baseline=\"middle\">{{ axis.label }}</text>\n }\n </svg>\n </div>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxRadarChart {\n readonly series = input<ChartSeries[]>([]);\n readonly categories = input<string[]>([]);\n readonly height = input(320);\n readonly showLegend = input<boolean | undefined>(undefined);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly colors = input<readonly string[] | undefined>(undefined);\n readonly ariaLabel = input('Radar chart');\n readonly title = input<string | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly side = computed(() => Math.max(1, Math.min(this.box.width(), this.height())));\n readonly normalized = computed(() => normalizeSeries({ series: this.series(), categories: this.categories() }));\n readonly layout = computed(() =>\n layoutRadar({\n categories: this.normalized().categories,\n series: this.normalized().series,\n width: this.side(),\n height: this.side(),\n palette: this.colors(),\n format: resolveFormat(this.format(), this.currency()),\n }),\n );\n readonly legendOn = computed(() => this.showLegend() ?? this.layout().legend.length > 0);\n readonly headers = computed(() => ['Axis', ...this.normalized().series.map((item) => item.name)]);\n readonly rows = computed(() =>\n this.normalized().categories.map((category, index) => [\n category,\n ...this.normalized().series.map((item) => String(item.data[index] ?? 0)),\n ]),\n );\n\n onPoint(point: RadarPoint, event: PointerEvent): void {\n this.tip.set(tooltipAt(event, point.axis, [{ swatch: point.color, label: point.series, value: point.formatted }]));\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { layoutScatter, type ScatterMark } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { tooltipAt } from './tip';\nimport type { ChartFormat, ChartTooltip, ScatterSeries } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-scatter-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [legend]=\"layout().legend\"\n [showLegend]=\"legendOn()\"\n [tooltip]=\"tip()\"\n [srHeaders]=\"['Series', 'X', 'Y']\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <svg\n class=\"block w-full max-w-full\"\n [style.height.px]=\"height()\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n aria-hidden=\"true\"\n (pointerleave)=\"tip.set(null)\"\n >\n @for (tick of layout().ticksY; track tick.label + '-' + tick.labelY) {\n @if (showGrid()) {\n <line class=\"ngx-grid\" [attr.x1]=\"tick.x1\" [attr.y1]=\"tick.y1\" [attr.x2]=\"tick.x2\" [attr.y2]=\"tick.y2\" />\n }\n <text [attr.x]=\"tick.labelX\" [attr.y]=\"tick.labelY\" text-anchor=\"end\" dominant-baseline=\"middle\">{{ tick.label }}</text>\n }\n @for (tick of layout().ticksX; track tick.label + '-' + tick.labelX) {\n @if (showGrid()) {\n <line class=\"ngx-grid\" [attr.x1]=\"tick.x1\" [attr.y1]=\"tick.y1\" [attr.x2]=\"tick.x2\" [attr.y2]=\"tick.y2\" />\n }\n <text [attr.x]=\"tick.labelX\" [attr.y]=\"tick.labelY\" text-anchor=\"middle\" dominant-baseline=\"middle\">{{ tick.label }}</text>\n }\n @for (point of layout().points; track point.key) {\n <circle\n [attr.cx]=\"point.cx\"\n [attr.cy]=\"point.cy\"\n r=\"5\"\n [attr.fill]=\"point.color\"\n class=\"cursor-pointer\"\n stroke=\"var(--ngx-surface)\"\n stroke-width=\"1.5\"\n [class.ngx-in]=\"animate()\"\n (pointerenter)=\"onPoint(point, $event)\"\n />\n }\n </svg>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxScatterChart {\n readonly series = input<ScatterSeries[]>([]);\n readonly height = input(320);\n readonly showLegend = input<boolean | undefined>(undefined);\n readonly showGrid = input(true);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly colors = input<readonly string[] | undefined>(undefined);\n readonly ariaLabel = input('Scatter chart');\n readonly title = input<string | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly layout = computed(() =>\n layoutScatter({\n series: this.series(),\n width: this.box.width(),\n height: this.height(),\n palette: this.colors(),\n format: resolveFormat(this.format(), this.currency()),\n }),\n );\n readonly legendOn = computed(() => this.showLegend() ?? this.layout().legend.length > 1);\n readonly rows = computed(() => this.layout().points.map((point) => [point.label, point.formattedX, point.formattedY]));\n\n onPoint(point: ScatterMark, event: PointerEvent): void {\n this.tip.set(\n tooltipAt(event, point.label, [\n { swatch: point.color, label: point.series, value: `${point.formattedX}, ${point.formattedY}` },\n ]),\n );\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { layoutSparkline } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { tooltipAt } from './tip';\nimport type { ChartFormat, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-sparkline',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame [title]=\"title()\" [ariaLabel]=\"ariaLabel()\" [tooltip]=\"tip()\" [srHeaders]=\"['Index', 'Value']\" [srRows]=\"rows()\">\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <svg\n class=\"block w-full max-w-full\"\n [style.height.px]=\"height()\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n aria-hidden=\"true\"\n (pointerleave)=\"tip.set(null)\"\n (pointerenter)=\"onEnter($event)\"\n >\n @if (fill() && layout().area) {\n <path [attr.d]=\"layout().area\" [attr.fill]=\"layout().color\" fill-opacity=\"0.16\" />\n }\n <path [attr.d]=\"layout().line\" fill=\"none\" [attr.stroke]=\"layout().color\" stroke-width=\"2\" stroke-linejoin=\"round\" stroke-linecap=\"round\" />\n @if (layout().last; as last) {\n <circle [attr.cx]=\"last.x\" [attr.cy]=\"last.y\" r=\"3\" [attr.fill]=\"layout().color\" />\n }\n </svg>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxSparkline {\n readonly data = input<number[]>([]);\n readonly height = input(56);\n readonly fill = input(true);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly color = input<string | undefined>(undefined);\n readonly ariaLabel = input('Sparkline');\n readonly title = input<string | undefined>(undefined);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly formatter = computed(() => resolveFormat(this.format(), this.currency()));\n readonly layout = computed(() =>\n layoutSparkline({\n data: this.data(),\n width: this.box.width(),\n height: this.height(),\n format: this.formatter(),\n color: this.color(),\n }),\n );\n readonly rows = computed(() => this.data().map((value, index) => [String(index + 1), this.formatter()(value)]));\n\n onEnter(event: PointerEvent): void {\n const last = this.layout().last;\n if (!last) return;\n this.tip.set(tooltipAt(event, this.ariaLabel(), [{ swatch: this.layout().color, label: 'Latest', value: last.formatted }]));\n }\n}\n"],"mappings":";;AAEA,SAAgB,cAAc,QAAqB,WAAW,OAAK;CACjE,IAAI,OAAO,WAAW,YAAY,OAAO;CACzC,MAAM,SAAS,IAAI,KAAK,aAAa,QAAW,EAAE,uBAAuB,EAAC,CAAE;CAC5E,IAAI,WAAW,WAAW;EACxB,MAAM,UAAU,IAAI,KAAK,aACvB,QACA;GAAE,UAAU;GAAW,uBAAuB;EAAC,CAAyC;EAE1F,QAAQ,UAAU,QAAQ,OAAO,KAAK;CACxC;CACA,IAAI,WAAW,WACb,QAAQ,UAAU,GAAG,OAAO,OAAO,KAAK,EAAC;CAE3C,IAAI,WAAW,YAAY;EACzB,MAAM,QAAQ,IAAI,KAAK,aAAa,QAAW;GAC7C,OAAO;GACP;GACA,uBAAuB;EACxB,CAAA;EACD,QAAQ,UAAU,MAAM,OAAO,KAAK;CACtC;CACA,QAAQ,U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A;CAAA,CAAA;;AA4BZ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EA/BxB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAe,iBACR,wBAAwB;GAAM,SACtC,CAAC,aAAa;GAAC,MAClB,EAAE,iCAAiC,WAAU;GAAE,UAE3C;;;;;;;;;;;;;;;;;;;;;;;;GAuBT,QAAA,CAAA,oFAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"codeauradev-ngx-wind-charts.mjs","names":[],"sources":["../../src/format.ts","../../src/math.ts","../../src/geometry.ts","../../src/frame.ts","../../src/normalize.ts","../../src/tip.ts","../../src/width.ts","../../src/line-chart.ts","../../src/bar-chart.ts","../../src/pie-chart.ts","../../src/gauge-chart.ts","../../src/heatmap.ts","../../src/radar-chart.ts","../../src/scatter-chart.ts","../../src/sparkline.ts"],"sourcesContent":["import type { ChartFormat } from './types';\n\nexport function resolveFormat(format: ChartFormat, currency = 'USD'): (value: number) => string {\n if (typeof format === 'function') return format;\n const number = new Intl.NumberFormat(undefined, { maximumFractionDigits: 2 });\n if (format === 'compact') {\n const compact = new Intl.NumberFormat(\n undefined,\n { notation: 'compact', maximumFractionDigits: 1 } as unknown as Intl.NumberFormatOptions,\n );\n return (value) => compact.format(value);\n }\n if (format === 'percent') {\n return (value) => `${number.format(value)}%`;\n }\n if (format === 'currency') {\n const money = new Intl.NumberFormat(undefined, {\n style: 'currency',\n currency,\n maximumFractionDigits: 0,\n });\n return (value) => money.format(value);\n }\n return (value) => number.format(value);\n}\n\nexport function percentLabel(part: number, total: number): string {\n if (total <= 0) return '0%';\n const rounded = Math.round((part / total) * 1000) / 10;\n return `${rounded}%`;\n}\n","export const DEFAULT_PALETTE = [\n 'var(--ngx-1)',\n 'var(--ngx-2)',\n 'var(--ngx-3)',\n 'var(--ngx-4)',\n 'var(--ngx-5)',\n] as const;\n\nexport function num(value: number): number {\n return Number.isFinite(value) ? value : 0;\n}\n\nexport function clamp(value: number, min: number, max: number): number {\n return Math.min(max, Math.max(min, value));\n}\n\nexport function round(value: number): number {\n return Math.round(value * 100) / 100;\n}\n\nexport function ellipsize(label: string, max = 16): string {\n if (label.length <= max) return label;\n return `${label.slice(0, max - 1)}…`;\n}\n\nexport function seriesColor(explicit: string | undefined, index: number, palette: readonly string[]): string {\n if (explicit) return explicit;\n const source = palette.length > 0 ? palette : DEFAULT_PALETTE;\n return source[index % source.length] ?? DEFAULT_PALETTE[0];\n}\n\nexport function niceNum(range: number, roundToStep: boolean): number {\n const abs = Math.abs(range);\n if (!Number.isFinite(abs) || abs === 0) return 1;\n const exp = Math.floor(Math.log10(abs));\n const frac = abs / 10 ** exp;\n let nice: number;\n if (roundToStep) {\n if (frac < 1.5) nice = 1;\n else if (frac < 3) nice = 2;\n else if (frac < 7) nice = 5;\n else nice = 10;\n } else if (frac <= 1) nice = 1;\n else if (frac <= 2) nice = 2;\n else if (frac <= 5) nice = 5;\n else nice = 10;\n return nice * 10 ** exp;\n}\n\nexport function niceTicks(min: number, max: number, count = 4): number[] {\n if (!Number.isFinite(min) || !Number.isFinite(max)) return [0, 1];\n if (min > max) {\n const swap = min;\n min = max;\n max = swap;\n }\n if (min === max) {\n const pad = Math.abs(min) || 1;\n min -= pad / 2;\n max += pad / 2;\n }\n const step = niceNum((max - min) / Math.max(count, 1), true);\n const start = Math.floor(min / step) * step;\n const end = Math.ceil(max / step) * step;\n const ticks: number[] = [];\n const steps = Math.round((end - start) / step);\n const guard = Math.min(Math.max(steps, 0), count + 8);\n for (let i = 0; i <= guard; i += 1) {\n ticks.push(Number((start + i * step).toPrecision(12)));\n }\n if (ticks.length < 2) return [min, max];\n return ticks;\n}\n\nexport function pointOnCircle(cx: number, cy: number, radius: number, radians: number): [number, number] {\n return [cx + Math.cos(radians) * radius, cy + Math.sin(radians) * radius];\n}\n\nexport function mathPoint(cx: number, cy: number, radius: number, degrees: number): [number, number] {\n const radians = (degrees * Math.PI) / 180;\n return [cx + Math.cos(radians) * radius, cy - Math.sin(radians) * radius];\n}\n\nexport function arcPath(cx: number, cy: number, radius: number, startDeg: number, endDeg: number): string {\n const [x0, y0] = mathPoint(cx, cy, radius, startDeg);\n const [x1, y1] = mathPoint(cx, cy, radius, endDeg);\n let delta = startDeg - endDeg;\n delta = ((delta % 360) + 360) % 360;\n if (delta === 0) return '';\n const large = delta > 180 ? 1 : 0;\n return `M ${round(x0)} ${round(y0)} A ${round(radius)} ${round(radius)} 0 ${large} 1 ${round(x1)} ${round(y1)}`;\n}\n\nexport function donutSlicePath(\n cx: number,\n cy: number,\n outer: number,\n inner: number,\n start: number,\n end: number,\n): string {\n const sweep = end - start;\n if (sweep <= 0.0001) return '';\n if (sweep >= Math.PI * 2 - 0.0001) {\n const mid = start + Math.PI;\n return `${donutSlicePath(cx, cy, outer, inner, start, mid)} ${donutSlicePath(cx, cy, outer, inner, mid, start + Math.PI * 2 - 0.0001)}`;\n }\n const large = sweep > Math.PI ? 1 : 0;\n const [x0, y0] = pointOnCircle(cx, cy, outer, start);\n const [x1, y1] = pointOnCircle(cx, cy, outer, end);\n if (inner <= 0) {\n return `M ${round(cx)} ${round(cy)} L ${round(x0)} ${round(y0)} A ${round(outer)} ${round(outer)} 0 ${large} 1 ${round(x1)} ${round(y1)} Z`;\n }\n const [ix0, iy0] = pointOnCircle(cx, cy, inner, end);\n const [ix1, iy1] = pointOnCircle(cx, cy, inner, start);\n return `M ${round(x0)} ${round(y0)} A ${round(outer)} ${round(outer)} 0 ${large} 1 ${round(x1)} ${round(y1)} L ${round(ix0)} ${round(iy0)} A ${round(inner)} ${round(inner)} 0 ${large} 0 ${round(ix1)} ${round(iy1)} Z`;\n}\n\nexport interface Domain {\n min: number;\n max: number;\n ticks: number[];\n}\n\nexport function domainOf(values: number[], includeZero: boolean, maxPin?: number, minPin?: number): Domain {\n const finite = values.filter((value) => Number.isFinite(value));\n const pinned = minPin !== undefined && Number.isFinite(minPin);\n if (finite.length === 0) {\n const min = pinned ? minPin : 0;\n const max = Math.max(min + 1, maxPin ?? min + 1);\n return { min, max, ticks: [min, max] };\n }\n let min = Math.min(...finite);\n let max = Math.max(...finite);\n if (includeZero) {\n min = Math.min(0, min);\n max = Math.max(0, max);\n }\n if (maxPin !== undefined && Number.isFinite(maxPin)) max = Math.max(max, maxPin);\n if (min === max) {\n const pad = Math.abs(min) || 1;\n min -= includeZero || pinned ? 0 : pad * 0.5;\n max += pad * 0.5;\n if (includeZero) min = Math.min(0, min);\n } else if (!includeZero && !pinned) {\n const pad = (max - min) * 0.08;\n min -= pad;\n max += pad;\n }\n if (pinned) {\n min = minPin;\n if (max <= min) max = min + (Math.abs(min) || 1);\n }\n let ticks = niceTicks(min, max, 4);\n if (pinned) {\n ticks = ticks.filter((tick) => tick >= minPin - 1e-8);\n if (ticks.length === 0 || ticks[0] > minPin + 1e-8) ticks.unshift(minPin);\n }\n return { min: pinned ? minPin : (ticks[0] ?? min), max: ticks[ticks.length - 1] ?? max, ticks };\n}\n\nexport function scale(domainMin: number, domainMax: number, rangeMin: number, rangeMax: number): (value: number) => number {\n const span = domainMax - domainMin || 1;\n return (value) => rangeMin + ((value - domainMin) / span) * (rangeMax - rangeMin);\n}\n","import { percentLabel } from './format';\nimport {\n arcPath,\n clamp,\n DEFAULT_PALETTE,\n domainOf,\n donutSlicePath,\n ellipsize,\n num,\n pointOnCircle,\n round,\n scale,\n seriesColor,\n} from './math';\nimport type { BarMode, BarOrientation, ChartSeries, LegendItem, ScatterSeries } from './types';\n\nexport interface TickMark {\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n label: string;\n labelX: number;\n labelY: number;\n anchor: 'start' | 'middle' | 'end';\n}\n\nexport interface CategoryLabel {\n label: string;\n x: number;\n y: number;\n anchor: 'start' | 'middle' | 'end';\n}\n\nexport interface ZeroLine {\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n}\n\nexport interface BarMark {\n key: string;\n x: number;\n y: number;\n width: number;\n height: number;\n color: string;\n category: string;\n series: string;\n value: number;\n formatted: string;\n labelX: number;\n labelY: number;\n showLabel: boolean;\n origin: 'top' | 'bottom' | 'left' | 'right';\n}\n\nexport interface BarLayout {\n empty: boolean;\n width: number;\n height: number;\n marks: BarMark[];\n ticks: TickMark[];\n categories: CategoryLabel[];\n zero: ZeroLine | null;\n legend: LegendItem[];\n}\n\nexport interface TrendPoint {\n key: string;\n x: number;\n y: number;\n value: number;\n formatted: string;\n category: string;\n series: string;\n color: string;\n}\n\nexport interface TrendSeriesLayout {\n name: string;\n color: string;\n line: string;\n area: string | null;\n points: TrendPoint[];\n}\n\nexport interface TrendLayout {\n empty: boolean;\n width: number;\n height: number;\n series: TrendSeriesLayout[];\n ticks: TickMark[];\n categories: CategoryLabel[];\n zero: ZeroLine | null;\n baseline: number;\n fromZero: boolean;\n legend: LegendItem[];\n}\n\nexport interface PieSlice {\n key: string;\n label: string;\n value: number;\n formatted: string;\n percent: string;\n color: string;\n path: string;\n}\n\nexport interface PieLayout {\n empty: boolean;\n width: number;\n height: number;\n slices: PieSlice[];\n total: number;\n legend: LegendItem[];\n}\n\nexport interface RadarPoint {\n key: string;\n x: number;\n y: number;\n value: number;\n formatted: string;\n axis: string;\n series: string;\n color: string;\n}\n\nexport interface RadarLayout {\n empty: boolean;\n width: number;\n height: number;\n rings: string[];\n spokes: ZeroLine[];\n axes: CategoryLabel[];\n series: { name: string; color: string; polygon: string; points: RadarPoint[] }[];\n legend: LegendItem[];\n}\n\nexport interface ScatterMark {\n key: string;\n cx: number;\n cy: number;\n color: string;\n series: string;\n label: string;\n xValue: number;\n yValue: number;\n formattedX: string;\n formattedY: string;\n}\n\nexport interface ScatterLayout {\n empty: boolean;\n width: number;\n height: number;\n ticksX: TickMark[];\n ticksY: TickMark[];\n points: ScatterMark[];\n legend: LegendItem[];\n}\n\nexport interface GaugeLayout {\n empty: boolean;\n width: number;\n height: number;\n track: string;\n valuePath: string;\n fraction: number;\n labelX: number;\n labelY: number;\n color: string;\n}\n\nexport interface SparkLayout {\n empty: boolean;\n width: number;\n height: number;\n line: string;\n area: string;\n last: { x: number; y: number; value: number; formatted: string } | null;\n color: string;\n}\n\nexport interface HeatCell {\n key: string;\n x: number;\n y: number;\n width: number;\n height: number;\n t: number;\n value: number;\n formatted: string;\n xlabel: string;\n ylabel: string;\n}\n\nexport interface HeatLayout {\n empty: boolean;\n width: number;\n height: number;\n cells: HeatCell[];\n xLabels: CategoryLabel[];\n yLabels: CategoryLabel[];\n min: number;\n max: number;\n}\n\ninterface PlotBox {\n left: number;\n right: number;\n top: number;\n bottom: number;\n width: number;\n height: number;\n}\n\nfunction box(width: number, height: number, pad: { top: number; right: number; bottom: number; left: number }): PlotBox {\n return {\n left: pad.left,\n right: width - pad.right,\n top: pad.top,\n bottom: height - pad.bottom,\n width: Math.max(1, width - pad.left - pad.right),\n height: Math.max(1, height - pad.top - pad.bottom),\n };\n}\n\nfunction yTicks(values: number[], format: (value: number) => string, plot: PlotBox): TickMark[] {\n const y = scale(values[0] ?? 0, values[values.length - 1] ?? 1, plot.bottom, plot.top);\n return values.map((value) => {\n const py = round(y(value));\n return {\n x1: plot.left,\n y1: py,\n x2: plot.right,\n y2: py,\n label: format(value),\n labelX: plot.left - 8,\n labelY: py,\n anchor: 'end' as const,\n };\n });\n}\n\nfunction xValueTicks(values: number[], format: (value: number) => string, plot: PlotBox): TickMark[] {\n const x = scale(values[0] ?? 0, values[values.length - 1] ?? 1, plot.left, plot.right);\n return values.map((value) => {\n const px = round(x(value));\n return {\n x1: px,\n y1: plot.top,\n x2: px,\n y2: plot.bottom,\n label: format(value),\n labelX: px,\n labelY: plot.bottom + 16,\n anchor: 'middle' as const,\n };\n });\n}\n\nfunction legendOf(series: { name: string; color?: string }[], palette: readonly string[]): LegendItem[] {\n return series.map((item, index) => ({\n name: item.name,\n color: seriesColor(item.color, index, palette),\n }));\n}\n\nfunction labelStep(count: number, space: number, estimate = 56): number {\n const fit = Math.max(1, Math.floor(space / estimate));\n return Math.max(1, Math.ceil(count / Math.max(fit, 1)));\n}\n\nexport function layoutBars(input: {\n categories: string[];\n series: ChartSeries[];\n pointColors?: (string | undefined)[];\n mode: BarMode;\n orientation: BarOrientation;\n width: number;\n height: number;\n palette?: readonly string[];\n format: (value: number) => string;\n showValues?: boolean;\n max?: number;\n}): BarLayout {\n const palette = input.palette ?? DEFAULT_PALETTE;\n const categories = input.categories;\n const series = input.series;\n const values = series.reduce<number[]>((all, item) => all.concat(item.data), []);\n const empty = categories.length === 0 || series.length === 0;\n const domain = domainOf(values, true, input.max);\n const longest = domain.ticks.reduce((max, tick) => Math.max(max, input.format(tick).length), 2);\n const horizontal = input.orientation === 'horizontal';\n const categoryEstimate = categories.reduce((max, label) => Math.max(max, label.length), 0);\n const pad = horizontal\n ? { top: 12, right: 16, bottom: 28, left: Math.min(132, Math.max(48, categoryEstimate * 7 + 16)) }\n : { top: 12, right: 12, bottom: 28, left: Math.min(96, Math.max(40, longest * 7 + 14)) };\n const width = Math.max(input.width, pad.left + pad.right + 40);\n const height = Math.max(input.height, pad.top + pad.bottom + 40);\n const plot = box(width, height, pad);\n const legend = series.length > 1 || series.some((item) => item.name !== 'Value') ? legendOf(series, palette) : legendOf(series, palette);\n if (empty) {\n return { empty: true, width, height, marks: [], ticks: [], categories: [], zero: null, legend: [] };\n }\n\n const marks: BarMark[] = [];\n const mode = input.mode;\n const showValues = input.showValues ?? false;\n\n if (!horizontal) {\n const y = scale(domain.min, domain.max, plot.bottom, plot.top);\n const band = plot.width / categories.length;\n const step = labelStep(categories.length, plot.width);\n const categoryLabels: CategoryLabel[] = categories.map((label, index) => ({\n label: ellipsize(label),\n x: round(plot.left + band * index + band / 2),\n y: plot.bottom + 16,\n anchor: 'middle' as const,\n })).filter((_, index) => index % step === 0);\n const zeroY = round(y(0));\n categories.forEach((category, categoryIndex) => {\n const inset = band * 0.18;\n const inner = Math.max(1, band - inset * 2);\n if (mode === 'stacked') {\n let positive = 0;\n let negative = 0;\n series.forEach((item, seriesIndex) => {\n const value = num(item.data[categoryIndex] ?? 0);\n const start = value >= 0 ? positive : negative;\n const end = start + value;\n if (value >= 0) positive = end;\n else negative = end;\n const y0 = y(start);\n const y1 = y(end);\n const top = Math.min(y0, y1);\n const barHeight = Math.max(Math.abs(y1 - y0), value === 0 ? 0 : 1);\n const x = plot.left + band * categoryIndex + inset;\n const color = input.pointColors?.[categoryIndex] || seriesColor(item.color, seriesIndex, palette);\n marks.push(barMark(category, item.name, value, input.format, color, x, top, inner, barHeight, showValues, `${categoryIndex}-${seriesIndex}`));\n });\n } else {\n const gap = series.length > 1 ? Math.min(4, inner * 0.08) : 0;\n const barWidth = Math.max(1, (inner - gap * (series.length - 1)) / series.length);\n series.forEach((item, seriesIndex) => {\n const value = num(item.data[categoryIndex] ?? 0);\n const y0 = y(0);\n const y1 = y(value);\n const top = Math.min(y0, y1);\n const barHeight = Math.max(Math.abs(y1 - y0), value === 0 ? 0 : 1);\n const x = plot.left + band * categoryIndex + inset + seriesIndex * (barWidth + gap);\n const color = (series.length === 1 ? input.pointColors?.[categoryIndex] : undefined) || seriesColor(item.color, seriesIndex, palette);\n marks.push(barMark(category, item.name, value, input.format, color, x, top, barWidth, barHeight, showValues, `${categoryIndex}-${seriesIndex}`));\n });\n }\n });\n return {\n empty: false,\n width,\n height,\n marks,\n ticks: yTicks(domain.ticks, input.format, plot),\n categories: categoryLabels,\n zero: domain.min < 0 && domain.max > 0 ? { x1: plot.left, y1: zeroY, x2: plot.right, y2: zeroY } : null,\n legend,\n };\n }\n\n const x = scale(domain.min, domain.max, plot.left, plot.right);\n const band = plot.height / categories.length;\n const categoryLabels: CategoryLabel[] = categories.map((label, index) => ({\n label: ellipsize(label, 18),\n x: plot.left - 8,\n y: round(plot.top + band * index + band / 2),\n anchor: 'end' as const,\n }));\n const zeroX = round(x(0));\n categories.forEach((category, categoryIndex) => {\n const inset = band * 0.2;\n const inner = Math.max(1, band - inset * 2);\n if (mode === 'stacked') {\n let positive = 0;\n let negative = 0;\n series.forEach((item, seriesIndex) => {\n const value = num(item.data[categoryIndex] ?? 0);\n const start = value >= 0 ? positive : negative;\n const end = start + value;\n if (value >= 0) positive = end;\n else negative = end;\n const x0 = x(start);\n const x1 = x(end);\n const left = Math.min(x0, x1);\n const barWidth = Math.max(Math.abs(x1 - x0), value === 0 ? 0 : 1);\n const y = plot.top + band * categoryIndex + inset;\n const color = input.pointColors?.[categoryIndex] || seriesColor(item.color, seriesIndex, palette);\n marks.push(barMark(category, item.name, value, input.format, color, left, y, barWidth, inner, showValues, `${categoryIndex}-${seriesIndex}`, true));\n });\n } else {\n const gap = series.length > 1 ? Math.min(4, inner * 0.08) : 0;\n const barHeight = Math.max(1, (inner - gap * (series.length - 1)) / series.length);\n series.forEach((item, seriesIndex) => {\n const value = num(item.data[categoryIndex] ?? 0);\n const x0 = x(0);\n const x1 = x(value);\n const left = Math.min(x0, x1);\n const barWidth = Math.max(Math.abs(x1 - x0), value === 0 ? 0 : 1);\n const y = plot.top + band * categoryIndex + inset + seriesIndex * (barHeight + gap);\n const color = (series.length === 1 ? input.pointColors?.[categoryIndex] : undefined) || seriesColor(item.color, seriesIndex, palette);\n marks.push(barMark(category, item.name, value, input.format, color, left, y, barWidth, barHeight, showValues, `${categoryIndex}-${seriesIndex}`, true));\n });\n }\n });\n return {\n empty: false,\n width,\n height,\n marks,\n ticks: xValueTicks(domain.ticks, input.format, plot),\n categories: categoryLabels,\n zero: domain.min < 0 && domain.max > 0 ? { x1: zeroX, y1: plot.top, x2: zeroX, y2: plot.bottom } : null,\n legend,\n };\n}\n\nfunction barMark(\n category: string,\n seriesName: string,\n value: number,\n format: (value: number) => string,\n color: string,\n x: number,\n y: number,\n width: number,\n height: number,\n showValues: boolean,\n key: string,\n horizontal = false,\n): BarMark {\n const formatted = format(value);\n const showLabel = showValues && (horizontal ? width > 28 : height > 16);\n return {\n key,\n x: round(x),\n y: round(y),\n width: round(Math.max(width, 0)),\n height: round(Math.max(height, 0)),\n color,\n category,\n series: seriesName,\n value,\n formatted,\n labelX: round(horizontal ? x + width + 6 : x + width / 2),\n labelY: round(horizontal ? y + height / 2 : y - 6),\n showLabel,\n origin: horizontal ? (value < 0 ? 'right' : 'left') : (value < 0 ? 'top' : 'bottom'),\n };\n}\n\nexport function layoutTrend(input: {\n categories: string[];\n series: ChartSeries[];\n width: number;\n height: number;\n palette?: readonly string[];\n format: (value: number) => string;\n filled?: boolean;\n stacked?: boolean;\n min?: number;\n}): TrendLayout {\n const palette = input.palette ?? DEFAULT_PALETTE;\n const categories = input.categories;\n const series = input.series;\n const empty = categories.length === 0 || series.length === 0;\n const stacked = input.stacked ?? false;\n const values = stacked\n ? categories.map((_, index) => series.reduce((sum, item) => sum + num(item.data[index] ?? 0), 0))\n : series.reduce<number[]>((all, item) => all.concat(item.data.map(num)), []);\n const domain = domainOf(values, stacked || Boolean(input.filled), undefined, input.min);\n const longest = domain.ticks.reduce((max, tick) => Math.max(max, input.format(tick).length), 2);\n const pad = { top: 16, right: 16, bottom: 28, left: Math.min(96, Math.max(40, longest * 7 + 14)) };\n const width = Math.max(input.width, pad.left + pad.right + 40);\n const height = Math.max(input.height, pad.top + pad.bottom + 40);\n const plot = box(width, height, pad);\n if (empty) {\n return { empty: true, width, height, series: [], ticks: [], categories: [], zero: null, baseline: height, fromZero: false, legend: [] };\n }\n const y = scale(domain.min, domain.max, plot.bottom, plot.top);\n const xAt = (index: number) => {\n if (categories.length === 1) return plot.left + plot.width / 2;\n return plot.left + (index / (categories.length - 1)) * plot.width;\n };\n const step = labelStep(categories.length, plot.width, 48);\n const categoryLabels = categories\n .map((label, index) => ({\n label: ellipsize(label),\n x: round(xAt(index)),\n y: plot.bottom + 16,\n anchor: 'middle' as const,\n }))\n .filter((_, index) => index % step === 0);\n\n const baseline = round(y(domain.min < 0 && domain.max > 0 ? 0 : domain.min));\n const baselines = categories.map(() => 0);\n const layouts: TrendSeriesLayout[] = series.map((item, seriesIndex) => {\n const color = seriesColor(item.color, seriesIndex, palette);\n const points: TrendPoint[] = categories.map((category, index) => {\n const value = num(item.data[index] ?? 0);\n const base = stacked ? baselines[index] ?? 0 : 0;\n const yValue = stacked ? base + value : value;\n if (stacked) baselines[index] = yValue;\n return {\n key: `${seriesIndex}-${index}`,\n x: round(xAt(index)),\n y: round(y(yValue)),\n value,\n formatted: input.format(value),\n category,\n series: item.name,\n color,\n };\n });\n const line = points.map((point, index) => `${index === 0 ? 'M' : 'L'} ${point.x} ${point.y}`).join(' ');\n let area: string | null = null;\n if (input.filled) {\n if (!stacked) {\n area = `${line} L ${points[points.length - 1]?.x ?? 0} ${baseline} L ${points[0]?.x ?? 0} ${baseline} Z`;\n } else {\n const previous = seriesIndex === 0\n ? categories.map((_, index) => ({ x: round(xAt(index)), y: round(y(0)) }))\n : null;\n const under = previous\n ? [...previous].reverse()\n : categories.map((_, index) => {\n const base = series.slice(0, seriesIndex).reduce((sum, entry) => sum + num(entry.data[index] ?? 0), 0);\n return { x: round(xAt(index)), y: round(y(base)) };\n }).reverse();\n area = `${line} ${under.map((point) => `L ${point.x} ${point.y}`).join(' ')} Z`;\n }\n }\n return { name: item.name, color, line, area, points };\n });\n\n return {\n empty: false,\n width,\n height,\n series: layouts,\n ticks: yTicks(domain.ticks, input.format, plot),\n categories: categoryLabels,\n zero: domain.min < 0 && domain.max > 0 ? { x1: plot.left, y1: baseline, x2: plot.right, y2: baseline } : null,\n baseline,\n fromZero: domain.min <= 0 && domain.max >= 0,\n legend: legendOf(series, palette),\n };\n}\n\nexport function layoutPie(input: {\n data: { label: string; value: number; color?: string }[];\n width: number;\n height: number;\n donut?: boolean;\n innerRatio?: number;\n palette?: readonly string[];\n format: (value: number) => string;\n}): PieLayout {\n const palette = input.palette ?? DEFAULT_PALETTE;\n const slicesIn = input.data.map((datum) => ({ ...datum, value: Math.max(0, num(datum.value)) })).filter((datum) => datum.value > 0);\n const width = Math.max(input.width, 80);\n const height = Math.max(input.height, 80);\n const total = slicesIn.reduce((sum, datum) => sum + datum.value, 0);\n if (total <= 0) {\n return { empty: true, width, height, slices: [], total: 0, legend: [] };\n }\n const size = Math.min(width, height);\n const cx = width / 2;\n const cy = height / 2;\n const outer = size / 2 - 8;\n const inner = input.donut ? outer * clamp(input.innerRatio ?? 0.62, 0.2, 0.85) : 0;\n let angle = -Math.PI / 2;\n const slices: PieSlice[] = slicesIn.map((datum, index) => {\n const sweep = (datum.value / total) * Math.PI * 2;\n const start = angle;\n const end = angle + sweep;\n angle = end;\n const color = datum.color || seriesColor(undefined, index, palette);\n return {\n key: `${datum.label}-${index}`,\n label: datum.label,\n value: datum.value,\n formatted: input.format(datum.value),\n percent: percentLabel(datum.value, total),\n color,\n path: donutSlicePath(cx, cy, outer, inner, start, end - 0.00001),\n };\n });\n return {\n empty: false,\n width,\n height,\n slices,\n total,\n legend: slices.map((slice) => ({ name: slice.label, color: slice.color })),\n };\n}\n\nexport function layoutRadar(input: {\n categories: string[];\n series: ChartSeries[];\n width: number;\n height: number;\n palette?: readonly string[];\n format: (value: number) => string;\n}): RadarLayout {\n const palette = input.palette ?? DEFAULT_PALETTE;\n const categories = input.categories;\n const series = input.series;\n const width = Math.max(input.width, 160);\n const height = Math.max(input.height, 160);\n const empty = categories.length < 3 || series.length === 0;\n if (empty) {\n return { empty: true, width, height, rings: [], spokes: [], axes: [], series: [], legend: [] };\n }\n const maxValue = Math.max(\n 1,\n ...series.reduce<number[]>((all, item) => all.concat(item.data.map((value) => Math.max(0, num(value)))), []),\n );\n const cx = width / 2;\n const cy = height / 2 + 4;\n const radius = Math.min(width, height) / 2 - 36;\n const levels = 4;\n const rings = Array.from({ length: levels }, (_, level) => {\n const ringRadius = radius * ((level + 1) / levels);\n return categories\n .map((_, index) => {\n const angle = -Math.PI / 2 + (index / categories.length) * Math.PI * 2;\n const [x, y] = pointOnCircle(cx, cy, ringRadius, angle);\n return `${index === 0 ? 'M' : 'L'} ${round(x)} ${round(y)}`;\n })\n .join(' ') + ' Z';\n });\n const spokes: ZeroLine[] = categories.map((_, index) => {\n const angle = -Math.PI / 2 + (index / categories.length) * Math.PI * 2;\n const [x, y] = pointOnCircle(cx, cy, radius, angle);\n return { x1: round(cx), y1: round(cy), x2: round(x), y2: round(y) };\n });\n const axes: CategoryLabel[] = categories.map((label, index) => {\n const angle = -Math.PI / 2 + (index / categories.length) * Math.PI * 2;\n const [x, y] = pointOnCircle(cx, cy, radius + 16, angle);\n const anchor = x < cx - 8 ? 'end' : x > cx + 8 ? 'start' : 'middle';\n return { label: ellipsize(label, 14), x: round(x), y: round(y), anchor };\n });\n const layouts = series.map((item, seriesIndex) => {\n const color = seriesColor(item.color, seriesIndex, palette);\n const points: RadarPoint[] = categories.map((axis, index) => {\n const value = Math.max(0, num(item.data[index] ?? 0));\n const angle = -Math.PI / 2 + (index / categories.length) * Math.PI * 2;\n const [x, y] = pointOnCircle(cx, cy, radius * (value / maxValue), angle);\n return {\n key: `${seriesIndex}-${index}`,\n x: round(x),\n y: round(y),\n value,\n formatted: input.format(value),\n axis,\n series: item.name,\n color,\n };\n });\n const polygon = `${points.map((point, index) => `${index === 0 ? 'M' : 'L'} ${point.x} ${point.y}`).join(' ')} Z`;\n return { name: item.name, color, polygon, points };\n });\n return { empty: false, width, height, rings, spokes, axes, series: layouts, legend: legendOf(series, palette) };\n}\n\nexport function layoutScatter(input: {\n series: ScatterSeries[];\n width: number;\n height: number;\n palette?: readonly string[];\n format: (value: number) => string;\n}): ScatterLayout {\n const palette = input.palette ?? DEFAULT_PALETTE;\n const series = input.series.filter((item) => item.data.length > 0);\n const width = Math.max(input.width, 160);\n const height = Math.max(input.height, 160);\n const pointsIn = series.reduce<ScatterSeries['data']>((all, item) => all.concat(item.data), []);\n if (series.length === 0 || pointsIn.length === 0) {\n return { empty: true, width, height, ticksX: [], ticksY: [], points: [], legend: [] };\n }\n const xDomain = domainOf(pointsIn.map((point) => num(point.x)), false);\n const yDomain = domainOf(pointsIn.map((point) => num(point.y)), false);\n const longest = yDomain.ticks.reduce((max, tick) => Math.max(max, input.format(tick).length), 2);\n const pad = { top: 16, right: 16, bottom: 32, left: Math.min(96, Math.max(40, longest * 7 + 14)) };\n const plot = box(width, height, pad);\n const x = scale(xDomain.min, xDomain.max, plot.left, plot.right);\n const y = scale(yDomain.min, yDomain.max, plot.bottom, plot.top);\n const points: ScatterMark[] = series.reduce<ScatterMark[]>((all, item, seriesIndex) => {\n const color = seriesColor(item.color, seriesIndex, palette);\n return all.concat(\n item.data.map((point, index) => ({\n key: `${seriesIndex}-${index}`,\n cx: round(x(num(point.x))),\n cy: round(y(num(point.y))),\n color,\n series: item.name,\n label: point.label || item.name,\n xValue: num(point.x),\n yValue: num(point.y),\n formattedX: input.format(num(point.x)),\n formattedY: input.format(num(point.y)),\n })),\n );\n }, []);\n return {\n empty: false,\n width,\n height,\n ticksX: xValueTicks(xDomain.ticks, input.format, plot),\n ticksY: yTicks(yDomain.ticks, input.format, plot),\n points,\n legend: legendOf(series, palette),\n };\n}\n\nexport function layoutGauge(input: {\n value: number;\n min?: number;\n max?: number;\n width: number;\n height: number;\n color?: string;\n}): GaugeLayout {\n const width = Math.max(input.width, 160);\n const height = Math.max(input.height, 120);\n const min = input.min ?? 0;\n const max = input.max ?? 100;\n const fraction = clamp((num(input.value) - min) / (max - min || 1), 0, 1);\n const cx = width / 2;\n const cy = height * 0.72;\n const radius = Math.min(width * 0.38, height * 0.48);\n const start = 210;\n const sweep = 240;\n const track = arcPath(cx, cy, radius, start, start - sweep);\n const valuePath = fraction <= 0 ? '' : arcPath(cx, cy, radius, start, start - sweep * fraction);\n return {\n empty: false,\n width,\n height,\n track,\n valuePath,\n fraction,\n labelX: round(cx),\n labelY: round(cy + 4),\n color: input.color || 'var(--ngx-1)',\n };\n}\n\nexport function layoutSparkline(input: {\n data: number[];\n width: number;\n height: number;\n format: (value: number) => string;\n color?: string;\n}): SparkLayout {\n const data = input.data.map(num);\n const width = Math.max(input.width, 40);\n const height = Math.max(input.height, 28);\n const color = input.color || 'var(--ngx-1)';\n if (data.length === 0) return { empty: true, width, height, line: '', area: '', last: null, color };\n const min = Math.min(...data);\n const max = Math.max(...data);\n const span = max - min || 1;\n const pad = 4;\n const xAt = (index: number) => (data.length === 1 ? width / 2 : pad + (index / (data.length - 1)) * (width - pad * 2));\n const yAt = (value: number) => pad + (1 - (value - min) / span) * (height - pad * 2);\n const coords = data.map((value, index) => ({ x: round(xAt(index)), y: round(yAt(value)), value }));\n const line = coords.map((point, index) => `${index === 0 ? 'M' : 'L'} ${point.x} ${point.y}`).join(' ');\n const area = `${line} L ${coords[coords.length - 1]?.x ?? 0} ${round(height - 1)} L ${coords[0]?.x ?? 0} ${round(height - 1)} Z`;\n const last = coords[coords.length - 1];\n return {\n empty: false,\n width,\n height,\n line,\n area,\n last: last ? { x: last.x, y: last.y, value: last.value, formatted: input.format(last.value) } : null,\n color,\n };\n}\n\nexport function layoutHeatmap(input: {\n xLabels: string[];\n yLabels: string[];\n data: number[][];\n width: number;\n height: number;\n format: (value: number) => string;\n}): HeatLayout {\n const xLabels = input.xLabels;\n const yLabels = input.yLabels;\n const width = Math.max(input.width, 160);\n const height = Math.max(input.height, 120);\n const rows = yLabels.map((_, row) => xLabels.map((_, column) => num(input.data[row]?.[column] ?? 0)));\n const flat = rows.reduce((all, row) => all.concat(row), [] as number[]);\n if (xLabels.length === 0 || yLabels.length === 0) {\n return { empty: true, width, height, cells: [], xLabels: [], yLabels: [], min: 0, max: 0 };\n }\n const min = Math.min(...flat);\n const max = Math.max(...flat);\n const span = max - min || 1;\n const yEstimate = yLabels.reduce((longest, label) => Math.max(longest, label.length), 0);\n const pad = { top: 8, right: 8, bottom: 28, left: Math.min(120, Math.max(36, yEstimate * 7 + 12)) };\n const plot = box(width, height, pad);\n const gap = 3;\n const cellW = Math.max(1, (plot.width - gap * (xLabels.length - 1)) / xLabels.length);\n const cellH = Math.max(1, (plot.height - gap * (yLabels.length - 1)) / yLabels.length);\n const cells: HeatCell[] = [];\n yLabels.forEach((ylabel, row) => {\n xLabels.forEach((xlabel, column) => {\n const value = rows[row]?.[column] ?? 0;\n cells.push({\n key: `${row}-${column}`,\n x: round(plot.left + column * (cellW + gap)),\n y: round(plot.top + row * (cellH + gap)),\n width: round(cellW),\n height: round(cellH),\n t: clamp((value - min) / span, 0, 1),\n value,\n formatted: input.format(value),\n xlabel,\n ylabel,\n });\n });\n });\n return {\n empty: false,\n width,\n height,\n cells,\n xLabels: xLabels.map((label, index) => ({\n label: ellipsize(label, 8),\n x: round(plot.left + index * (cellW + gap) + cellW / 2),\n y: plot.bottom + 16,\n anchor: 'middle' as const,\n })),\n yLabels: yLabels.map((label, index) => ({\n label: ellipsize(label, 14),\n x: plot.left - 8,\n y: round(plot.top + index * (cellH + gap) + cellH / 2),\n anchor: 'end' as const,\n })),\n min,\n max,\n };\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\nimport type { ChartTooltip, LegendItem } from './types';\n\n@Component({\n selector: 'ngx-chart-frame',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styles: [':host{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0}'],\n template: `\n <figure class=\"ngx-charts ngx-wind-charts text-sm text-muted\" [attr.aria-label]=\"ariaLabel()\">\n @if (title()) {\n <div class=\"text-sm font-medium text-foreground\">{{ title() }}</div>\n }\n <div class=\"ngx-plot relative w-full\">\n <ng-content />\n @if (tooltip(); as tip) {\n <div class=\"ngx-tip\" [style.left.px]=\"tip.x\" [style.top.px]=\"tip.y\">\n <div class=\"font-medium\">{{ tip.title }}</div>\n @for (row of tip.rows; track row.label) {\n <div class=\"ngx-tip-row\">\n <span class=\"ngx-swatch\" [style.background]=\"row.swatch\"></span>\n <span>{{ row.label }}</span>\n <span class=\"ml-auto pl-3 font-medium text-foreground\">{{ row.value }}</span>\n </div>\n }\n </div>\n }\n </div>\n @if (showLegend() && legend().length > 0) {\n <ul class=\"ngx-legend\">\n @for (item of legend(); track item.name) {\n <li>\n <span class=\"ngx-swatch\" [style.background]=\"item.color\"></span>\n <span>{{ item.name }}</span>\n </li>\n }\n </ul>\n }\n @if (range(); as scale) {\n <div class=\"ngx-key text-xs\">\n <span>{{ scale.min }}</span>\n <span class=\"ngx-heat-scale\"></span>\n <span>{{ scale.max }}</span>\n </div>\n }\n <table class=\"ngx-sr\">\n <caption>{{ ariaLabel() }}</caption>\n <thead>\n <tr>\n @for (header of srHeaders(); track header) {\n <th>{{ header }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (row of srRows(); track $index) {\n <tr>\n @for (cell of row; track $index) {\n <td>{{ cell }}</td>\n }\n </tr>\n }\n </tbody>\n </table>\n </figure>\n `,\n})\nexport class NgxChartFrame {\n readonly title = input<string | undefined>(undefined);\n readonly ariaLabel = input('Chart');\n readonly legend = input<LegendItem[]>([]);\n readonly showLegend = input(false);\n readonly tooltip = input<ChartTooltip | null>(null);\n readonly srHeaders = input<string[]>([]);\n readonly srRows = input<string[][]>([]);\n readonly range = input<{ min: string; max: string } | undefined>(undefined);\n}\n","import { num } from './math';\nimport type { CategoryDatum, ChartSeries, NormalizedSeries } from './types';\n\nexport function normalizeSeries(input: {\n data?: CategoryDatum[] | null;\n series?: ChartSeries[] | null;\n categories?: string[] | null;\n}): NormalizedSeries {\n if (input.series && input.series.length > 0) {\n const longest = input.series.reduce((max, series) => Math.max(max, series.data.length), 0);\n const categories =\n input.categories && input.categories.length > 0\n ? input.categories\n : Array.from({ length: longest }, (_, index) => String(index + 1));\n return {\n categories,\n series: input.series.map((series) => ({\n name: series.name || 'Series',\n color: series.color,\n data: categories.map((_, index) => num(series.data[index] ?? 0)),\n })),\n };\n }\n const data = input.data ?? [];\n return {\n categories: data.map((datum) => datum.label),\n series: [\n {\n name: 'Value',\n data: data.map((datum) => num(datum.value)),\n },\n ],\n pointColors: data.map((datum) => datum.color),\n };\n}\n","import type { ChartTooltip, ChartTooltipRow } from './types';\n\nexport function tooltipAt(event: PointerEvent, title: string, rows: ChartTooltipRow[]): ChartTooltip {\n const plot = (event.currentTarget as Element | null)?.closest('.ngx-plot');\n const box = plot?.getBoundingClientRect();\n return {\n x: box ? event.clientX - box.left : event.offsetX,\n y: box ? event.clientY - box.top : event.offsetY,\n title,\n rows,\n };\n}\n","import { DestroyRef, ElementRef, afterNextRender, effect, inject, signal, type Signal } from '@angular/core';\n\n/** Width follows the parent. Height is the chart's own `height` input, so the drawing still shows when the parent has no size. */\nexport const chartHost = ':host{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0}';\n\nexport function chartBox(preferred: Signal<number>, initialWidth = 640) {\n const host = inject(ElementRef<HTMLElement>);\n const destroyRef = inject(DestroyRef);\n const width = signal(initialWidth);\n const height = signal(Math.max(1, preferred()));\n effect(() => height.set(Math.max(1, preferred())));\n afterNextRender(() => {\n const root = host.nativeElement;\n const measure = () => {\n const nextW = root.clientWidth;\n if (nextW > 0) width.set(Math.round(nextW));\n };\n measure();\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(measure);\n observer.observe(root);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n return { width, height };\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input, signal } from '@angular/core';\nimport { layoutTrend, type TrendPoint } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { normalizeSeries } from './normalize';\nimport { tooltipAt } from './tip';\nimport type { CategoryDatum, ChartFormat, ChartSeries, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\nlet nextFillId = 0;\n\n@Component({\n selector: 'ngx-line-chart, ngx-area-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [legend]=\"layout().legend\"\n [showLegend]=\"legendOn()\"\n [tooltip]=\"tip()\"\n [srHeaders]=\"headers()\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <svg\n class=\"block w-full max-w-full\"\n [style.height.px]=\"height()\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n aria-hidden=\"true\"\n (pointerleave)=\"tip.set(null)\"\n >\n @for (tick of layout().ticks; track tick.label + '-' + tick.labelY) {\n @if (showGrid()) {\n <line class=\"ngx-grid\" [attr.x1]=\"tick.x1\" [attr.y1]=\"tick.y1\" [attr.x2]=\"tick.x2\" [attr.y2]=\"tick.y2\" />\n }\n <text [attr.x]=\"tick.labelX\" [attr.y]=\"tick.labelY\" [attr.text-anchor]=\"tick.anchor\" dominant-baseline=\"middle\">\n {{ tick.label }}\n </text>\n }\n @if (layout().zero; as zero) {\n <line class=\"ngx-zero\" [attr.x1]=\"zero.x1\" [attr.y1]=\"zero.y1\" [attr.x2]=\"zero.x2\" [attr.y2]=\"zero.y2\" />\n }\n <defs>\n @for (item of layout().series; track item.name; let index = $index) {\n @if (item.area) {\n <linearGradient\n [attr.id]=\"fillId + '-' + index\"\n gradientUnits=\"userSpaceOnUse\"\n x1=\"0\"\n [attr.y1]=\"0\"\n x2=\"0\"\n [attr.y2]=\"layout().baseline\"\n >\n <stop offset=\"0%\" [attr.stop-color]=\"item.color\" stop-opacity=\"0.32\" />\n <stop offset=\"100%\" [attr.stop-color]=\"item.color\" stop-opacity=\"0\" />\n </linearGradient>\n }\n }\n </defs>\n <g [class.ngx-rise-on]=\"animate() && layout().fromZero\" [style.--ngx-rise-origin.%]=\"riseOrigin()\">\n @for (item of layout().series; track item.name; let index = $index) {\n @if (item.area) {\n <path\n [attr.d]=\"item.area\"\n [attr.fill]=\"'url(#' + fillId + '-' + index + ')'\"\n [class.ngx-in]=\"animate() && !layout().fromZero\"\n />\n }\n <path\n [attr.d]=\"item.line\"\n fill=\"none\"\n [attr.stroke]=\"item.color\"\n stroke-width=\"2\"\n stroke-linejoin=\"round\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n [class.ngx-draw]=\"animate() && !layout().fromZero\"\n [attr.pathLength]=\"animate() && !layout().fromZero ? 1 : null\"\n [attr.stroke-dasharray]=\"animate() && !layout().fromZero ? 1 : null\"\n />\n @for (point of item.points; track point.key; let pointIndex = $index) {\n <circle\n [attr.cx]=\"point.x\"\n [attr.cy]=\"point.y\"\n r=\"4\"\n [attr.fill]=\"point.color\"\n class=\"cursor-pointer\"\n [class.ngx-pop]=\"animate() && !layout().fromZero\"\n [style.animation-delay.ms]=\"animate() && !layout().fromZero ? drawDelay(pointIndex, item.points.length) : 0\"\n stroke=\"var(--ngx-surface)\"\n stroke-width=\"1.5\"\n (pointerenter)=\"onPoint(point, $event)\"\n />\n }\n }\n </g>\n @for (label of layout().categories; track label.label + '-' + label.x) {\n <text [attr.x]=\"label.x\" [attr.y]=\"label.y\" text-anchor=\"middle\" dominant-baseline=\"middle\">{{ label.label }}</text>\n }\n </svg>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxLineChart {\n private readonly host = inject(ElementRef<HTMLElement>);\n readonly fillId = `ngx-fill-${nextFillId++}`;\n readonly data = input<CategoryDatum[] | undefined>(undefined);\n readonly series = input<ChartSeries[] | undefined>(undefined);\n readonly categories = input<string[] | undefined>(undefined);\n readonly stacked = input(false);\n readonly height = input(320);\n readonly showLegend = input<boolean | undefined>(undefined);\n readonly showGrid = input(true);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly colors = input<readonly string[] | undefined>(undefined);\n readonly ariaLabel = input('Line chart');\n readonly title = input<string | undefined>(undefined);\n readonly min = input<number | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly filled = computed(() => this.host.nativeElement.localName === 'ngx-area-chart');\n readonly normalized = computed(() => normalizeSeries({ data: this.data(), series: this.series(), categories: this.categories() }));\n readonly layout = computed(() =>\n layoutTrend({\n categories: this.normalized().categories,\n series: this.normalized().series,\n width: this.box.width(),\n height: this.height(),\n palette: this.colors(),\n format: resolveFormat(this.format(), this.currency()),\n filled: this.filled(),\n stacked: this.stacked(),\n min: this.min(),\n }),\n );\n readonly legendOn = computed(() => this.showLegend() ?? this.layout().legend.length > 1);\n readonly riseOrigin = computed(() => (this.layout().baseline / Math.max(this.layout().height, 1)) * 100);\n readonly headers = computed(() => ['Category', ...this.normalized().series.map((item) => item.name)]);\n readonly rows = computed(() =>\n this.normalized().categories.map((category, index) => [\n category,\n ...this.normalized().series.map((item) => String(item.data[index] ?? 0)),\n ]),\n );\n\n drawDelay(index: number, count: number): number {\n if (count <= 1) return 0;\n return Math.round((index / (count - 1)) * 700);\n }\n\n onPoint(point: TrendPoint, event: PointerEvent): void {\n const index = Number(point.key.slice(point.key.indexOf('-') + 1));\n const rows = this.layout().series.map((item) => {\n const match = item.points[index] ?? point;\n return { swatch: match.color, label: item.name, value: match.formatted };\n });\n this.tip.set(tooltipAt(event, point.category, rows));\n }\n}\n\nexport { NgxLineChart as NgxAreaChart };\n","import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { layoutBars, type BarMark } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { normalizeSeries } from './normalize';\nimport { tooltipAt } from './tip';\nimport type { BarMode, BarOrientation, CategoryDatum, ChartFormat, ChartSeries, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-bar-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [legend]=\"layout().legend\"\n [showLegend]=\"legendOn()\"\n [tooltip]=\"tip()\"\n [srHeaders]=\"headers()\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <svg\n class=\"block w-full max-w-full\"\n [style.height.px]=\"height()\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n aria-hidden=\"true\"\n (pointerleave)=\"tip.set(null)\"\n >\n @for (tick of layout().ticks; track tick.label + '-' + tick.labelX + '-' + tick.labelY) {\n @if (showGrid()) {\n <line class=\"ngx-grid\" [attr.x1]=\"tick.x1\" [attr.y1]=\"tick.y1\" [attr.x2]=\"tick.x2\" [attr.y2]=\"tick.y2\" />\n }\n <text [attr.x]=\"tick.labelX\" [attr.y]=\"tick.labelY\" [attr.text-anchor]=\"tick.anchor\" dominant-baseline=\"middle\">\n {{ tick.label }}\n </text>\n }\n @if (layout().zero; as zero) {\n <line class=\"ngx-zero\" [attr.x1]=\"zero.x1\" [attr.y1]=\"zero.y1\" [attr.x2]=\"zero.x2\" [attr.y2]=\"zero.y2\" />\n }\n @for (mark of layout().marks; track mark.key) {\n <rect\n [attr.x]=\"mark.x\"\n [attr.y]=\"mark.y\"\n [attr.width]=\"mark.width\"\n [attr.height]=\"mark.height\"\n [attr.fill]=\"mark.color\"\n rx=\"3\"\n class=\"cursor-pointer\"\n [class.ngx-grow-y]=\"animate() && orientation() !== 'horizontal'\"\n [class.ngx-grow-x]=\"animate() && orientation() === 'horizontal'\"\n [class.ngx-grow-bottom]=\"mark.origin === 'bottom'\"\n [class.ngx-grow-top]=\"mark.origin === 'top'\"\n [class.ngx-grow-left]=\"mark.origin === 'left'\"\n [class.ngx-grow-right]=\"mark.origin === 'right'\"\n [style.animation-delay.ms]=\"animate() ? $index * 18 : 0\"\n (pointerenter)=\"onMark(mark, $event)\"\n />\n @if (mark.showLabel) {\n <text\n class=\"ngx-value\"\n [class.ngx-in]=\"animate()\"\n [style.animation-delay.ms]=\"animate() ? $index * 18 + 380 : 0\"\n [attr.x]=\"mark.labelX\"\n [attr.y]=\"mark.labelY\"\n [attr.text-anchor]=\"orientation() === 'horizontal' ? 'start' : 'middle'\"\n dominant-baseline=\"middle\"\n >\n {{ mark.formatted }}\n </text>\n }\n }\n @for (label of layout().categories; track label.label + '-' + label.x + '-' + label.y) {\n <text [attr.x]=\"label.x\" [attr.y]=\"label.y\" [attr.text-anchor]=\"label.anchor\" dominant-baseline=\"middle\">\n {{ label.label }}\n </text>\n }\n </svg>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxBarChart {\n readonly data = input<CategoryDatum[] | undefined>(undefined);\n readonly series = input<ChartSeries[] | undefined>(undefined);\n readonly categories = input<string[] | undefined>(undefined);\n readonly mode = input<BarMode>('grouped');\n readonly orientation = input<BarOrientation>('vertical');\n readonly height = input(320);\n readonly showLegend = input<boolean | undefined>(undefined);\n readonly showGrid = input(true);\n readonly showValues = input(false);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly colors = input<readonly string[] | undefined>(undefined);\n readonly ariaLabel = input('Bar chart');\n readonly title = input<string | undefined>(undefined);\n readonly max = input<number | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly normalized = computed(() => normalizeSeries({ data: this.data(), series: this.series(), categories: this.categories() }));\n readonly layout = computed(() =>\n layoutBars({\n categories: this.normalized().categories,\n series: this.normalized().series,\n pointColors: this.normalized().pointColors,\n mode: this.mode(),\n orientation: this.orientation(),\n width: this.box.width(),\n height: this.height(),\n palette: this.colors(),\n format: resolveFormat(this.format(), this.currency()),\n showValues: this.showValues(),\n max: this.max(),\n }),\n );\n readonly legendOn = computed(() => this.showLegend() ?? this.layout().legend.length > 1);\n readonly headers = computed(() => ['Category', ...this.normalized().series.map((item) => item.name)]);\n readonly rows = computed(() =>\n this.normalized().categories.map((category, index) => [\n category,\n ...this.normalized().series.map((item) => String(item.data[index] ?? 0)),\n ]),\n );\n\n onMark(mark: BarMark, event: PointerEvent): void {\n this.tip.set(tooltipAt(event, mark.category, [{ swatch: mark.color, label: mark.series, value: mark.formatted }]));\n }\n}\n","import { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input, signal } from '@angular/core';\nimport { layoutPie, type PieSlice } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { tooltipAt } from './tip';\nimport type { CategoryDatum, ChartFormat, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-pie-chart, ngx-donut-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [legend]=\"layout().legend\"\n [showLegend]=\"legendOn()\"\n [tooltip]=\"tip()\"\n [srHeaders]=\"['Category', 'Value', 'Share']\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <div class=\"ngx-square\" [style.width.px]=\"side()\" [style.height.px]=\"side()\">\n <svg class=\"h-full w-full\" [attr.viewBox]=\"'0 0 ' + side() + ' ' + side()\" aria-hidden=\"true\" (pointerleave)=\"tip.set(null)\">\n @for (slice of layout().slices; track slice.key) {\n <path\n [attr.d]=\"slice.path\"\n [attr.fill]=\"slice.color\"\n class=\"cursor-pointer\"\n [class.ngx-in]=\"animate()\"\n stroke=\"var(--ngx-surface)\"\n stroke-width=\"1\"\n (pointerenter)=\"onSlice(slice, $event)\"\n />\n }\n </svg>\n @if (isDonut()) {\n <div class=\"pointer-events-none absolute inset-0 flex flex-col items-center justify-center\">\n <span class=\"text-xs\">Total</span>\n <span class=\"font-display text-2xl font-medium text-foreground\">{{ totalLabel() }}</span>\n </div>\n }\n </div>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxPieChart {\n private readonly host = inject(ElementRef<HTMLElement>);\n readonly data = input<CategoryDatum[]>([]);\n readonly donut = input(false);\n readonly innerRatio = input(0.62);\n readonly height = input(280);\n readonly showLegend = input<boolean | undefined>(undefined);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly colors = input<readonly string[] | undefined>(undefined);\n readonly ariaLabel = input('Pie chart');\n readonly title = input<string | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly isDonut = computed(() => this.donut() || this.host.nativeElement.localName === 'ngx-donut-chart');\n readonly side = computed(() => Math.max(1, Math.min(this.box.width(), this.height())));\n readonly formatter = computed(() => resolveFormat(this.format(), this.currency()));\n readonly layout = computed(() =>\n layoutPie({\n data: this.data(),\n width: this.side(),\n height: this.side(),\n donut: this.isDonut(),\n innerRatio: this.innerRatio(),\n palette: this.colors(),\n format: this.formatter(),\n }),\n );\n readonly legendOn = computed(() => this.showLegend() ?? true);\n readonly totalLabel = computed(() => this.formatter()(this.layout().total));\n readonly rows = computed(() => this.layout().slices.map((slice) => [slice.label, slice.formatted, slice.percent]));\n\n onSlice(slice: PieSlice, event: PointerEvent): void {\n this.tip.set(\n tooltipAt(event, slice.label, [{ swatch: slice.color, label: slice.percent, value: slice.formatted }]),\n );\n }\n}\n\nexport { NgxPieChart as NgxDonutChart };\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { layoutGauge } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport type { ChartFormat } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-gauge-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [srHeaders]=\"['Label', 'Value']\"\n [srRows]=\"[[label() || ariaLabel(), formatted()]]\"\n >\n <div class=\"relative w-full\" [style.height.px]=\"height()\">\n <svg class=\"h-full w-full\" [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\" aria-hidden=\"true\">\n <path [attr.d]=\"layout().track\" fill=\"none\" stroke=\"var(--ngx-track)\" stroke-width=\"14\" stroke-linecap=\"round\" />\n @if (layout().valuePath) {\n <path\n [attr.d]=\"layout().valuePath\"\n fill=\"none\"\n [attr.stroke]=\"layout().color\"\n stroke-width=\"14\"\n stroke-linecap=\"round\"\n [class.ngx-in]=\"animate()\"\n />\n }\n </svg>\n <div\n class=\"pointer-events-none absolute flex -translate-x-1/2 -translate-y-1/2 flex-col items-center\"\n [style.left.%]=\"(layout().labelX / layout().width) * 100\"\n [style.top.%]=\"(layout().labelY / layout().height) * 100\"\n >\n <span class=\"font-display text-3xl font-medium text-foreground\">{{ formatted() }}</span>\n @if (label()) {\n <span class=\"text-xs\">{{ label() }}</span>\n }\n </div>\n </div>\n </ngx-chart-frame>\n `,\n})\nexport class NgxGaugeChart {\n readonly value = input(0);\n readonly min = input(0);\n readonly max = input(100);\n readonly label = input<string | undefined>(undefined);\n readonly height = input(220);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly color = input<string | undefined>(undefined);\n readonly ariaLabel = input('Gauge chart');\n readonly title = input<string | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly formatter = computed(() => resolveFormat(this.format(), this.currency()));\n readonly formatted = computed(() => this.formatter()(this.value()));\n readonly layout = computed(() =>\n layoutGauge({\n value: this.value(),\n min: this.min(),\n max: this.max(),\n width: this.box.width(),\n height: this.height(),\n color: this.color(),\n }),\n );\n}\n","import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { layoutHeatmap, type HeatCell } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { tooltipAt } from './tip';\nimport type { ChartFormat, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-heatmap',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [tooltip]=\"tip()\"\n [range]=\"range()\"\n [srHeaders]=\"headers()\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <svg\n class=\"block w-full max-w-full\"\n [style.height.px]=\"height()\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n aria-hidden=\"true\"\n (pointerleave)=\"tip.set(null)\"\n >\n @for (cell of layout().cells; track cell.key) {\n <rect\n [attr.x]=\"cell.x\"\n [attr.y]=\"cell.y\"\n [attr.width]=\"cell.width\"\n [attr.height]=\"cell.height\"\n rx=\"4\"\n [attr.fill]=\"fill(cell.t)\"\n class=\"cursor-pointer\"\n (pointerenter)=\"onCell(cell, $event)\"\n />\n }\n @for (label of layout().xLabels; track label.label + '-' + label.x) {\n <text [attr.x]=\"label.x\" [attr.y]=\"label.y\" text-anchor=\"middle\" dominant-baseline=\"middle\">{{ label.label }}</text>\n }\n @for (label of layout().yLabels; track label.label + '-' + label.y) {\n <text [attr.x]=\"label.x\" [attr.y]=\"label.y\" text-anchor=\"end\" dominant-baseline=\"middle\">{{ label.label }}</text>\n }\n </svg>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxHeatmap {\n readonly xLabels = input<string[]>([]);\n readonly yLabels = input<string[]>([]);\n readonly data = input<number[][]>([]);\n readonly height = input(280);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly ariaLabel = input('Heatmap');\n readonly title = input<string | undefined>(undefined);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly formatter = computed(() => resolveFormat(this.format(), this.currency()));\n readonly layout = computed(() =>\n layoutHeatmap({\n xLabels: this.xLabels(),\n yLabels: this.yLabels(),\n data: this.data(),\n width: this.box.width(),\n height: this.height(),\n format: this.formatter(),\n }),\n );\n readonly range = computed(() =>\n this.layout().empty ? undefined : { min: this.formatter()(this.layout().min), max: this.formatter()(this.layout().max) },\n );\n readonly headers = computed(() => ['', ...this.xLabels()]);\n readonly rows = computed(() => this.yLabels().map((label, row) => [label, ...(this.data()[row] ?? []).map((value) => this.formatter()(value))]));\n\n fill(t: number): string {\n return `color-mix(in oklab, var(--ngx-2) ${Math.round(t * 100)}%, var(--ngx-track))`;\n }\n\n onCell(cell: HeatCell, event: PointerEvent): void {\n this.tip.set(tooltipAt(event, `${cell.ylabel} · ${cell.xlabel}`, [{ swatch: 'var(--ngx-2)', label: 'Value', value: cell.formatted }]));\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { layoutRadar, type RadarPoint } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { normalizeSeries } from './normalize';\nimport { tooltipAt } from './tip';\nimport type { ChartFormat, ChartSeries, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-radar-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [legend]=\"layout().legend\"\n [showLegend]=\"legendOn()\"\n [tooltip]=\"tip()\"\n [srHeaders]=\"headers()\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">Add at least three axes.</p>\n } @else {\n <div class=\"ngx-square\" [style.width.px]=\"side()\" [style.height.px]=\"side()\">\n <svg class=\"h-full w-full\" [attr.viewBox]=\"'0 0 ' + side() + ' ' + side()\" aria-hidden=\"true\" (pointerleave)=\"tip.set(null)\">\n @for (ring of layout().rings; track $index) {\n <path [attr.d]=\"ring\" fill=\"none\" class=\"ngx-grid\" />\n }\n @for (spoke of layout().spokes; track $index) {\n <line class=\"ngx-grid\" [attr.x1]=\"spoke.x1\" [attr.y1]=\"spoke.y1\" [attr.x2]=\"spoke.x2\" [attr.y2]=\"spoke.y2\" />\n }\n @for (item of layout().series; track item.name) {\n <path [attr.d]=\"item.polygon\" [attr.fill]=\"item.color\" fill-opacity=\"0.16\" [attr.stroke]=\"item.color\" stroke-width=\"2\" [class.ngx-in]=\"animate()\" />\n @for (point of item.points; track point.key) {\n <circle\n [attr.cx]=\"point.x\"\n [attr.cy]=\"point.y\"\n r=\"3.5\"\n [attr.fill]=\"point.color\"\n class=\"cursor-pointer\"\n (pointerenter)=\"onPoint(point, $event)\"\n />\n }\n }\n @for (axis of layout().axes; track axis.label + '-' + axis.x) {\n <text [attr.x]=\"axis.x\" [attr.y]=\"axis.y\" [attr.text-anchor]=\"axis.anchor\" dominant-baseline=\"middle\">{{ axis.label }}</text>\n }\n </svg>\n </div>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxRadarChart {\n readonly series = input<ChartSeries[]>([]);\n readonly categories = input<string[]>([]);\n readonly height = input(320);\n readonly showLegend = input<boolean | undefined>(undefined);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly colors = input<readonly string[] | undefined>(undefined);\n readonly ariaLabel = input('Radar chart');\n readonly title = input<string | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly side = computed(() => Math.max(1, Math.min(this.box.width(), this.height())));\n readonly normalized = computed(() => normalizeSeries({ series: this.series(), categories: this.categories() }));\n readonly layout = computed(() =>\n layoutRadar({\n categories: this.normalized().categories,\n series: this.normalized().series,\n width: this.side(),\n height: this.side(),\n palette: this.colors(),\n format: resolveFormat(this.format(), this.currency()),\n }),\n );\n readonly legendOn = computed(() => this.showLegend() ?? this.layout().legend.length > 0);\n readonly headers = computed(() => ['Axis', ...this.normalized().series.map((item) => item.name)]);\n readonly rows = computed(() =>\n this.normalized().categories.map((category, index) => [\n category,\n ...this.normalized().series.map((item) => String(item.data[index] ?? 0)),\n ]),\n );\n\n onPoint(point: RadarPoint, event: PointerEvent): void {\n this.tip.set(tooltipAt(event, point.axis, [{ swatch: point.color, label: point.series, value: point.formatted }]));\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { layoutScatter, type ScatterMark } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { tooltipAt } from './tip';\nimport type { ChartFormat, ChartTooltip, ScatterSeries } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-scatter-chart',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame\n [title]=\"title()\"\n [ariaLabel]=\"ariaLabel()\"\n [legend]=\"layout().legend\"\n [showLegend]=\"legendOn()\"\n [tooltip]=\"tip()\"\n [srHeaders]=\"['Series', 'X', 'Y']\"\n [srRows]=\"rows()\"\n >\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <svg\n class=\"block w-full max-w-full\"\n [style.height.px]=\"height()\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n aria-hidden=\"true\"\n (pointerleave)=\"tip.set(null)\"\n >\n @for (tick of layout().ticksY; track tick.label + '-' + tick.labelY) {\n @if (showGrid()) {\n <line class=\"ngx-grid\" [attr.x1]=\"tick.x1\" [attr.y1]=\"tick.y1\" [attr.x2]=\"tick.x2\" [attr.y2]=\"tick.y2\" />\n }\n <text [attr.x]=\"tick.labelX\" [attr.y]=\"tick.labelY\" text-anchor=\"end\" dominant-baseline=\"middle\">{{ tick.label }}</text>\n }\n @for (tick of layout().ticksX; track tick.label + '-' + tick.labelX) {\n @if (showGrid()) {\n <line class=\"ngx-grid\" [attr.x1]=\"tick.x1\" [attr.y1]=\"tick.y1\" [attr.x2]=\"tick.x2\" [attr.y2]=\"tick.y2\" />\n }\n <text [attr.x]=\"tick.labelX\" [attr.y]=\"tick.labelY\" text-anchor=\"middle\" dominant-baseline=\"middle\">{{ tick.label }}</text>\n }\n @for (point of layout().points; track point.key) {\n <circle\n [attr.cx]=\"point.cx\"\n [attr.cy]=\"point.cy\"\n r=\"5\"\n [attr.fill]=\"point.color\"\n class=\"cursor-pointer\"\n stroke=\"var(--ngx-surface)\"\n stroke-width=\"1.5\"\n [class.ngx-in]=\"animate()\"\n (pointerenter)=\"onPoint(point, $event)\"\n />\n }\n </svg>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxScatterChart {\n readonly series = input<ScatterSeries[]>([]);\n readonly height = input(320);\n readonly showLegend = input<boolean | undefined>(undefined);\n readonly showGrid = input(true);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly colors = input<readonly string[] | undefined>(undefined);\n readonly ariaLabel = input('Scatter chart');\n readonly title = input<string | undefined>(undefined);\n readonly animate = input(true);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly layout = computed(() =>\n layoutScatter({\n series: this.series(),\n width: this.box.width(),\n height: this.height(),\n palette: this.colors(),\n format: resolveFormat(this.format(), this.currency()),\n }),\n );\n readonly legendOn = computed(() => this.showLegend() ?? this.layout().legend.length > 1);\n readonly rows = computed(() => this.layout().points.map((point) => [point.label, point.formattedX, point.formattedY]));\n\n onPoint(point: ScatterMark, event: PointerEvent): void {\n this.tip.set(\n tooltipAt(event, point.label, [\n { swatch: point.color, label: point.series, value: `${point.formattedX}, ${point.formattedY}` },\n ]),\n );\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input, signal } from '@angular/core';\nimport { layoutSparkline } from './geometry';\nimport { NgxChartFrame } from './frame';\nimport { resolveFormat } from './format';\nimport { tooltipAt } from './tip';\nimport type { ChartFormat, ChartTooltip } from './types';\nimport { chartBox, chartHost } from './width';\n\n@Component({\n selector: 'ngx-sparkline',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgxChartFrame],\n host: { '[style.--ngx-chart-height.px]': 'height()' },\n styles: [chartHost],\n template: `\n <ngx-chart-frame [title]=\"title()\" [ariaLabel]=\"ariaLabel()\" [tooltip]=\"tip()\" [srHeaders]=\"['Index', 'Value']\" [srRows]=\"rows()\">\n @if (layout().empty) {\n <p class=\"flex items-center justify-center text-sm\" [style.height.px]=\"height()\">No data yet.</p>\n } @else {\n <svg\n class=\"block w-full max-w-full\"\n [style.height.px]=\"height()\"\n [attr.viewBox]=\"'0 0 ' + layout().width + ' ' + layout().height\"\n aria-hidden=\"true\"\n (pointerleave)=\"tip.set(null)\"\n (pointerenter)=\"onEnter($event)\"\n >\n @if (fill() && layout().area) {\n <path [attr.d]=\"layout().area\" [attr.fill]=\"layout().color\" fill-opacity=\"0.16\" />\n }\n <path [attr.d]=\"layout().line\" fill=\"none\" [attr.stroke]=\"layout().color\" stroke-width=\"2\" stroke-linejoin=\"round\" stroke-linecap=\"round\" />\n @if (layout().last; as last) {\n <circle [attr.cx]=\"last.x\" [attr.cy]=\"last.y\" r=\"3\" [attr.fill]=\"layout().color\" />\n }\n </svg>\n }\n </ngx-chart-frame>\n `,\n})\nexport class NgxSparkline {\n readonly data = input<number[]>([]);\n readonly height = input(56);\n readonly fill = input(true);\n readonly format = input<ChartFormat>('number');\n readonly currency = input('USD');\n readonly color = input<string | undefined>(undefined);\n readonly ariaLabel = input('Sparkline');\n readonly title = input<string | undefined>(undefined);\n\n readonly box = chartBox(this.height);\n readonly tip = signal<ChartTooltip | null>(null);\n readonly formatter = computed(() => resolveFormat(this.format(), this.currency()));\n readonly layout = computed(() =>\n layoutSparkline({\n data: this.data(),\n width: this.box.width(),\n height: this.height(),\n format: this.formatter(),\n color: this.color(),\n }),\n );\n readonly rows = computed(() => this.data().map((value, index) => [String(index + 1), this.formatter()(value)]));\n\n onEnter(event: PointerEvent): void {\n const last = this.layout().last;\n if (!last) return;\n this.tip.set(too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