@acorex/charts 21.0.3-next.8 → 21.1.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/fesm2022/acorex-charts-bar-chart.mjs +52 -77
  2. package/fesm2022/acorex-charts-bar-chart.mjs.map +1 -1
  3. package/fesm2022/acorex-charts-chart-legend.mjs +2 -2
  4. package/fesm2022/acorex-charts-chart-legend.mjs.map +1 -1
  5. package/fesm2022/acorex-charts-chart-tooltip.mjs +2 -2
  6. package/fesm2022/acorex-charts-chart-tooltip.mjs.map +1 -1
  7. package/fesm2022/acorex-charts-donut-chart.mjs +80 -87
  8. package/fesm2022/acorex-charts-donut-chart.mjs.map +1 -1
  9. package/fesm2022/acorex-charts-funnel-chart.mjs +6 -8
  10. package/fesm2022/acorex-charts-funnel-chart.mjs.map +1 -1
  11. package/fesm2022/acorex-charts-gauge-chart.mjs +53 -34
  12. package/fesm2022/acorex-charts-gauge-chart.mjs.map +1 -1
  13. package/fesm2022/acorex-charts-heatmap-chart.mjs +6 -9
  14. package/fesm2022/acorex-charts-heatmap-chart.mjs.map +1 -1
  15. package/fesm2022/acorex-charts-hierarchy-chart.mjs +24 -65
  16. package/fesm2022/acorex-charts-hierarchy-chart.mjs.map +1 -1
  17. package/fesm2022/acorex-charts-line-chart.mjs +31 -98
  18. package/fesm2022/acorex-charts-line-chart.mjs.map +1 -1
  19. package/fesm2022/acorex-charts.mjs +65 -1
  20. package/fesm2022/acorex-charts.mjs.map +1 -1
  21. package/package.json +1 -1
  22. package/types/acorex-charts-bar-chart.d.ts +3 -28
  23. package/types/acorex-charts-donut-chart.d.ts +8 -22
  24. package/types/acorex-charts-funnel-chart.d.ts +3 -25
  25. package/types/acorex-charts-gauge-chart.d.ts +6 -21
  26. package/types/acorex-charts-heatmap-chart.d.ts +2 -28
  27. package/types/acorex-charts-hierarchy-chart.d.ts +2 -27
  28. package/types/acorex-charts-line-chart.d.ts +2 -38
  29. package/types/acorex-charts.d.ts +52 -2
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-charts-line-chart.mjs","sources":["../../../../packages/charts/line-chart/src/lib/line-chart.config.ts","../../../../packages/charts/line-chart/src/lib/line-chart.component.ts","../../../../packages/charts/line-chart/src/lib/line-chart.component.html","../../../../packages/charts/line-chart/src/acorex-charts-line-chart.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { AXLineChartOption } from './line-chart.type';\n\nexport const AXLineChartDefaultConfig: AXLineChartOption = {\n margins: {\n top: 12,\n right: 12,\n bottom: 8,\n left: 8,\n },\n showXAxis: true,\n showYAxis: true,\n showGrid: true,\n showVerticalGrid: false,\n yAxisStartsAtZero: true,\n axisPadding: 5,\n showTooltip: true,\n lineWidth: 2,\n showPoints: true,\n pointRadius: 4,\n smoothLine: false,\n fillArea: false,\n fillOpacity: 20,\n showCrosshair: false,\n animationDuration: 1000,\n animationEasing: 'cubic-out',\n messages: {\n noData: 'No data available',\n noDataHelp: 'Please provide data to display the chart',\n allHidden: 'All series are hidden',\n allHiddenHelp: 'Click legend items to show series in the chart',\n noDataIcon: 'fa-light fa-chart-line',\n allHiddenIcon: 'fa-light fa-eye-slash',\n },\n};\n\nexport const AX_LINE_CHART_CONFIG = new InjectionToken<AXLineChartOption>('AX_LINE_CHART_CONFIG', {\n providedIn: 'root',\n factory: () => AXLineChartDefaultConfig,\n});\n\nexport type PartialLineChartConfig = Partial<AXLineChartOption>;\n\nexport function lineChartConfig(config: PartialLineChartConfig = {}): AXLineChartOption {\n const result = {\n ...AXLineChartDefaultConfig,\n ...config,\n };\n return result;\n}\n","import {\n AX_CHART_COLOR_PALETTE,\n AXChartComponent,\n AXChartComponentBase,\n computeTooltipPosition,\n formatLargeNumber,\n getChartColor,\n getEasingFunction,\n} from '@acorex/charts';\nimport { AXChartLegendCompatible, AXChartLegendItem } from '@acorex/charts/chart-legend';\nimport { AXChartTooltipComponent, AXChartTooltipData } from '@acorex/charts/chart-tooltip';\n\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n OnDestroy,\n OnInit,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport type * as d3 from 'd3';\nimport { AX_LINE_CHART_CONFIG } from './line-chart.config';\nimport { AXLineChartData, AXLineChartOption, AXLineChartPointClickEvent, AXLineChartValue } from './line-chart.type';\n\n/**\n * Line Chart Component for rendering data as lines with interactive hover effects and animations\n */\n@Component({\n selector: 'ax-line-chart',\n templateUrl: './line-chart.component.html',\n styleUrls: ['./line-chart.component.css'],\n encapsulation: ViewEncapsulation.None,\n imports: [AXChartTooltipComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXLineChartComponent\n extends AXChartComponent\n implements OnInit, AfterViewInit, OnDestroy, AXChartLegendCompatible, AXChartComponentBase\n{\n data = input<AXLineChartValue>([]);\n options = input<AXLineChartOption>({});\n pointClick = output<AXLineChartPointClickEvent>();\n\n private readonly chartContainerEl = viewChild.required<ElementRef<HTMLDivElement>>('chartContainer');\n protected d3!: typeof import('d3');\n\n private svg!: d3.Selection<SVGSVGElement, unknown, null, undefined>;\n private chart!: d3.Selection<SVGGElement, unknown, null, undefined>;\n private xScale!: d3.ScaleLinear<number, number> | d3.ScalePoint<string>;\n private xScaleKind: 'linear' | 'point' = 'linear';\n private yScale!: d3.ScaleLinear<number, number>;\n private xAxis!: d3.Selection<SVGGElement, unknown, null, undefined>;\n private yAxis!: d3.Selection<SVGGElement, unknown, null, undefined>;\n\n private width!: number;\n private height!: number;\n private margin = { top: 20, right: 25, bottom: 40, left: 50 };\n\n private _tooltipVisible = signal(false);\n private _tooltipPosition = signal({ x: 0, y: 0 });\n private _tooltipData = signal<AXChartTooltipData>({\n title: '',\n value: '0',\n percentage: '0%',\n color: '',\n });\n private _tooltipRafId: number | null = null;\n private _pendingTooltipCoords: { x: number; y: number } | null = null;\n\n private _initialized = signal(false);\n private _rendered = signal(false);\n private hiddenSeries = new Set<string>();\n private _fullNormalizedData: (AXLineChartData & { originalIndex: number })[] = [];\n\n protected tooltipVisible = this._tooltipVisible.asReadonly();\n protected tooltipPosition = this._tooltipPosition.asReadonly();\n protected tooltipData = this._tooltipData.asReadonly();\n\n // Inject configuration\n private configToken = inject(AX_LINE_CHART_CONFIG);\n\n // Inject the chart colors\n private chartColors = inject(AX_CHART_COLOR_PALETTE);\n\n protected effectiveOptions = computed(() => {\n return {\n ...this.configToken,\n ...this.options(),\n };\n });\n\n // Messages with defaults\n protected effectiveMessages = computed(() => {\n const defaultMessages = {\n noData: 'No data available',\n noDataHelp: 'Please provide data to display the chart',\n allHidden: 'All series are hidden',\n allHiddenHelp: 'Click legend items to show series in the chart',\n noDataIcon: 'fa-light fa-chart-line',\n allHiddenIcon: 'fa-light fa-eye-slash',\n };\n return {\n ...defaultMessages,\n ...this.effectiveOptions().messages,\n };\n });\n\n // Layout & Dimensions\n private readonly MIN_DIMENSION = 100;\n private readonly DEFAULT_MARGIN_TOP = 12;\n private readonly DEFAULT_MARGIN_RIGHT = 12;\n private readonly DEFAULT_MARGIN_BOTTOM = 8;\n private readonly DEFAULT_MARGIN_LEFT = 8;\n private readonly MIN_MARGIN_BOTTOM = 28;\n private readonly MIN_MARGIN_LEFT = 36;\n private readonly X_AXIS_TITLE_GAP = 10;\n private readonly TICK_AREA_PADDING = 4;\n private readonly AXIS_TICK_PADDING = 6;\n private readonly ROTATION_TOLERANCE = 0.92;\n private readonly FORCE_ROTATE_LABEL_LENGTH = 14;\n private readonly Y_AXIS_TITLE_PADDING = 10;\n\n // Styling & Visual\n private readonly DEFAULT_LINE_WIDTH = 2;\n private readonly DEFAULT_POINT_RADIUS = 4;\n private readonly DEFAULT_FILL_OPACITY = 20;\n private readonly LINE_HIGHLIGHT_MULTIPLIER = 1.5;\n private readonly POINT_HIGHLIGHT_MULTIPLIER = 1.5;\n private readonly POINT_STROKE_WIDTH = 1;\n private readonly POINT_HOVER_STROKE_WIDTH = 2;\n private readonly GRID_DASH_ARRAY = '2,2';\n private readonly CROSSHAIR_DASH_ARRAY = '3,3';\n private readonly CROSSHAIR_OPACITY = 0.7;\n\n // Animation\n private readonly HOVER_TRANSITION_DURATION = 150;\n private readonly ANIMATION_END_BUFFER = 100;\n private readonly POINT_ANIMATION_DELAY_MS = 50;\n private readonly POINT_ANIMATION_DELAY_RATIO = 0.5;\n private readonly POINT_ANIMATION_DURATION_RATIO = 0.3;\n\n // Text & Labels\n private readonly CHAR_WIDTH_RATIO = 0.6;\n private readonly FONT_WIDTH_MULTIPLIER = 0.6;\n private readonly MAX_LABEL_LENGTH = 20;\n private readonly MIN_FONT_SIZE_X = 10;\n private readonly MAX_FONT_SIZE_X = 16;\n private readonly MIN_FONT_SIZE_Y = 11;\n private readonly MAX_FONT_SIZE_Y = 16;\n private readonly FONT_PADDING = 6;\n\n private readonly xAxisLabelLayout = {\n fontSize: 12,\n willRotate: false,\n tickAreaHeight: 24,\n displayedTickCount: 1,\n };\n\n /**\n * Resolves X-axis tick font size, rotation, and reserved tick area height.\n */\n private resolveXAxisLabelLayout(\n chartWidth: number,\n categoricalLabels: string[] | null,\n ): { fontSize: number; willRotate: boolean; tickAreaHeight: number; displayedTickCount: number } {\n if (!categoricalLabels || categoricalLabels.length === 0) {\n const displayedTickCount = Math.min(12, Math.max(5, Math.floor(chartWidth / 80)));\n const fontSize = this.getXAxisTickFontSize(chartWidth, displayedTickCount);\n const tickAreaHeight = fontSize + this.TICK_AREA_PADDING + this.AXIS_TICK_PADDING;\n\n return { fontSize, willRotate: false, tickAreaHeight, displayedTickCount };\n }\n\n const itemCount = categoricalLabels.length;\n const longestLabel = categoricalLabels.reduce((a, b) => (a.length > b.length ? a : b), '');\n const effectiveLength = this.getEffectiveXLabelLength(longestLabel, itemCount);\n const step = itemCount > 1 ? chartWidth / (itemCount - 1) : chartWidth;\n\n let fontSize = this.getXAxisTickFontSize(chartWidth, itemCount);\n let effectiveWidth = effectiveLength * fontSize * this.CHAR_WIDTH_RATIO;\n\n while (effectiveWidth > step * this.ROTATION_TOLERANCE && fontSize > this.MIN_FONT_SIZE_X) {\n fontSize--;\n effectiveWidth = effectiveLength * fontSize * this.CHAR_WIDTH_RATIO;\n }\n\n const willRotate =\n longestLabel.length >= this.FORCE_ROTATE_LABEL_LENGTH ||\n effectiveWidth > step * this.ROTATION_TOLERANCE;\n\n if (willRotate && effectiveWidth > step) {\n while (effectiveWidth > step * 1.35 && fontSize > this.MIN_FONT_SIZE_X) {\n fontSize--;\n effectiveWidth = effectiveLength * fontSize * this.CHAR_WIDTH_RATIO;\n }\n }\n\n const tickAreaHeight = this.estimateXAxisTickAreaHeight(fontSize, effectiveWidth, willRotate);\n let displayedTickCount = itemCount;\n if (itemCount > this.VERY_MANY_ITEMS_THRESHOLD) {\n displayedTickCount = Math.ceil(itemCount / 5);\n } else if (itemCount > this.MANY_ITEMS_THRESHOLD) {\n displayedTickCount = Math.ceil(itemCount / 2);\n }\n\n return { fontSize, willRotate, tickAreaHeight, displayedTickCount };\n }\n\n /**\n * Returns truncated label length used for layout calculations.\n */\n private getEffectiveXLabelLength(label: string, itemCount: number): number {\n const maxLength = itemCount > this.MANY_ITEMS_THRESHOLD ? 10 : this.MAX_LABEL_LENGTH;\n return Math.min(label.length, maxLength);\n }\n\n /**\n * Estimates vertical space required below the X-axis for tick labels.\n */\n private estimateXAxisTickAreaHeight(\n fontSize: number,\n effectiveLabelWidth: number,\n willRotate: boolean,\n ): number {\n if (willRotate) {\n return effectiveLabelWidth * Math.SQRT1_2 + fontSize * Math.SQRT1_2 + this.TICK_AREA_PADDING + this.AXIS_TICK_PADDING;\n }\n\n return fontSize + this.TICK_AREA_PADDING + this.AXIS_TICK_PADDING;\n }\n\n /**\n * Measures rendered X-axis tick label area using the axis group bounding box.\n */\n private measureXAxisTickAreaHeight(\n axisGroup: SVGGElement | null | undefined,\n fontSize: number,\n fallbackHeight: number,\n ): number {\n if (!axisGroup) {\n return fallbackHeight;\n }\n\n try {\n const bbox = axisGroup.getBBox();\n const measured = Math.max(0, bbox.y + bbox.height) + this.TICK_AREA_PADDING;\n return Math.max(measured, fallbackHeight);\n } catch {\n return fallbackHeight;\n }\n }\n\n /**\n * Measures rendered Y-axis tick label width using SVG bounding boxes.\n */\n private measureMaxYAxisTickLabelWidth(tickNodes: SVGTextElement[], fontSize: number): number {\n try {\n if (tickNodes.length > 0) {\n return Math.max(...tickNodes.map((node) => node.getBBox().width)) + this.FONT_PADDING;\n }\n } catch {\n // Fall through to estimation\n }\n\n return this.calculateMaxYAxisTickLabelWidth(fontSize);\n }\n\n /**\n * Calculates required bottom margin for X-axis ticks, optional rotation, and title.\n */\n private calculateRequiredBottomMargin(\n options: AXLineChartOption,\n chartWidth: number,\n categoricalLabels: string[] | null,\n ): number {\n const baseBottom = options.margins?.bottom ?? this.DEFAULT_MARGIN_BOTTOM;\n\n if (options.showXAxis === false) {\n return Math.max(baseBottom, 8);\n }\n\n const layout = this.resolveXAxisLabelLayout(chartWidth, categoricalLabels);\n this.xAxisLabelLayout.fontSize = layout.fontSize;\n this.xAxisLabelLayout.willRotate = layout.willRotate;\n this.xAxisLabelLayout.tickAreaHeight = layout.tickAreaHeight;\n this.xAxisLabelLayout.displayedTickCount = layout.displayedTickCount;\n\n const titleBlock = options.xAxisLabel\n ? this.X_AXIS_TITLE_GAP + this.getAxisTitleFontSize(layout.fontSize) + 2\n : 0;\n const rotatedBuffer = layout.willRotate ? 12 : 4;\n\n return Math.max(baseBottom, this.MIN_MARGIN_BOTTOM, layout.tickAreaHeight + titleBlock + rotatedBuffer);\n }\n\n /**\n * Calculates required left margin for Y-axis ticks and title.\n */\n private calculateRequiredLeftMargin(options: AXLineChartOption, chartHeight: number): number {\n const baseLeft = options.margins?.left ?? this.DEFAULT_MARGIN_LEFT;\n\n if (options.showYAxis === false) {\n return baseLeft;\n }\n\n const fontSize = this.getYAxisTickFontSize(chartHeight);\n const tickLabelWidth = this.calculateMaxYAxisTickLabelWidth(fontSize);\n const titleBlock = options.yAxisLabel\n ? this.Y_AXIS_TITLE_PADDING + this.getAxisTitleFontSize(fontSize) + 4\n : 0;\n\n return Math.max(baseLeft, this.MIN_MARGIN_LEFT, tickLabelWidth + this.AXIS_TICK_PADDING + titleBlock + 4);\n }\n\n private createXAxisTitle(\n axesGroup: d3.Selection<SVGGElement, unknown, null, undefined>,\n title: string,\n tickAreaHeight: number,\n tickFontSize: number,\n ): void {\n const titleFontSize = this.getAxisTitleFontSize(tickFontSize);\n const titleY = Math.min(\n this.height + tickAreaHeight + this.X_AXIS_TITLE_GAP,\n this.height + this.margin.bottom - titleFontSize - 2,\n );\n\n axesGroup\n .append('text')\n .attr('class', 'ax-line-chart-axis-label ax-x-axis-label')\n .attr('text-anchor', 'middle')\n .attr('dominant-baseline', 'hanging')\n .attr('x', this.width / 2)\n .attr('y', titleY)\n .attr('direction', 'ltr')\n .attr(\n 'style',\n `\n font-size: ${titleFontSize}px;\n font-weight: 500;\n fill: rgb(var(--ax-comp-line-chart-text-color));\n pointer-events: none;\n `,\n )\n .text(title);\n }\n\n private createYAxisTitle(\n axesGroup: d3.Selection<SVGGElement, unknown, null, undefined>,\n title: string,\n tickFontSize: number,\n maxTickLabelWidth: number,\n ): void {\n const titleFontSize = this.getAxisTitleFontSize(tickFontSize);\n const labelY = -maxTickLabelWidth - this.Y_AXIS_TITLE_PADDING;\n const labelX = -this.height / 2;\n\n axesGroup\n .append('text')\n .attr('class', 'ax-line-chart-axis-label ax-y-axis-label')\n .attr('text-anchor', 'middle')\n .attr('dominant-baseline', 'middle')\n .attr('transform', 'rotate(-90)')\n .attr('x', labelX)\n .attr('y', labelY)\n .attr('direction', 'ltr')\n .attr(\n 'style',\n `\n font-size: ${titleFontSize}px;\n font-weight: 500;\n fill: rgb(var(--ax-comp-line-chart-text-color));\n pointer-events: none;\n `,\n )\n .text(title);\n }\n\n // Data & Performance\n private readonly MAX_POINTS_TO_RENDER = 100;\n private readonly POINT_COORDINATE_PRECISION = 10;\n private readonly MANY_ITEMS_THRESHOLD = 20;\n private readonly VERY_MANY_ITEMS_THRESHOLD = 50;\n\n // Tooltip\n private readonly TOOLTIP_GAP = 10;\n\n /**\n * Normalizes input data to consistent array format with originalIndex\n */\n private normalizeData(rawData: AXLineChartValue): (AXLineChartData & { originalIndex: number })[] {\n if (Array.isArray(rawData)) {\n return rawData.map((s, i) => ({ ...s, originalIndex: i }));\n }\n if (rawData && 'data' in rawData) {\n return [{ ...rawData, originalIndex: 0 }];\n }\n return [];\n }\n\n /**\n * Gets unique identifier for a series\n */\n private getSeriesIdentifier(series: AXLineChartData & { originalIndex: number }): string {\n return series.id || series.label || `series-${series.originalIndex}`;\n }\n\n /**\n * Calculates adaptive X-axis tick font size based on chart width and label count.\n */\n private getXAxisTickFontSize(chartWidth: number, itemCount = 1): number {\n let size = chartWidth / 42;\n\n if (itemCount > this.VERY_MANY_ITEMS_THRESHOLD) {\n size *= 0.65;\n } else if (itemCount > this.MANY_ITEMS_THRESHOLD) {\n size *= 0.8;\n }\n\n return Math.max(this.MIN_FONT_SIZE_X, Math.min(this.MAX_FONT_SIZE_X, Math.round(size)));\n }\n\n /**\n * Calculates adaptive Y-axis tick font size based on chart height.\n */\n private getYAxisTickFontSize(chartHeight: number): number {\n const size = chartHeight / 28;\n return Math.max(this.MIN_FONT_SIZE_Y, Math.min(this.MAX_FONT_SIZE_Y, Math.round(size)));\n }\n\n /**\n * Calculates axis title font size relative to tick labels.\n */\n private getAxisTitleFontSize(tickFontSize: number): number {\n return Math.min(15, Math.max(12, tickFontSize));\n }\n\n /**\n * Estimates inner chart dimensions before margins are finalized.\n */\n private estimateChartDimensions(\n containerWidth: number,\n containerHeight: number,\n options: AXLineChartOption,\n ): { width: number; height: number } {\n const outerWidth = options.width ?? Math.max(containerWidth, 1);\n const outerHeight = options.height ?? Math.max(containerHeight, 1);\n\n return {\n width: Math.max(outerWidth - this.margin.left - this.margin.right, this.MIN_DIMENSION),\n height: Math.max(outerHeight - this.margin.top - this.margin.bottom, this.MIN_DIMENSION),\n };\n }\n\n /**\n * Creates a unique key for point coordinates (for overlap detection)\n */\n private createPointKey(x: number, y: number): string {\n const precision = this.POINT_COORDINATE_PRECISION;\n return `${Math.round(x * precision) / precision},${Math.round(y * precision) / precision}`;\n }\n\n /**\n * Removes series elements from the chart\n */\n private removeSeriesElements(seriesIdentifier: string): void {\n this.chart.selectAll(`.ax-line-chart-series[data-series-identifier=\"${seriesIdentifier}\"]`).remove();\n this.chart.selectAll(`.ax-line-chart-points[data-series-identifier=\"${seriesIdentifier}\"]`).remove();\n }\n\n /**\n * Truncates long labels with ellipsis\n */\n private truncateLabel(label: string, maxLength: number = this.MAX_LABEL_LENGTH): string {\n if (label.length <= maxLength) return label;\n return label.substring(0, maxLength - 1) + '…';\n }\n\n /**\n * Calculates maximum width needed for Y-axis tick labels\n */\n private calculateMaxYAxisTickLabelWidth(fontSize: number): number {\n const allSeriesData = this._fullNormalizedData.filter((s) => !this.hiddenSeries.has(this.getSeriesIdentifier(s)));\n\n let maxValue = 0;\n let minValue = 0;\n\n for (const series of allSeriesData) {\n if (series.data && series.data.length > 0) {\n for (const point of series.data) {\n if (typeof point.y === 'number') {\n maxValue = Math.max(maxValue, point.y);\n minValue = Math.min(minValue, point.y);\n }\n }\n }\n }\n\n // Check both max and min (for negative values)\n const maxAbsValue = Math.max(Math.abs(maxValue), Math.abs(minValue));\n const tickLabelText = Number.isFinite(maxAbsValue) ? formatLargeNumber(maxAbsValue) : '00000';\n\n return tickLabelText.length * fontSize * this.FONT_WIDTH_MULTIPLIER + this.FONT_PADDING;\n }\n\n ngOnInit(): void {\n this.loadD3();\n }\n\n #effect = effect(() => {\n this._fullNormalizedData = this.normalizeData(this.data());\n this.effectiveOptions();\n\n if (this._rendered()) {\n this.updateChart();\n }\n });\n\n ngAfterViewInit(): void {\n this._initialized.set(true);\n if (this.d3 && this.chartContainerEl()) {\n this.createChart();\n this._rendered.set(true);\n }\n }\n\n ngOnDestroy(): void {\n this.cleanupChart();\n }\n\n // AXChartLegendCompatible Implementation\n getLegendItems(): AXChartLegendItem[] {\n const totalSum = this._fullNormalizedData.reduce((sum, series) => {\n return sum + series.data.reduce((sSum, p) => sSum + p.y, 0);\n }, 0);\n\n return this._fullNormalizedData.map((series) => {\n const seriesIdentifier = this.getSeriesIdentifier(series);\n const seriesSum = series.data.reduce((sum, p) => sum + p.y, 0);\n const percentage = totalSum > 0 ? (seriesSum / totalSum) * 100 : 0;\n return {\n id: seriesIdentifier,\n name: series.label || `Series ${series.originalIndex + 1}`,\n value: seriesSum,\n color: series.lineColor || getChartColor(series.originalIndex, this.chartColors),\n hidden: this.hiddenSeries.has(seriesIdentifier),\n percentage: parseFloat(percentage.toFixed(2)),\n };\n });\n }\n\n highlightSegment(id: string | null): void {\n if (!this.svg) return;\n\n const allSeriesGroups = this.svg.selectAll('g.ax-line-chart-series');\n const allPointsGroups = this.svg.selectAll('g.ax-line-chart-points');\n\n if (id === null) {\n allSeriesGroups.classed('ax-chart-dimmed', false).style('opacity', 1);\n allPointsGroups.classed('ax-chart-dimmed', false).style('opacity', 1);\n\n allSeriesGroups\n .selectAll('.ax-line-chart-line')\n .attr('stroke-width', this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH)\n .classed('ax-chart-highlighted-path', false);\n allPointsGroups\n .selectAll('circle.ax-line-chart-point')\n .attr('r', this.effectiveOptions().pointRadius ?? this.DEFAULT_POINT_RADIUS)\n .classed('ax-chart-highlighted-point', false);\n return;\n }\n\n allSeriesGroups.classed('ax-chart-dimmed', true).style('opacity', 0.3);\n allPointsGroups.classed('ax-chart-dimmed', true).style('opacity', 0.3);\n\n const targetSeriesGroup = this.svg.selectAll(`g.ax-line-chart-series[data-series-identifier=\"${id}\"]`);\n const targetPointsGroup = this.svg.selectAll(`g.ax-line-chart-points[data-series-identifier=\"${id}\"]`);\n\n targetSeriesGroup.classed('ax-chart-dimmed', false).style('opacity', 1);\n targetPointsGroup.classed('ax-chart-dimmed', false).style('opacity', 1);\n\n targetSeriesGroup\n .selectAll('.ax-line-chart-line')\n .attr(\n 'stroke-width',\n (this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH) * this.LINE_HIGHLIGHT_MULTIPLIER,\n )\n .classed('ax-chart-highlighted-path', true);\n\n targetPointsGroup\n .selectAll('circle.ax-line-chart-point')\n .attr('r', (this.effectiveOptions().pointRadius ?? this.DEFAULT_POINT_RADIUS) * this.POINT_HIGHLIGHT_MULTIPLIER)\n .classed('ax-chart-highlighted-path', true);\n }\n\n toggleSegment(id: string): boolean {\n if (this.hiddenSeries.has(id)) {\n this.hiddenSeries.delete(id);\n } else {\n this.hiddenSeries.add(id);\n }\n this.updateChart();\n return !this.hiddenSeries.has(id);\n }\n\n protected async loadD3(): Promise<void> {\n try {\n this.d3 = await import('d3');\n if (this._initialized() && this.chartContainerEl()) {\n this.createChart();\n this._rendered.set(true);\n }\n } catch (error) {\n console.error('Failed to load D3.js:', error);\n }\n }\n\n public createChart(): void {\n if (!this.d3 || !this.chartContainerEl()?.nativeElement) return;\n\n const containerElement = this.chartContainerEl().nativeElement;\n const allSeriesData = this._fullNormalizedData;\n\n // Clear previous SVG and any empty-state messages (preserve tooltip component)\n this.d3\n .select(containerElement)\n .selectAll('svg, .ax-line-chart-no-data-message, .ax-line-chart-all-hidden-message')\n .remove();\n\n if (allSeriesData.length === 0 || allSeriesData.every((series) => !series.data || series.data.length === 0)) {\n this.showNoDataMessage(containerElement);\n return;\n }\n\n const visibleDataForRendering = allSeriesData.filter(\n (series) => !this.hiddenSeries.has(this.getSeriesIdentifier(series)),\n );\n\n if (visibleDataForRendering.length === 0) {\n // All data is present, but all series are hidden by the legend\n this.showAllSeriesHiddenMessage(containerElement);\n // Still setup basic SVG and chart group for consistency if needed, or return\n // For now, we will show the message and return, as scales/axes can't be drawn.\n return;\n }\n\n const chartOptions = this.effectiveOptions();\n this.setupDimensions(containerElement, chartOptions);\n\n // Use allSeriesData for domain calculation to keep scales consistent\n const dataForScaleSetup = allSeriesData.filter((s) => s.data && s.data.length > 0);\n if (dataForScaleSetup.length === 0) {\n this.showNoDataMessage(containerElement);\n return;\n }\n this.setupScales(dataForScaleSetup);\n this.createAxes(chartOptions);\n this.renderLines(allSeriesData); // RenderLines will handle hiding based on hiddenSeries\n }\n\n public updateChart(): void {\n this.createChart();\n }\n\n public cleanupChart(): void {\n if (this._tooltipRafId != null) {\n cancelAnimationFrame(this._tooltipRafId);\n this._tooltipRafId = null;\n }\n this._pendingTooltipCoords = null;\n\n if (this.svg) {\n this.d3\n ?.select(this.chartContainerEl()?.nativeElement)\n .selectAll('svg, .ax-line-chart-no-data-message, .ax-line-chart-all-hidden-message')\n .remove();\n this.svg = null;\n this.chart = null;\n }\n this._tooltipVisible.set(false);\n }\n\n private setupDimensions(containerElement: HTMLElement, options: AXLineChartOption): void {\n const containerWidth = Math.max(containerElement.clientWidth, 1);\n const containerHeight = Math.max(containerElement.clientHeight, 1);\n this.calculateMargins(options, containerWidth, containerHeight);\n\n if (options.width && options.height) {\n this.width = options.width - this.margin.left - this.margin.right;\n this.height = options.height - this.margin.top - this.margin.bottom;\n } else {\n this.width = containerWidth - this.margin.left - this.margin.right;\n this.height = containerHeight - this.margin.top - this.margin.bottom;\n }\n\n this.width = Math.max(this.width, this.MIN_DIMENSION);\n this.height = Math.max(this.height, this.MIN_DIMENSION);\n\n const totalWidth = this.width + this.margin.left + this.margin.right;\n const totalHeight = this.height + this.margin.top + this.margin.bottom;\n\n const svg = this.d3\n .select(containerElement)\n .append('svg')\n .attr('width', '100%')\n .attr('height', '100%')\n .attr('viewBox', `0 0 ${totalWidth} ${totalHeight}`)\n .attr('preserveAspectRatio', 'xMidYMid meet');\n\n this.svg = svg;\n this.chart = this.svg\n .append('g')\n .attr('transform', `translate(${this.margin.left},${this.margin.top})`);\n }\n\n private calculateMargins(options: AXLineChartOption, containerWidth: number, containerHeight: number): void {\n this.margin = {\n top: options.margins?.top ?? this.DEFAULT_MARGIN_TOP,\n right: options.margins?.right ?? this.DEFAULT_MARGIN_RIGHT,\n bottom: options.margins?.bottom ?? this.DEFAULT_MARGIN_BOTTOM,\n left: options.margins?.left ?? this.DEFAULT_MARGIN_LEFT,\n };\n\n const estimatedDimensions = this.estimateChartDimensions(containerWidth, containerHeight, options);\n const allDataPoints = this._fullNormalizedData.flatMap((series) => series.data);\n const allNumericX = allDataPoints.length === 0 || allDataPoints.every((d) => typeof d.x === 'number');\n\n let categoricalLabels: string[] | null = null;\n if (!allNumericX) {\n const visibleSeries = this._fullNormalizedData.filter(\n (s) => !this.hiddenSeries.has(this.getSeriesIdentifier(s)),\n );\n categoricalLabels = [...new Set(visibleSeries.flatMap((series) => series.data.map((d) => String(d.x))))];\n }\n\n this.margin.bottom = this.calculateRequiredBottomMargin(options, estimatedDimensions.width, categoricalLabels);\n this.margin.left = this.calculateRequiredLeftMargin(options, estimatedDimensions.height);\n\n // Second pass: margins affect inner chart size, which affects label layout\n const refinedDimensions = this.estimateChartDimensions(containerWidth, containerHeight, options);\n this.margin.bottom = this.calculateRequiredBottomMargin(options, refinedDimensions.width, categoricalLabels);\n this.margin.left = this.calculateRequiredLeftMargin(options, refinedDimensions.height);\n }\n\n private setupScales(data: (AXLineChartData & { originalIndex: number })[]): void {\n // Expects already filtered data for scales\n const chartOptions = this.effectiveOptions();\n const padding = chartOptions.axisPadding ?? 0;\n const paddingMultiplier = padding / 100;\n\n // Ensure data is not empty for scale domain calculation\n const allDataPoints = data.length > 0 ? data.flatMap((series) => series.data) : [{ x: 0, y: 0 }];\n if (allDataPoints.length === 0) {\n // Should ideally not happen if createChart filters correctly\n allDataPoints.push({ x: 0, y: 0 }); // Default fallback to prevent crash with empty domain\n }\n\n const allNumericX = allDataPoints.every((d) => typeof d.x === 'number');\n\n if (allNumericX) {\n this.xScaleKind = 'linear';\n const xMin = this.d3.min(allDataPoints, (d) => d.x as number) ?? 0;\n const xMax = this.d3.max(allDataPoints, (d) => d.x as number) ?? 0;\n\n if (xMin === xMax) {\n this.xScale = this.d3\n .scaleLinear()\n .domain([xMin - 1, xMax + 1])\n .range([0, this.width]);\n } else {\n this.xScale = this.d3.scaleLinear().domain([xMin, xMax]).range([0, this.width]);\n }\n } else {\n this.xScaleKind = 'point';\n const xDomain: string[] = [];\n const seenX = new Set<string>();\n for (const point of allDataPoints) {\n const key = String(point.x);\n if (!seenX.has(key)) {\n seenX.add(key);\n xDomain.push(key);\n }\n }\n\n this.xScale = this.d3\n .scalePoint<string>()\n .domain(xDomain)\n .range([0, this.width])\n .padding(0);\n }\n\n const yAxisStartsAtZero = chartOptions.yAxisStartsAtZero !== false;\n const dataYMin = this.d3.min(allDataPoints, (d) => d.y) ?? 0;\n const dataYMax = this.d3.max(allDataPoints, (d) => d.y) ?? 0;\n\n let yMin: number;\n let yMax: number;\n\n if (yAxisStartsAtZero) {\n yMin = Math.min(0, dataYMin);\n yMax = Math.max(0, dataYMax);\n } else {\n yMin = dataYMin;\n yMax = dataYMax;\n }\n\n const yRange = yMax - yMin || 1;\n\n this.yScale = this.d3\n .scaleLinear()\n .domain([yMin, yMax + yRange * paddingMultiplier])\n .nice()\n .range([this.height, 0]);\n\n if (yAxisStartsAtZero && dataYMin >= 0) {\n this.yScale.domain([0, this.yScale.domain()[1]]);\n }\n }\n\n private createAxes(options: AXLineChartOption): void {\n const showXAxis = options.showXAxis !== false;\n const showYAxis = options.showYAxis !== false;\n const showGrid = options.showGrid !== false;\n const isPointScale = this.xScaleKind === 'point';\n const pointScale = isPointScale ? (this.xScale as d3.ScalePoint<string>) : null;\n const isRtl = document.documentElement.dir === 'rtl' || document.body.dir === 'rtl';\n const axesGroup = this.chart.append('g').attr('class', 'ax-line-chart-axes');\n\n if (showXAxis) {\n let xAxisGenerator;\n let itemCount = 0;\n\n if (isPointScale && pointScale) {\n itemCount = pointScale.domain().length;\n const pointLayout = this.resolveXAxisLabelLayout(this.width, pointScale.domain());\n this.xAxisLabelLayout.fontSize = pointLayout.fontSize;\n this.xAxisLabelLayout.willRotate = pointLayout.willRotate;\n this.xAxisLabelLayout.tickAreaHeight = pointLayout.tickAreaHeight;\n this.xAxisLabelLayout.displayedTickCount = pointLayout.displayedTickCount;\n\n // Smart tick reduction for many items (like bar chart)\n let tickValues: string[] = pointScale.domain();\n if (itemCount > this.VERY_MANY_ITEMS_THRESHOLD) {\n // Show every 5th tick for 50+ items\n tickValues = tickValues.filter((_d, i) => i % 5 === 0);\n } else if (itemCount > this.MANY_ITEMS_THRESHOLD) {\n // Show every 2nd tick for 20-50 items\n tickValues = tickValues.filter((_d, i) => i % 2 === 0);\n }\n\n xAxisGenerator = this.d3\n .axisBottom(pointScale)\n .tickValues(tickValues)\n .tickSize(5)\n .tickPadding(8)\n .tickFormat((d: d3.AxisDomain) => {\n const label = String(d);\n // Truncate long labels intelligently\n const maxLength = itemCount > this.MANY_ITEMS_THRESHOLD ? 10 : this.MAX_LABEL_LENGTH;\n return this.truncateLabel(label, maxLength);\n });\n } else {\n // Linear scale (numeric data)\n // Let D3 determine optimal tick count, but ensure we show reasonable number\n // Calculate optimal tick count based on width\n const optimalTickCount = Math.min(12, Math.max(5, Math.floor(this.width / 80)));\n\n xAxisGenerator = this.d3\n .axisBottom(this.xScale)\n .ticks(optimalTickCount)\n .tickSize(5)\n .tickPadding(8)\n .tickFormat((d: d3.AxisDomain) => {\n // Format numbers nicely\n const num = Number(d);\n if (Number.isInteger(num)) {\n return String(num);\n }\n return num.toFixed(1);\n });\n\n itemCount = optimalTickCount;\n }\n\n this.xAxis = axesGroup\n .append('g')\n .attr('class', 'ax-line-chart-axis-x')\n .attr('transform', `translate(0,${this.height})`)\n .call(xAxisGenerator);\n\n // Style the x-axis path and lines\n this.xAxis.selectAll('path').attr('stroke', 'rgba(var(--ax-comp-line-chart-axis-color), 0.2)');\n\n this.xAxis\n .selectAll('line')\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.2)')\n .attr('stroke-dasharray', '2,2')\n .attr('stroke-opacity', '0.5');\n\n const dynamicXAxisTickFontSize = isPointScale\n ? this.xAxisLabelLayout.fontSize\n : this.getXAxisTickFontSize(this.width, itemCount);\n const xAxisTicks = this.xAxis\n .selectAll('text')\n .style('font-size', `${dynamicXAxisTickFontSize}px`)\n .style('font-weight', '400')\n .style('fill', 'rgba(var(--ax-comp-line-chart-labels-color), 0.7)')\n .attr('direction', 'ltr');\n\n if (isPointScale && pointScale && pointScale.domain().length > 0) {\n if (this.xAxisLabelLayout.willRotate) {\n xAxisTicks\n .attr('transform', 'rotate(-45)')\n .style('text-anchor', 'end')\n .attr('dx', '-0.8em')\n .attr('dy', '0.15em');\n }\n }\n\n const xTickAreaHeight = this.measureXAxisTickAreaHeight(\n this.xAxis.node(),\n dynamicXAxisTickFontSize,\n this.xAxisLabelLayout.tickAreaHeight,\n );\n\n if (options.xAxisLabel) {\n this.createXAxisTitle(axesGroup, options.xAxisLabel, xTickAreaHeight, dynamicXAxisTickFontSize);\n }\n }\n\n if (showYAxis) {\n // Create Y axis with smart number formatting\n const yAxisGenerator = this.d3\n .axisLeft(this.yScale)\n .tickSize(5)\n .tickPadding(8)\n .tickFormat((value: number | { valueOf(): number }) => {\n const numValue = typeof value === 'number' ? value : value.valueOf();\n return formatLargeNumber(numValue);\n });\n\n // Reduce tick count for better readability with large numbers\n const maxValue = this.yScale.domain()[1];\n if (maxValue > 1e6) {\n yAxisGenerator.ticks(6); // Fewer ticks for millions+\n } else if (maxValue > 1e3) {\n yAxisGenerator.ticks(8);\n }\n\n this.yAxis = axesGroup.append('g').attr('class', 'ax-line-chart-axis-y').call(yAxisGenerator);\n\n // Style the y-axis path and lines\n this.yAxis.selectAll('path').attr('stroke', 'rgba(var(--ax-comp-line-chart-axis-color), 0.2)');\n\n this.yAxis\n .selectAll('line')\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.2)')\n .attr('stroke-dasharray', '2,2')\n .attr('stroke-opacity', '0.5');\n\n const dynamicYAxisTickFontSize = this.getYAxisTickFontSize(this.height);\n const yTickTexts = this.yAxis.selectAll('text').attr(\n 'style',\n `\n font-size: ${dynamicYAxisTickFontSize}px;\n font-weight: 400;\n fill: rgba(var(--ax-comp-line-chart-labels-color), 0.7);\n `,\n );\n\n if (isRtl) {\n yTickTexts.attr('text-anchor', 'start');\n } else {\n yTickTexts.attr('text-anchor', 'end').attr('direction', 'ltr');\n }\n\n const yTickNodes = (yTickTexts.nodes() || []) as SVGTextElement[];\n const maxTickLabelWidth = this.measureMaxYAxisTickLabelWidth(yTickNodes, dynamicYAxisTickFontSize);\n\n if (options.yAxisLabel) {\n this.createYAxisTitle(axesGroup, options.yAxisLabel, dynamicYAxisTickFontSize, maxTickLabelWidth);\n }\n }\n\n if (showGrid) {\n const gridGroup = this.chart\n .append('g')\n .attr('class', 'ax-line-chart-grid-container')\n .attr('pointer-events', 'none');\n\n const yGrid = gridGroup\n .append('g')\n .attr('class', 'ax-line-chart-grid')\n .call(\n this.d3\n .axisLeft(this.yScale)\n .tickSize(-this.width)\n .tickFormat(() => '')\n .tickValues(this.yScale.ticks()),\n );\n\n // Style the grid path and lines\n yGrid.selectAll('path').attr('stroke-width', '0');\n\n yGrid\n .selectAll('.tick')\n .selectAll('line')\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.2)')\n .attr('stroke-dasharray', '2,2')\n .attr('stroke-opacity', '0.5');\n\n if (options.showVerticalGrid) {\n const xGrid = gridGroup\n .append('g')\n .attr('class', 'ax-line-chart-grid-vertical')\n .attr('transform', `translate(0,${this.height})`)\n .call(\n this.d3\n .axisBottom(this.xScale)\n .tickSize(-this.height)\n .tickFormat(() => '')\n .tickValues(isPointScale ? undefined : (this.xScale as d3.ScaleLinear<number, number>).ticks()),\n );\n\n // Style the vertical grid path and lines\n xGrid.selectAll('path').attr('stroke-width', '0');\n\n xGrid\n .selectAll('.tick')\n .selectAll('line')\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.15)')\n .attr('stroke-dasharray', '2,2')\n .attr('stroke-opacity', '0.5');\n }\n }\n }\n\n private getXPosition(point: { x: number | string }): number {\n if (this.xScaleKind === 'point') {\n return (this.xScale as d3.ScalePoint<string>)(String(point.x)) ?? 0;\n }\n\n return (this.xScale as d3.ScaleLinear<number, number>)(point.x as number);\n }\n\n private renderLines(allSeriesData: (AXLineChartData & { originalIndex: number })[]): void {\n const getX = (d: { x: number | string; y: number }) => this.getXPosition(d);\n\n const lineGenerator = this.d3\n .line<{ x: number | string; y: number }>()\n .x(getX)\n .y((d) => this.yScale(d.y)) as d3.Line<{ x: number | string; y: number }>;\n\n if (this.effectiveOptions().smoothLine !== false) {\n lineGenerator.curve(this.d3.curveMonotoneX);\n }\n\n const areaGenerator = this.d3\n .area<{ x: number | string; y: number }>()\n .x(getX)\n .y0(this.height)\n .y1((d) => this.yScale(d.y));\n\n if (this.effectiveOptions().smoothLine !== false) {\n areaGenerator.curve(this.d3.curveMonotoneX);\n }\n\n this.svg.attr('class', 'ax-line-chart-animating');\n\n const allSeriesGroup = this.chart\n .append('g')\n .attr('class', 'ax-line-chart-all-series')\n .attr('pointer-events', 'none');\n\n const allPointsGroup = this.chart\n .append('g')\n .attr('class', 'ax-line-chart-all-points')\n .attr('pointer-events', 'none');\n\n if (this.effectiveOptions().showCrosshair === true) {\n this.chart.append('g').attr('class', 'ax-line-chart-crosshair').attr('pointer-events', 'none');\n }\n\n const animationDuration = this.effectiveOptions().animationDuration;\n const animationEasing = getEasingFunction(this.d3, this.effectiveOptions().animationEasing);\n\n allSeriesData.forEach((series) => {\n const seriesIdentifier = this.getSeriesIdentifier(series);\n\n if (this.hiddenSeries.has(seriesIdentifier)) {\n this.removeSeriesElements(seriesIdentifier);\n return;\n }\n if (!series.data || series.data.length === 0) return;\n\n const seriesGroup = allSeriesGroup\n .append('g')\n .attr('class', `ax-line-chart-series ax-line-chart-series-${series.originalIndex}`)\n .attr('data-series-identifier', seriesIdentifier)\n .attr('pointer-events', 'none');\n\n const lineColor = series.lineColor || getChartColor(series.originalIndex, this.chartColors);\n const fillColor = series.fillColor || lineColor;\n\n const line = seriesGroup\n .append('path')\n .datum(series.data)\n .attr('class', 'ax-line-chart-line')\n .attr('stroke', lineColor)\n .attr('stroke-width', this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH)\n .attr('stroke-linejoin', 'round')\n .attr('stroke-linecap', 'round')\n .attr('d', lineGenerator)\n .attr('fill', 'none')\n .attr('style', 'transition: stroke-width 0.3s ease;')\n .attr('pointer-events', 'none');\n\n line\n .on('mouseenter', () => {\n line\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr(\n 'stroke-width',\n (this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH) * this.LINE_HIGHLIGHT_MULTIPLIER,\n );\n })\n .on('mouseleave', () => {\n line\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr('stroke-width', this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH);\n });\n\n const totalLength = line.node().getTotalLength();\n line\n .attr('stroke-dasharray', totalLength + ' ' + totalLength)\n .attr('stroke-dashoffset', totalLength)\n .transition()\n .duration(animationDuration)\n .ease(animationEasing)\n .attr('stroke-dashoffset', 0)\n .on('end', function () {\n line.attr('pointer-events', 'all');\n });\n\n if (this.effectiveOptions().fillArea) {\n const area = seriesGroup\n .append('path')\n .datum(series.data)\n .attr('class', 'ax-line-chart-area')\n .attr('fill', fillColor)\n .attr('opacity', 0)\n .attr('d', areaGenerator)\n .attr('style', 'transition: opacity 0.3s ease;')\n .attr('pointer-events', 'none');\n\n area\n .on('mouseenter', () => {\n area\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr('opacity', ((this.effectiveOptions().fillOpacity ?? 20) / 100) * 1.5);\n })\n .on('mouseleave', () => {\n area\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr('opacity', (this.effectiveOptions().fillOpacity ?? 20) / 100);\n });\n\n area\n .transition()\n .duration(animationDuration)\n .ease(animationEasing)\n .attr('opacity', (this.effectiveOptions().fillOpacity ?? 20) / 100)\n .on('end', function () {\n area.attr('pointer-events', 'all');\n });\n }\n });\n\n if (this.effectiveOptions().showPoints !== false) {\n const pointMap = new Map<\n string,\n Array<{\n point: { x: number | string; y: number };\n series: AXLineChartData & { originalIndex: number };\n originalIndex: number;\n }>\n >();\n\n allSeriesData.forEach((series) => {\n const seriesIdentifier = this.getSeriesIdentifier(series);\n if (this.hiddenSeries.has(seriesIdentifier) || !series.data || series.data.length === 0) {\n return;\n }\n\n const pointData = this.getReducedDataPoints(series.data, this.MAX_POINTS_TO_RENDER);\n\n pointData.forEach((point) => {\n const x = getX(point);\n const y = this.yScale(point.y);\n const key = this.createPointKey(x, y);\n\n if (!pointMap.has(key)) {\n pointMap.set(key, []);\n }\n pointMap.get(key)?.push({ point, series, originalIndex: series.originalIndex });\n });\n });\n\n let animationCounter = 0;\n const totalVisibleSeriesCount = allSeriesData.filter(\n (s) => !this.hiddenSeries.has(this.getSeriesIdentifier(s)) && s.data && s.data.length > 0,\n ).length;\n\n allSeriesData.forEach((series) => {\n const seriesIdentifier = this.getSeriesIdentifier(series);\n if (this.hiddenSeries.has(seriesIdentifier) || !series.data || series.data.length === 0) {\n return;\n }\n\n const lineColor = series.lineColor || getChartColor(series.originalIndex, this.chartColors);\n const pointsGroup = allPointsGroup\n .append('g')\n .attr('class', `ax-line-chart-points ax-line-chart-points-${series.originalIndex}`)\n .attr('data-series-identifier', seriesIdentifier)\n .attr('pointer-events', 'none');\n\n pointsGroup\n .on('mouseenter', () => this.handlePointGroupEnter(series.originalIndex))\n .on('mouseleave', () => this.handlePointGroupLeave());\n\n const pointData = this.getReducedDataPoints(series.data, this.MAX_POINTS_TO_RENDER);\n\n pointsGroup\n .selectAll('circle')\n .data(pointData)\n .enter()\n .append('circle')\n .attr('class', 'ax-line-chart-point')\n .attr('cx', getX)\n .attr('cy', (d) => this.yScale(d.y))\n .attr('r', 0)\n .attr('fill', lineColor)\n .attr('stroke', '#fff')\n .attr('stroke-width', 1)\n .attr('data-x', (d) => d.x)\n .attr('data-y', (d) => d.y)\n .style('cursor', 'pointer')\n .attr('pointer-events', 'none')\n .on('mouseenter', (event: MouseEvent, d: { x: number | string; y: number }) => {\n const x = getX(d);\n const y = this.yScale(d.y);\n const key = this.createPointKey(x, y);\n const overlappingPoints = pointMap.get(key) || [];\n\n if (overlappingPoints.length > 1) {\n this.handleOverlappingPointsHover(event, overlappingPoints);\n } else {\n this.handlePointHover(event, d, series, series.originalIndex);\n }\n\n const pointRadius = this.effectiveOptions().pointRadius ?? this.DEFAULT_POINT_RADIUS;\n this.d3\n .select(event.target as SVGCircleElement)\n .interrupt()\n .attr('r', pointRadius * this.POINT_HIGHLIGHT_MULTIPLIER)\n .attr('stroke-width', this.POINT_HOVER_STROKE_WIDTH)\n .attr('stroke', `rgb(var(--ax-comp-line-chart-bg-color))`);\n })\n .on('mousemove', (event: MouseEvent) => this.updateTooltipPosition(event))\n .on('mouseleave', (event: MouseEvent) => {\n this._tooltipVisible.set(false);\n const pointRadius = this.effectiveOptions().pointRadius ?? this.DEFAULT_POINT_RADIUS;\n this.d3\n .select(event.target as SVGCircleElement)\n .interrupt()\n .attr('r', pointRadius)\n .attr('stroke-width', this.POINT_STROKE_WIDTH)\n .attr('stroke', '#fff');\n })\n .on('click', (event: MouseEvent, d: { x: number | string; y: number }) => {\n const x = getX(d);\n const y = this.yScale(d.y);\n const key = this.createPointKey(x, y);\n const overlappingPoints = pointMap.get(key) || [];\n\n if (overlappingPoints.length > 1) {\n overlappingPoints.forEach(({ point, series }) => {\n this.handlePointClick(event, point, series);\n });\n } else {\n this.handlePointClick(event, d, series);\n }\n })\n .transition()\n .delay(\n (_d: { x: number | string; y: number }, i: number) =>\n i * Math.min(this.POINT_ANIMATION_DELAY_MS, (animationDuration || 0) * 0.05) +\n (animationDuration || 0) * this.POINT_ANIMATION_DELAY_RATIO,\n )\n .duration((animationDuration || 0) * this.POINT_ANIMATION_DURATION_RATIO)\n .ease(animationEasing)\n .attr('r', this.effectiveOptions().pointRadius ?? this.DEFAULT_POINT_RADIUS)\n .on('end', (d, i, nodes) => {\n if (i === nodes.length - 1) {\n animationCounter++;\n if (animationCounter >= totalVisibleSeriesCount) {\n this.enablePointerEventsAfterAnimation();\n }\n }\n });\n });\n } else {\n setTimeout(() => this.enablePointerEventsAfterAnimation(), (animationDuration || 0) + this.ANIMATION_END_BUFFER);\n }\n }\n\n private enablePointerEventsAfterAnimation(): void {\n if (!this.chart || !this.svg) return;\n this.chart.selectAll('.ax-line-chart-all-series').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-series').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-line').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-area').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-all-points').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-points').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-point').attr('pointer-events', 'all');\n this.svg.classed('ax-line-chart-animating', false);\n }\n\n private handlePointGroupEnter(originalIndex: number): void {\n this.chart\n .select(`.ax-line-chart-series-${originalIndex} .ax-line-chart-line`)\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr(\n 'stroke-width',\n (this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH) * this.LINE_HIGHLIGHT_MULTIPLIER,\n );\n }\n\n private handlePointGroupLeave(): void {\n this.chart\n .selectAll('.ax-line-chart-line')\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr('stroke-width', this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH);\n\n if (this.effectiveOptions().showCrosshair === true) {\n this.chart.select('.ax-line-chart-crosshair').selectAll('*').remove();\n }\n }\n\n private getReducedDataPoints(\n data: Array<{ x: number | string; y: number }>,\n maxPoints: number,\n ): Array<{ x: number | string; y: number }> {\n if (data.length <= maxPoints) return data;\n const result: Array<{ x: number | string; y: number }> = [];\n const step = Math.ceil(data.length / maxPoints);\n for (let i = 0; i < data.length; i += step) {\n result.push(data[i]);\n }\n if (result[result.length - 1] !== data[data.length - 1]) {\n result.push(data[data.length - 1]);\n }\n return result;\n }\n\n private handlePointHover(\n event: MouseEvent,\n dataPoint: AXLineChartData['data'][number],\n series: AXLineChartData & { originalIndex: number },\n originalIndex: number,\n ): void {\n if (this.effectiveOptions().showTooltip !== false) {\n const color = series.lineColor || getChartColor(originalIndex, this.chartColors);\n\n this._tooltipData.set({\n title: dataPoint.tooltipLabel || series.tooltipLabel || series.label || `Series ${originalIndex + 1}`,\n value: formatLargeNumber(dataPoint.y),\n color: color,\n });\n\n this._tooltipVisible.set(true);\n this.updateTooltipPosition(event);\n\n if (this.effectiveOptions().showCrosshair === true) {\n this.showCrosshairLines(dataPoint);\n }\n }\n }\n\n private showCrosshairLines(dataPoint: { x: number | string; y: number }): void {\n const x = this.getXPosition(dataPoint);\n const y = this.yScale(dataPoint.y);\n\n let crosshairGroup = this.chart.select('.ax-line-chart-crosshair');\n if (crosshairGroup.empty()) {\n crosshairGroup = this.chart.append('g').attr('class', 'ax-line-chart-crosshair').attr('pointer-events', 'none');\n }\n\n crosshairGroup.selectAll('*').remove();\n\n crosshairGroup\n .append('line')\n .attr('class', 'ax-line-chart-crosshair-vertical')\n .attr('x1', x)\n .attr('y1', 0)\n .attr('x2', x)\n .attr('y2', this.height)\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.5)')\n .attr('stroke-width', 1)\n .attr('stroke-dasharray', '3,3')\n .attr('opacity', 0.7)\n .attr('pointer-events', 'none');\n\n crosshairGroup\n .append('line')\n .attr('class', 'ax-line-chart-crosshair-horizontal')\n .attr('x1', 0)\n .attr('y1', y)\n .attr('x2', this.width)\n .attr('y2', y)\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.5)')\n .attr('stroke-width', 1)\n .attr('stroke-dasharray', '3,3')\n .attr('opacity', 0.7)\n .attr('pointer-events', 'none');\n }\n\n private updateTooltipPosition(event: MouseEvent): void {\n this._pendingTooltipCoords = { x: event.clientX, y: event.clientY };\n if (this._tooltipRafId != null) return;\n this.scheduleTooltipPosition(0);\n }\n\n private scheduleTooltipPosition(attempt: number): void {\n this._tooltipRafId = requestAnimationFrame(() => {\n const coords = this._pendingTooltipCoords;\n if (!coords) {\n this._tooltipRafId = null;\n return;\n }\n\n const containerEl = this.chartContainerEl()?.nativeElement;\n if (!containerEl) {\n this._tooltipRafId = null;\n return;\n }\n\n const tooltipEl = containerEl.querySelector('.chart-tooltip') as HTMLElement | null;\n if (!tooltipEl && this._tooltipVisible() && attempt < 3) {\n this.scheduleTooltipPosition(attempt + 1);\n return;\n }\n\n this._tooltipRafId = null;\n const rect = containerEl.getBoundingClientRect();\n const tooltipRect = tooltipEl ? tooltipEl.getBoundingClientRect() : null;\n const pos = computeTooltipPosition(rect, tooltipRect, coords.x, coords.y, this.TOOLTIP_GAP);\n const prev = this._tooltipPosition();\n if (prev.x !== pos.x || prev.y !== pos.y) {\n this._tooltipPosition.set(pos);\n }\n });\n }\n\n // computeTooltipPosition moved to shared chart utils\n\n private handlePointClick(\n event: MouseEvent,\n dataPoint: AXLineChartData['data'][number],\n series: AXLineChartData & { originalIndex: number },\n ): void {\n this.pointClick.emit({\n series: series, // series still refers to the full series data with originalIndex\n point: dataPoint,\n event: {\n nativeEvent: event,\n sender: this,\n },\n });\n }\n\n private showNoDataMessage(containerElement: HTMLElement): void {\n // Remove only chart SVG and previous empty-state messages to avoid removing tooltip\n this.d3\n .select(containerElement)\n .selectAll('svg, .ax-line-chart-no-data-message, .ax-line-chart-all-hidden-message')\n .remove();\n const messageContainer = this.d3\n .select(containerElement)\n .append('div')\n .attr('class', 'ax-line-chart-no-data-message')\n .style('position', 'absolute')\n .style('left', '50%')\n .style('top', '50%')\n .style('transform', 'translate(-50%, -50%)');\n\n messageContainer\n .append('div')\n .attr('class', 'ax-line-chart-no-data-icon')\n .style('opacity', '0.6')\n .style('margin-bottom', '0.75rem')\n .html(`<i class=\"${this.effectiveMessages().noDataIcon} fa-2x\"></i>`);\n\n messageContainer\n .append('div')\n .attr('class', 'ax-line-chart-no-data-text')\n .style('font-size', '1rem')\n .style('font-weight', '600')\n .style('margin-bottom', '0.5rem')\n .text(this.effectiveMessages().noData);\n\n messageContainer\n .append('div')\n .attr('class', 'ax-line-chart-no-data-help')\n .style('font-size', '0.8rem')\n .style('opacity', '0.6')\n .text(this.effectiveMessages().noDataHelp);\n }\n\n private showAllSeriesHiddenMessage(containerElement: HTMLElement): void {\n // Remove only chart SVG and previous empty-state messages to avoid removing tooltip\n this.d3\n .select(containerElement)\n .selectAll('svg, .ax-line-chart-no-data-message, .ax-line-chart-all-hidden-message')\n .remove();\n const messageContainer = this.d3\n .select(containerElement)\n .append('div')\n .attr('class', 'ax-line-chart-all-hidden-message') // Different class\n .style('position', 'absolute')\n .style('left', '50%')\n .style('top', '50%')\n .style('transform', 'translate(-50%, -50%)');\n\n messageContainer\n .append('div')\n .attr('class', 'ax-line-chart-all-hidden-icon')\n .style('opacity', '0.6')\n .style('margin-bottom', '0.75rem')\n .html(`<i class=\"${this.effectiveMessages().allHiddenIcon} fa-2x\"></i>`); // Different icon\n\n messageContainer\n .append('div')\n .attr('class', 'ax-line-chart-all-hidden-text')\n .style('font-size', '1rem')\n .style('font-weight', '600')\n .style('margin-bottom', '0.5rem')\n .text(this.effectiveMessages().allHidden);\n\n messageContainer\n .append('div')\n .attr('class', 'ax-line-chart-all-hidden-help')\n .style('font-size', '0.8rem')\n .style('opacity', '0.6')\n .text(this.effectiveMessages().allHiddenHelp);\n }\n\n private handleOverlappingPointsHover(\n event: MouseEvent,\n overlappingPoints: Array<{\n point: { x: number | string; y: number };\n series: AXLineChartData & { originalIndex: number };\n originalIndex: number;\n }>,\n ): void {\n if (this.effectiveOptions().showTooltip === false) return;\n\n const tooltipData: AXChartTooltipData = {\n title: overlappingPoints.map(({ series }) => series.label),\n value: formatLargeNumber(overlappingPoints[0].point.y),\n color: overlappingPoints.map(\n ({ series }) => series.lineColor || getChartColor(series.originalIndex, this.chartColors),\n ),\n };\n\n this._tooltipData.set(tooltipData);\n this._tooltipVisible.set(true);\n this.updateTooltipPosition(event);\n\n if (this.effectiveOptions().showCrosshair === true && overlappingPoints.length > 0) {\n this.showCrosshairLines(overlappingPoints[0].point);\n }\n }\n}\n","<div class=\"ax-line-chart\" #chartContainer>\n <!-- Shared tooltip component -->\n <ax-chart-tooltip\n [visible]=\"tooltipVisible()\"\n [position]=\"tooltipPosition()\"\n [data]=\"tooltipData()\"\n [showPercentage]=\"false\"\n ></ax-chart-tooltip>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGO,MAAM,wBAAwB,GAAsB;AACzD,IAAA,OAAO,EAAE;AACP,QAAA,GAAG,EAAE,EAAE;AACP,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,MAAM,EAAE,CAAC;AACT,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;AACD,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,QAAQ,EAAE,IAAI;AACd,IAAA,gBAAgB,EAAE,KAAK;AACvB,IAAA,iBAAiB,EAAE,IAAI;AACvB,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,SAAS,EAAE,CAAC;AACZ,IAAA,UAAU,EAAE,IAAI;AAChB,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,WAAW,EAAE,EAAE;AACf,IAAA,aAAa,EAAE,KAAK;AACpB,IAAA,iBAAiB,EAAE,IAAI;AACvB,IAAA,eAAe,EAAE,WAAW;AAC5B,IAAA,QAAQ,EAAE;AACR,QAAA,MAAM,EAAE,mBAAmB;AAC3B,QAAA,UAAU,EAAE,0CAA0C;AACtD,QA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AI,EAAA,OAAA,EAC5B,CAAC,uBAAuB,CAAC,EAAA,eAAA,EACjB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mRAAA,EAAA,MAAA,EAAA,CAAA,q8CAAA,CAAA,EAAA;6TAUoC,gBAAgB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnDrG;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-charts-line-chart.mjs","sources":["../../../../packages/charts/line-chart/src/lib/line-chart.config.ts","../../../../packages/charts/line-chart/src/lib/line-chart.component.ts","../../../../packages/charts/line-chart/src/lib/line-chart.component.html","../../../../packages/charts/line-chart/src/acorex-charts-line-chart.ts"],"sourcesContent":["import { AX_CHART_DEFAULT_MESSAGES } from '@acorex/charts';\nimport { InjectionToken } from '@angular/core';\nimport { AXLineChartOption } from './line-chart.type';\n\nexport const AXLineChartDefaultConfig: AXLineChartOption = {\n margins: {\n top: 12,\n right: 12,\n bottom: 8,\n left: 8,\n },\n showXAxis: true,\n showYAxis: true,\n showGrid: true,\n showVerticalGrid: false,\n yAxisStartsAtZero: true,\n axisPadding: 5,\n showTooltip: true,\n lineWidth: 2,\n showPoints: true,\n pointRadius: 4,\n smoothLine: false,\n fillArea: false,\n fillOpacity: 20,\n showCrosshair: false,\n animationDuration: 1000,\n animationEasing: 'cubic-out',\n messages: {\n ...AX_CHART_DEFAULT_MESSAGES,\n noDataIcon: 'fa-light fa-chart-line',\n },\n};\n\nexport const AX_LINE_CHART_CONFIG = new InjectionToken<AXLineChartOption>('AX_LINE_CHART_CONFIG', {\n providedIn: 'root',\n factory: () => AXLineChartDefaultConfig,\n});\n\nexport type PartialLineChartConfig = Partial<AXLineChartOption>;\n\nexport function lineChartConfig(config: PartialLineChartConfig = {}): AXLineChartOption {\n return {\n ...AXLineChartDefaultConfig,\n ...config,\n margins: {\n ...AXLineChartDefaultConfig.margins,\n ...config.margins,\n },\n messages: {\n ...AXLineChartDefaultConfig.messages,\n ...config.messages,\n },\n };\n}\n","import {\n AX_CHART_COLOR_PALETTE,\n AXChartComponent,\n AXChartComponentBase,\n computeTooltipPosition,\n formatLargeNumber,\n getChartColor,\n getEasingFunction,\n mergeChartMessages,\n mergeChartOptions,\n renderChartEmptyMessage,\n} from '@acorex/charts';\nimport { AXChartLegendCompatible, AXChartLegendItem } from '@acorex/charts/chart-legend';\nimport { AXChartTooltipComponent, AXChartTooltipData } from '@acorex/charts/chart-tooltip';\n\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n OnDestroy,\n OnInit,\n output,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport type * as d3 from 'd3';\nimport { AX_LINE_CHART_CONFIG } from './line-chart.config';\nimport { AXLineChartData, AXLineChartOption, AXLineChartPointClickEvent, AXLineChartValue } from './line-chart.type';\n\n/**\n * Line Chart Component for rendering data as lines with interactive hover effects and animations\n */\n@Component({\n selector: 'ax-line-chart',\n templateUrl: './line-chart.component.html',\n styleUrls: ['./line-chart.component.css'],\n encapsulation: ViewEncapsulation.None,\n imports: [AXChartTooltipComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class AXLineChartComponent\n extends AXChartComponent\n implements OnInit, AfterViewInit, OnDestroy, AXChartLegendCompatible, AXChartComponentBase\n{\n data = input<AXLineChartValue>([]);\n options = input<AXLineChartOption>({});\n pointClick = output<AXLineChartPointClickEvent>();\n\n private readonly chartContainerEl = viewChild.required<ElementRef<HTMLDivElement>>('chartContainer');\n protected d3!: typeof import('d3');\n\n private svg!: d3.Selection<SVGSVGElement, unknown, null, undefined>;\n private chart!: d3.Selection<SVGGElement, unknown, null, undefined>;\n private xScale!: d3.ScaleLinear<number, number> | d3.ScalePoint<string>;\n private xScaleKind: 'linear' | 'point' = 'linear';\n private yScale!: d3.ScaleLinear<number, number>;\n private xAxis!: d3.Selection<SVGGElement, unknown, null, undefined>;\n private yAxis!: d3.Selection<SVGGElement, unknown, null, undefined>;\n\n private width!: number;\n private height!: number;\n private margin = { top: 20, right: 25, bottom: 40, left: 50 };\n\n private _tooltipVisible = signal(false);\n private _tooltipPosition = signal({ x: 0, y: 0 });\n private _tooltipData = signal<AXChartTooltipData>({\n title: '',\n value: '0',\n percentage: '0%',\n color: '',\n });\n private _tooltipRafId: number | null = null;\n private _pendingTooltipCoords: { x: number; y: number } | null = null;\n\n private _initialized = signal(false);\n private _rendered = signal(false);\n private hiddenSeries = new Set<string>();\n private _fullNormalizedData: (AXLineChartData & { originalIndex: number })[] = [];\n\n protected tooltipVisible = this._tooltipVisible.asReadonly();\n protected tooltipPosition = this._tooltipPosition.asReadonly();\n protected tooltipData = this._tooltipData.asReadonly();\n\n // Inject configuration\n private configToken = inject(AX_LINE_CHART_CONFIG);\n\n // Inject the chart colors\n private chartColors = inject(AX_CHART_COLOR_PALETTE);\n\n protected effectiveOptions = computed(() => mergeChartOptions(this.configToken, this.options()));\n\n // Messages with defaults\n protected effectiveMessages = computed(() =>\n mergeChartMessages(this.configToken.messages, this.options()?.messages),\n );\n\n // Layout & Dimensions\n private readonly MIN_DIMENSION = 1;\n private readonly DEFAULT_MARGIN_TOP = 12;\n private readonly DEFAULT_MARGIN_RIGHT = 12;\n private readonly DEFAULT_MARGIN_BOTTOM = 8;\n private readonly DEFAULT_MARGIN_LEFT = 8;\n private readonly MIN_MARGIN_BOTTOM = 28;\n private readonly MIN_MARGIN_LEFT = 36;\n private readonly X_AXIS_TITLE_GAP = 10;\n private readonly TICK_AREA_PADDING = 4;\n private readonly AXIS_TICK_PADDING = 6;\n private readonly ROTATION_TOLERANCE = 0.92;\n private readonly FORCE_ROTATE_LABEL_LENGTH = 14;\n private readonly Y_AXIS_TITLE_PADDING = 10;\n\n // Styling & Visual\n private readonly DEFAULT_LINE_WIDTH = 2;\n private readonly DEFAULT_POINT_RADIUS = 4;\n private readonly DEFAULT_FILL_OPACITY = 20;\n private readonly LINE_HIGHLIGHT_MULTIPLIER = 1.5;\n private readonly POINT_HIGHLIGHT_MULTIPLIER = 1.5;\n private readonly POINT_STROKE_WIDTH = 1;\n private readonly POINT_HOVER_STROKE_WIDTH = 2;\n private readonly GRID_DASH_ARRAY = '2,2';\n private readonly CROSSHAIR_DASH_ARRAY = '3,3';\n private readonly CROSSHAIR_OPACITY = 0.7;\n\n // Animation\n private readonly HOVER_TRANSITION_DURATION = 150;\n private readonly ANIMATION_END_BUFFER = 100;\n private readonly POINT_ANIMATION_DELAY_MS = 50;\n private readonly POINT_ANIMATION_DELAY_RATIO = 0.5;\n private readonly POINT_ANIMATION_DURATION_RATIO = 0.3;\n\n // Text & Labels\n private readonly CHAR_WIDTH_RATIO = 0.6;\n private readonly FONT_WIDTH_MULTIPLIER = 0.6;\n private readonly MAX_LABEL_LENGTH = 20;\n private readonly MIN_FONT_SIZE_X = 10;\n private readonly MAX_FONT_SIZE_X = 16;\n private readonly MIN_FONT_SIZE_Y = 11;\n private readonly MAX_FONT_SIZE_Y = 16;\n private readonly FONT_PADDING = 6;\n\n private readonly xAxisLabelLayout = {\n fontSize: 12,\n willRotate: false,\n tickAreaHeight: 24,\n displayedTickCount: 1,\n };\n\n /**\n * Resolves X-axis tick font size, rotation, and reserved tick area height.\n */\n private resolveXAxisLabelLayout(\n chartWidth: number,\n categoricalLabels: string[] | null,\n ): { fontSize: number; willRotate: boolean; tickAreaHeight: number; displayedTickCount: number } {\n if (!categoricalLabels || categoricalLabels.length === 0) {\n const displayedTickCount = Math.min(12, Math.max(5, Math.floor(chartWidth / 80)));\n const fontSize = this.getXAxisTickFontSize(chartWidth, displayedTickCount);\n const tickAreaHeight = fontSize + this.TICK_AREA_PADDING + this.AXIS_TICK_PADDING;\n\n return { fontSize, willRotate: false, tickAreaHeight, displayedTickCount };\n }\n\n const itemCount = categoricalLabels.length;\n const longestLabel = categoricalLabels.reduce((a, b) => (a.length > b.length ? a : b), '');\n const effectiveLength = this.getEffectiveXLabelLength(longestLabel, itemCount);\n const step = itemCount > 1 ? chartWidth / (itemCount - 1) : chartWidth;\n\n let fontSize = this.getXAxisTickFontSize(chartWidth, itemCount);\n let effectiveWidth = effectiveLength * fontSize * this.CHAR_WIDTH_RATIO;\n\n while (effectiveWidth > step * this.ROTATION_TOLERANCE && fontSize > this.MIN_FONT_SIZE_X) {\n fontSize--;\n effectiveWidth = effectiveLength * fontSize * this.CHAR_WIDTH_RATIO;\n }\n\n const willRotate =\n longestLabel.length >= this.FORCE_ROTATE_LABEL_LENGTH ||\n effectiveWidth > step * this.ROTATION_TOLERANCE;\n\n if (willRotate && effectiveWidth > step) {\n while (effectiveWidth > step * 1.35 && fontSize > this.MIN_FONT_SIZE_X) {\n fontSize--;\n effectiveWidth = effectiveLength * fontSize * this.CHAR_WIDTH_RATIO;\n }\n }\n\n const tickAreaHeight = this.estimateXAxisTickAreaHeight(fontSize, effectiveWidth, willRotate);\n let displayedTickCount = itemCount;\n if (itemCount > this.VERY_MANY_ITEMS_THRESHOLD) {\n displayedTickCount = Math.ceil(itemCount / 5);\n } else if (itemCount > this.MANY_ITEMS_THRESHOLD) {\n displayedTickCount = Math.ceil(itemCount / 2);\n }\n\n return { fontSize, willRotate, tickAreaHeight, displayedTickCount };\n }\n\n /**\n * Returns truncated label length used for layout calculations.\n */\n private getEffectiveXLabelLength(label: string, itemCount: number): number {\n const maxLength = itemCount > this.MANY_ITEMS_THRESHOLD ? 10 : this.MAX_LABEL_LENGTH;\n return Math.min(label.length, maxLength);\n }\n\n /**\n * Estimates vertical space required below the X-axis for tick labels.\n */\n private estimateXAxisTickAreaHeight(\n fontSize: number,\n effectiveLabelWidth: number,\n willRotate: boolean,\n ): number {\n if (willRotate) {\n return effectiveLabelWidth * Math.SQRT1_2 + fontSize * Math.SQRT1_2 + this.TICK_AREA_PADDING + this.AXIS_TICK_PADDING;\n }\n\n return fontSize + this.TICK_AREA_PADDING + this.AXIS_TICK_PADDING;\n }\n\n /**\n * Measures rendered X-axis tick label area using the axis group bounding box.\n */\n private measureXAxisTickAreaHeight(\n axisGroup: SVGGElement | null | undefined,\n fontSize: number,\n fallbackHeight: number,\n ): number {\n if (!axisGroup) {\n return fallbackHeight;\n }\n\n try {\n const bbox = axisGroup.getBBox();\n const measured = Math.max(0, bbox.y + bbox.height) + this.TICK_AREA_PADDING;\n return Math.max(measured, fallbackHeight);\n } catch {\n return fallbackHeight;\n }\n }\n\n /**\n * Measures rendered Y-axis tick label width using SVG bounding boxes.\n */\n private measureMaxYAxisTickLabelWidth(tickNodes: SVGTextElement[], fontSize: number): number {\n try {\n if (tickNodes.length > 0) {\n return Math.max(...tickNodes.map((node) => node.getBBox().width)) + this.FONT_PADDING;\n }\n } catch {\n // Fall through to estimation\n }\n\n return this.calculateMaxYAxisTickLabelWidth(fontSize);\n }\n\n /**\n * Calculates required bottom margin for X-axis ticks, optional rotation, and title.\n */\n private calculateRequiredBottomMargin(\n options: AXLineChartOption,\n chartWidth: number,\n categoricalLabels: string[] | null,\n ): number {\n const baseBottom = options.margins?.bottom ?? this.DEFAULT_MARGIN_BOTTOM;\n\n if (options.showXAxis === false) {\n return Math.max(baseBottom, 8);\n }\n\n const layout = this.resolveXAxisLabelLayout(chartWidth, categoricalLabels);\n this.xAxisLabelLayout.fontSize = layout.fontSize;\n this.xAxisLabelLayout.willRotate = layout.willRotate;\n this.xAxisLabelLayout.tickAreaHeight = layout.tickAreaHeight;\n this.xAxisLabelLayout.displayedTickCount = layout.displayedTickCount;\n\n const titleBlock = options.xAxisLabel\n ? this.X_AXIS_TITLE_GAP + this.getAxisTitleFontSize(layout.fontSize) + 2\n : 0;\n const rotatedBuffer = layout.willRotate ? 12 : 4;\n\n return Math.max(baseBottom, this.MIN_MARGIN_BOTTOM, layout.tickAreaHeight + titleBlock + rotatedBuffer);\n }\n\n /**\n * Calculates required left margin for Y-axis ticks and title.\n */\n private calculateRequiredLeftMargin(options: AXLineChartOption, chartHeight: number): number {\n const baseLeft = options.margins?.left ?? this.DEFAULT_MARGIN_LEFT;\n\n if (options.showYAxis === false) {\n return baseLeft;\n }\n\n const fontSize = this.getYAxisTickFontSize(chartHeight);\n const tickLabelWidth = this.calculateMaxYAxisTickLabelWidth(fontSize);\n const titleBlock = options.yAxisLabel\n ? this.Y_AXIS_TITLE_PADDING + this.getAxisTitleFontSize(fontSize) + 4\n : 0;\n\n return Math.max(baseLeft, this.MIN_MARGIN_LEFT, tickLabelWidth + this.AXIS_TICK_PADDING + titleBlock + 4);\n }\n\n private createXAxisTitle(\n axesGroup: d3.Selection<SVGGElement, unknown, null, undefined>,\n title: string,\n tickAreaHeight: number,\n tickFontSize: number,\n ): void {\n const titleFontSize = this.getAxisTitleFontSize(tickFontSize);\n const titleY = Math.min(\n this.height + tickAreaHeight + this.X_AXIS_TITLE_GAP,\n this.height + this.margin.bottom - titleFontSize - 2,\n );\n\n axesGroup\n .append('text')\n .attr('class', 'ax-line-chart-axis-label ax-x-axis-label')\n .attr('text-anchor', 'middle')\n .attr('dominant-baseline', 'hanging')\n .attr('x', this.width / 2)\n .attr('y', titleY)\n .attr('direction', 'ltr')\n .attr(\n 'style',\n `\n font-size: ${titleFontSize}px;\n font-weight: 500;\n fill: rgb(var(--ax-comp-line-chart-text-color));\n pointer-events: none;\n `,\n )\n .text(title);\n }\n\n private createYAxisTitle(\n axesGroup: d3.Selection<SVGGElement, unknown, null, undefined>,\n title: string,\n tickFontSize: number,\n maxTickLabelWidth: number,\n ): void {\n const titleFontSize = this.getAxisTitleFontSize(tickFontSize);\n const labelY = -maxTickLabelWidth - this.Y_AXIS_TITLE_PADDING;\n const labelX = -this.height / 2;\n\n axesGroup\n .append('text')\n .attr('class', 'ax-line-chart-axis-label ax-y-axis-label')\n .attr('text-anchor', 'middle')\n .attr('dominant-baseline', 'middle')\n .attr('transform', 'rotate(-90)')\n .attr('x', labelX)\n .attr('y', labelY)\n .attr('direction', 'ltr')\n .attr(\n 'style',\n `\n font-size: ${titleFontSize}px;\n font-weight: 500;\n fill: rgb(var(--ax-comp-line-chart-text-color));\n pointer-events: none;\n `,\n )\n .text(title);\n }\n\n // Data & Performance\n private readonly MAX_POINTS_TO_RENDER = 100;\n private readonly POINT_COORDINATE_PRECISION = 10;\n private readonly MANY_ITEMS_THRESHOLD = 20;\n private readonly VERY_MANY_ITEMS_THRESHOLD = 50;\n\n // Tooltip\n private readonly TOOLTIP_GAP = 10;\n\n /**\n * Normalizes input data to consistent array format with originalIndex\n */\n private normalizeData(rawData: AXLineChartValue): (AXLineChartData & { originalIndex: number })[] {\n if (Array.isArray(rawData)) {\n return rawData.map((s, i) => ({ ...s, originalIndex: i }));\n }\n if (rawData && 'data' in rawData) {\n return [{ ...rawData, originalIndex: 0 }];\n }\n return [];\n }\n\n /**\n * Gets unique identifier for a series\n */\n private getSeriesIdentifier(series: AXLineChartData & { originalIndex: number }): string {\n return series.id || series.label || `series-${series.originalIndex}`;\n }\n\n /**\n * Calculates adaptive X-axis tick font size based on chart width and label count.\n */\n private getXAxisTickFontSize(chartWidth: number, itemCount = 1): number {\n let size = chartWidth / 42;\n\n if (itemCount > this.VERY_MANY_ITEMS_THRESHOLD) {\n size *= 0.65;\n } else if (itemCount > this.MANY_ITEMS_THRESHOLD) {\n size *= 0.8;\n }\n\n return Math.max(this.MIN_FONT_SIZE_X, Math.min(this.MAX_FONT_SIZE_X, Math.round(size)));\n }\n\n /**\n * Calculates adaptive Y-axis tick font size based on chart height.\n */\n private getYAxisTickFontSize(chartHeight: number): number {\n const size = chartHeight / 28;\n return Math.max(this.MIN_FONT_SIZE_Y, Math.min(this.MAX_FONT_SIZE_Y, Math.round(size)));\n }\n\n /**\n * Calculates axis title font size relative to tick labels.\n */\n private getAxisTitleFontSize(tickFontSize: number): number {\n return Math.min(15, Math.max(12, tickFontSize));\n }\n\n /**\n * Estimates inner chart dimensions before margins are finalized.\n */\n private estimateChartDimensions(\n containerWidth: number,\n containerHeight: number,\n options: AXLineChartOption,\n ): { width: number; height: number } {\n const outerWidth = options.width ?? Math.max(containerWidth, 1);\n const outerHeight = options.height ?? Math.max(containerHeight, 1);\n\n return {\n width: Math.max(outerWidth - this.margin.left - this.margin.right, this.MIN_DIMENSION),\n height: Math.max(outerHeight - this.margin.top - this.margin.bottom, this.MIN_DIMENSION),\n };\n }\n\n /**\n * Creates a unique key for point coordinates (for overlap detection)\n */\n private createPointKey(x: number, y: number): string {\n const precision = this.POINT_COORDINATE_PRECISION;\n return `${Math.round(x * precision) / precision},${Math.round(y * precision) / precision}`;\n }\n\n /**\n * Removes series elements from the chart\n */\n private removeSeriesElements(seriesIdentifier: string): void {\n this.chart.selectAll(`.ax-line-chart-series[data-series-identifier=\"${seriesIdentifier}\"]`).remove();\n this.chart.selectAll(`.ax-line-chart-points[data-series-identifier=\"${seriesIdentifier}\"]`).remove();\n }\n\n /**\n * Truncates long labels with ellipsis\n */\n private truncateLabel(label: string, maxLength: number = this.MAX_LABEL_LENGTH): string {\n if (label.length <= maxLength) return label;\n return label.substring(0, maxLength - 1) + '…';\n }\n\n /**\n * Calculates maximum width needed for Y-axis tick labels\n */\n private calculateMaxYAxisTickLabelWidth(fontSize: number): number {\n const allSeriesData = this._fullNormalizedData.filter((s) => !this.hiddenSeries.has(this.getSeriesIdentifier(s)));\n\n let maxValue = 0;\n let minValue = 0;\n\n for (const series of allSeriesData) {\n if (series.data && series.data.length > 0) {\n for (const point of series.data) {\n if (typeof point.y === 'number') {\n maxValue = Math.max(maxValue, point.y);\n minValue = Math.min(minValue, point.y);\n }\n }\n }\n }\n\n // Check both max and min (for negative values)\n const maxAbsValue = Math.max(Math.abs(maxValue), Math.abs(minValue));\n const tickLabelText = Number.isFinite(maxAbsValue) ? formatLargeNumber(maxAbsValue) : '00000';\n\n return tickLabelText.length * fontSize * this.FONT_WIDTH_MULTIPLIER + this.FONT_PADDING;\n }\n\n ngOnInit(): void {\n this.loadD3();\n }\n\n #effect = effect(() => {\n this._fullNormalizedData = this.normalizeData(this.data());\n this.effectiveOptions();\n\n if (this._rendered()) {\n this.updateChart();\n }\n });\n\n ngAfterViewInit(): void {\n this._initialized.set(true);\n if (this.d3 && this.chartContainerEl()) {\n this.createChart();\n this._rendered.set(true);\n }\n }\n\n ngOnDestroy(): void {\n this.cleanupChart();\n }\n\n // AXChartLegendCompatible Implementation\n getLegendItems(): AXChartLegendItem[] {\n const totalSum = this._fullNormalizedData.reduce((sum, series) => {\n return sum + series.data.reduce((sSum, p) => sSum + p.y, 0);\n }, 0);\n\n return this._fullNormalizedData.map((series) => {\n const seriesIdentifier = this.getSeriesIdentifier(series);\n const seriesSum = series.data.reduce((sum, p) => sum + p.y, 0);\n const percentage = totalSum > 0 ? (seriesSum / totalSum) * 100 : 0;\n return {\n id: seriesIdentifier,\n name: series.label || `Series ${series.originalIndex + 1}`,\n value: seriesSum,\n color: series.lineColor || getChartColor(series.originalIndex, this.chartColors),\n hidden: this.hiddenSeries.has(seriesIdentifier),\n percentage: parseFloat(percentage.toFixed(2)),\n };\n });\n }\n\n highlightSegment(id: string | null): void {\n if (!this.svg) return;\n\n const allSeriesGroups = this.svg.selectAll('g.ax-line-chart-series');\n const allPointsGroups = this.svg.selectAll('g.ax-line-chart-points');\n\n if (id === null) {\n allSeriesGroups.classed('ax-chart-dimmed', false).style('opacity', 1);\n allPointsGroups.classed('ax-chart-dimmed', false).style('opacity', 1);\n\n allSeriesGroups\n .selectAll('.ax-line-chart-line')\n .attr('stroke-width', this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH)\n .classed('ax-chart-highlighted-path', false);\n allPointsGroups\n .selectAll('circle.ax-line-chart-point')\n .attr('r', this.effectiveOptions().pointRadius ?? this.DEFAULT_POINT_RADIUS)\n .classed('ax-chart-highlighted-point', false);\n return;\n }\n\n allSeriesGroups.classed('ax-chart-dimmed', true).style('opacity', 0.3);\n allPointsGroups.classed('ax-chart-dimmed', true).style('opacity', 0.3);\n\n const targetSeriesGroup = this.svg.selectAll(`g.ax-line-chart-series[data-series-identifier=\"${id}\"]`);\n const targetPointsGroup = this.svg.selectAll(`g.ax-line-chart-points[data-series-identifier=\"${id}\"]`);\n\n targetSeriesGroup.classed('ax-chart-dimmed', false).style('opacity', 1);\n targetPointsGroup.classed('ax-chart-dimmed', false).style('opacity', 1);\n\n targetSeriesGroup\n .selectAll('.ax-line-chart-line')\n .attr(\n 'stroke-width',\n (this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH) * this.LINE_HIGHLIGHT_MULTIPLIER,\n )\n .classed('ax-chart-highlighted-path', true);\n\n targetPointsGroup\n .selectAll('circle.ax-line-chart-point')\n .attr('r', (this.effectiveOptions().pointRadius ?? this.DEFAULT_POINT_RADIUS) * this.POINT_HIGHLIGHT_MULTIPLIER)\n .classed('ax-chart-highlighted-point', true);\n }\n\n toggleSegment(id: string): boolean {\n if (this.hiddenSeries.has(id)) {\n this.hiddenSeries.delete(id);\n } else {\n this.hiddenSeries.add(id);\n }\n this.updateChart();\n return !this.hiddenSeries.has(id);\n }\n\n protected async loadD3(): Promise<void> {\n try {\n this.d3 = await import('d3');\n if (this._initialized() && this.chartContainerEl()) {\n this.createChart();\n this._rendered.set(true);\n }\n } catch (error) {\n console.error('Failed to load D3.js:', error);\n }\n }\n\n public createChart(): void {\n if (!this.d3 || !this.chartContainerEl()?.nativeElement) return;\n\n const containerElement = this.chartContainerEl().nativeElement;\n const allSeriesData = this._fullNormalizedData;\n\n // Clear previous SVG and any empty-state messages (preserve tooltip component)\n this.d3\n .select(containerElement)\n .selectAll('svg, .ax-chart-empty, .ax-line-chart-no-data-message, .ax-line-chart-all-hidden-message')\n .remove();\n\n if (allSeriesData.length === 0 || allSeriesData.every((series) => !series.data || series.data.length === 0)) {\n this.showNoDataMessage(containerElement);\n return;\n }\n\n const visibleDataForRendering = allSeriesData.filter(\n (series) => !this.hiddenSeries.has(this.getSeriesIdentifier(series)),\n );\n\n if (visibleDataForRendering.length === 0) {\n // All data is present, but all series are hidden by the legend\n this.showAllSeriesHiddenMessage(containerElement);\n // Still setup basic SVG and chart group for consistency if needed, or return\n // For now, we will show the message and return, as scales/axes can't be drawn.\n return;\n }\n\n const chartOptions = this.effectiveOptions();\n this.setupDimensions(containerElement, chartOptions);\n\n // Use allSeriesData for domain calculation to keep scales consistent\n const dataForScaleSetup = allSeriesData.filter((s) => s.data && s.data.length > 0);\n if (dataForScaleSetup.length === 0) {\n this.showNoDataMessage(containerElement);\n return;\n }\n this.setupScales(dataForScaleSetup);\n this.createAxes(chartOptions);\n this.renderLines(allSeriesData); // RenderLines will handle hiding based on hiddenSeries\n }\n\n public updateChart(): void {\n this.createChart();\n }\n\n public cleanupChart(): void {\n if (this._tooltipRafId != null) {\n cancelAnimationFrame(this._tooltipRafId);\n this._tooltipRafId = null;\n }\n this._pendingTooltipCoords = null;\n\n if (this.svg) {\n this.d3\n ?.select(this.chartContainerEl()?.nativeElement)\n .selectAll('svg, .ax-chart-empty, .ax-line-chart-no-data-message, .ax-line-chart-all-hidden-message')\n .remove();\n this.svg = null;\n this.chart = null;\n }\n this._tooltipVisible.set(false);\n }\n\n private setupDimensions(containerElement: HTMLElement, options: AXLineChartOption): void {\n const containerWidth = Math.max(containerElement.clientWidth, 1);\n const containerHeight = Math.max(containerElement.clientHeight, 1);\n this.calculateMargins(options, containerWidth, containerHeight);\n\n if (options.width && options.height) {\n this.width = options.width - this.margin.left - this.margin.right;\n this.height = options.height - this.margin.top - this.margin.bottom;\n } else {\n this.width = containerWidth - this.margin.left - this.margin.right;\n this.height = containerHeight - this.margin.top - this.margin.bottom;\n }\n\n this.width = Math.max(this.width, this.MIN_DIMENSION);\n this.height = Math.max(this.height, this.MIN_DIMENSION);\n\n const totalWidth = this.width + this.margin.left + this.margin.right;\n const totalHeight = this.height + this.margin.top + this.margin.bottom;\n\n const svg = this.d3\n .select(containerElement)\n .append('svg')\n .attr('width', '100%')\n .attr('height', '100%')\n .attr('viewBox', `0 0 ${totalWidth} ${totalHeight}`)\n .attr('preserveAspectRatio', 'xMidYMid meet');\n\n this.svg = svg;\n this.chart = this.svg\n .append('g')\n .attr('transform', `translate(${this.margin.left},${this.margin.top})`);\n }\n\n private calculateMargins(options: AXLineChartOption, containerWidth: number, containerHeight: number): void {\n this.margin = {\n top: options.margins?.top ?? this.DEFAULT_MARGIN_TOP,\n right: options.margins?.right ?? this.DEFAULT_MARGIN_RIGHT,\n bottom: options.margins?.bottom ?? this.DEFAULT_MARGIN_BOTTOM,\n left: options.margins?.left ?? this.DEFAULT_MARGIN_LEFT,\n };\n\n const estimatedDimensions = this.estimateChartDimensions(containerWidth, containerHeight, options);\n const allDataPoints = this._fullNormalizedData.flatMap((series) => series.data);\n const allNumericX = allDataPoints.length === 0 || allDataPoints.every((d) => typeof d.x === 'number');\n\n let categoricalLabels: string[] | null = null;\n if (!allNumericX) {\n const visibleSeries = this._fullNormalizedData.filter(\n (s) => !this.hiddenSeries.has(this.getSeriesIdentifier(s)),\n );\n categoricalLabels = [...new Set(visibleSeries.flatMap((series) => series.data.map((d) => String(d.x))))];\n }\n\n this.margin.bottom = this.calculateRequiredBottomMargin(options, estimatedDimensions.width, categoricalLabels);\n this.margin.left = this.calculateRequiredLeftMargin(options, estimatedDimensions.height);\n\n // Second pass: margins affect inner chart size, which affects label layout\n const refinedDimensions = this.estimateChartDimensions(containerWidth, containerHeight, options);\n this.margin.bottom = this.calculateRequiredBottomMargin(options, refinedDimensions.width, categoricalLabels);\n this.margin.left = this.calculateRequiredLeftMargin(options, refinedDimensions.height);\n }\n\n private setupScales(data: (AXLineChartData & { originalIndex: number })[]): void {\n // Expects already filtered data for scales\n const chartOptions = this.effectiveOptions();\n const padding = chartOptions.axisPadding ?? 0;\n const paddingMultiplier = padding / 100;\n\n // Ensure data is not empty for scale domain calculation\n const allDataPoints = data.length > 0 ? data.flatMap((series) => series.data) : [{ x: 0, y: 0 }];\n if (allDataPoints.length === 0) {\n // Should ideally not happen if createChart filters correctly\n allDataPoints.push({ x: 0, y: 0 }); // Default fallback to prevent crash with empty domain\n }\n\n const allNumericX = allDataPoints.every((d) => typeof d.x === 'number');\n\n if (allNumericX) {\n this.xScaleKind = 'linear';\n const xMin = this.d3.min(allDataPoints, (d) => d.x as number) ?? 0;\n const xMax = this.d3.max(allDataPoints, (d) => d.x as number) ?? 0;\n\n if (xMin === xMax) {\n this.xScale = this.d3\n .scaleLinear()\n .domain([xMin - 1, xMax + 1])\n .range([0, this.width]);\n } else {\n this.xScale = this.d3.scaleLinear().domain([xMin, xMax]).range([0, this.width]);\n }\n } else {\n this.xScaleKind = 'point';\n const xDomain: string[] = [];\n const seenX = new Set<string>();\n for (const point of allDataPoints) {\n const key = String(point.x);\n if (!seenX.has(key)) {\n seenX.add(key);\n xDomain.push(key);\n }\n }\n\n this.xScale = this.d3\n .scalePoint<string>()\n .domain(xDomain)\n .range([0, this.width])\n .padding(0);\n }\n\n const yAxisStartsAtZero = chartOptions.yAxisStartsAtZero !== false;\n const dataYMin = this.d3.min(allDataPoints, (d) => d.y) ?? 0;\n const dataYMax = this.d3.max(allDataPoints, (d) => d.y) ?? 0;\n\n let yMin: number;\n let yMax: number;\n\n if (yAxisStartsAtZero) {\n yMin = Math.min(0, dataYMin);\n yMax = Math.max(0, dataYMax);\n } else {\n yMin = dataYMin;\n yMax = dataYMax;\n }\n\n const yRange = yMax - yMin || 1;\n\n this.yScale = this.d3\n .scaleLinear()\n .domain([yMin, yMax + yRange * paddingMultiplier])\n .nice()\n .range([this.height, 0]);\n\n if (yAxisStartsAtZero && dataYMin >= 0) {\n this.yScale.domain([0, this.yScale.domain()[1]]);\n }\n }\n\n private createAxes(options: AXLineChartOption): void {\n const showXAxis = options.showXAxis !== false;\n const showYAxis = options.showYAxis !== false;\n const showGrid = options.showGrid !== false;\n const isPointScale = this.xScaleKind === 'point';\n const pointScale = isPointScale ? (this.xScale as d3.ScalePoint<string>) : null;\n const isRtl = document.documentElement.dir === 'rtl' || document.body.dir === 'rtl';\n const axesGroup = this.chart.append('g').attr('class', 'ax-line-chart-axes');\n\n if (showXAxis) {\n let xAxisGenerator;\n let itemCount = 0;\n\n if (isPointScale && pointScale) {\n itemCount = pointScale.domain().length;\n const pointLayout = this.resolveXAxisLabelLayout(this.width, pointScale.domain());\n this.xAxisLabelLayout.fontSize = pointLayout.fontSize;\n this.xAxisLabelLayout.willRotate = pointLayout.willRotate;\n this.xAxisLabelLayout.tickAreaHeight = pointLayout.tickAreaHeight;\n this.xAxisLabelLayout.displayedTickCount = pointLayout.displayedTickCount;\n\n // Smart tick reduction for many items (like bar chart)\n let tickValues: string[] = pointScale.domain();\n if (itemCount > this.VERY_MANY_ITEMS_THRESHOLD) {\n // Show every 5th tick for 50+ items\n tickValues = tickValues.filter((_d, i) => i % 5 === 0);\n } else if (itemCount > this.MANY_ITEMS_THRESHOLD) {\n // Show every 2nd tick for 20-50 items\n tickValues = tickValues.filter((_d, i) => i % 2 === 0);\n }\n\n xAxisGenerator = this.d3\n .axisBottom(pointScale)\n .tickValues(tickValues)\n .tickSize(5)\n .tickPadding(8)\n .tickFormat((d: d3.AxisDomain) => {\n const label = String(d);\n // Truncate long labels intelligently\n const maxLength = itemCount > this.MANY_ITEMS_THRESHOLD ? 10 : this.MAX_LABEL_LENGTH;\n return this.truncateLabel(label, maxLength);\n });\n } else {\n // Linear scale (numeric data)\n // Let D3 determine optimal tick count, but ensure we show reasonable number\n // Calculate optimal tick count based on width\n const optimalTickCount = Math.min(12, Math.max(5, Math.floor(this.width / 80)));\n\n xAxisGenerator = this.d3\n .axisBottom(this.xScale)\n .ticks(optimalTickCount)\n .tickSize(5)\n .tickPadding(8)\n .tickFormat((d: d3.AxisDomain) => {\n // Format numbers nicely\n const num = Number(d);\n if (Number.isInteger(num)) {\n return String(num);\n }\n return num.toFixed(1);\n });\n\n itemCount = optimalTickCount;\n }\n\n this.xAxis = axesGroup\n .append('g')\n .attr('class', 'ax-line-chart-axis-x')\n .attr('transform', `translate(0,${this.height})`)\n .call(xAxisGenerator);\n\n // Style the x-axis path and lines\n this.xAxis.selectAll('path').attr('stroke', 'rgba(var(--ax-comp-line-chart-axis-color), 0.2)');\n\n this.xAxis\n .selectAll('line')\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.2)')\n .attr('stroke-dasharray', '2,2')\n .attr('stroke-opacity', '0.5');\n\n const dynamicXAxisTickFontSize = isPointScale\n ? this.xAxisLabelLayout.fontSize\n : this.getXAxisTickFontSize(this.width, itemCount);\n const xAxisTicks = this.xAxis\n .selectAll('text')\n .style('font-size', `${dynamicXAxisTickFontSize}px`)\n .style('font-weight', '400')\n .style('fill', 'rgba(var(--ax-comp-line-chart-labels-color), 0.7)')\n .attr('direction', 'ltr');\n\n if (isPointScale && pointScale && pointScale.domain().length > 0) {\n if (this.xAxisLabelLayout.willRotate) {\n xAxisTicks\n .attr('transform', 'rotate(-45)')\n .style('text-anchor', 'end')\n .attr('dx', '-0.8em')\n .attr('dy', '0.15em');\n }\n }\n\n const xTickAreaHeight = this.measureXAxisTickAreaHeight(\n this.xAxis.node(),\n dynamicXAxisTickFontSize,\n this.xAxisLabelLayout.tickAreaHeight,\n );\n\n if (options.xAxisLabel) {\n this.createXAxisTitle(axesGroup, options.xAxisLabel, xTickAreaHeight, dynamicXAxisTickFontSize);\n }\n }\n\n if (showYAxis) {\n // Create Y axis with smart number formatting\n const yAxisGenerator = this.d3\n .axisLeft(this.yScale)\n .tickSize(5)\n .tickPadding(8)\n .tickFormat((value: number | { valueOf(): number }) => {\n const numValue = typeof value === 'number' ? value : value.valueOf();\n return formatLargeNumber(numValue);\n });\n\n // Reduce tick count for better readability with large numbers\n const maxValue = this.yScale.domain()[1];\n if (maxValue > 1e6) {\n yAxisGenerator.ticks(6); // Fewer ticks for millions+\n } else if (maxValue > 1e3) {\n yAxisGenerator.ticks(8);\n }\n\n this.yAxis = axesGroup.append('g').attr('class', 'ax-line-chart-axis-y').call(yAxisGenerator);\n\n // Style the y-axis path and lines\n this.yAxis.selectAll('path').attr('stroke', 'rgba(var(--ax-comp-line-chart-axis-color), 0.2)');\n\n this.yAxis\n .selectAll('line')\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.2)')\n .attr('stroke-dasharray', '2,2')\n .attr('stroke-opacity', '0.5');\n\n const dynamicYAxisTickFontSize = this.getYAxisTickFontSize(this.height);\n const yTickTexts = this.yAxis.selectAll('text').attr(\n 'style',\n `\n font-size: ${dynamicYAxisTickFontSize}px;\n font-weight: 400;\n fill: rgba(var(--ax-comp-line-chart-labels-color), 0.7);\n `,\n );\n\n if (isRtl) {\n yTickTexts.attr('text-anchor', 'start');\n } else {\n yTickTexts.attr('text-anchor', 'end').attr('direction', 'ltr');\n }\n\n const yTickNodes = (yTickTexts.nodes() || []) as SVGTextElement[];\n const maxTickLabelWidth = this.measureMaxYAxisTickLabelWidth(yTickNodes, dynamicYAxisTickFontSize);\n\n if (options.yAxisLabel) {\n this.createYAxisTitle(axesGroup, options.yAxisLabel, dynamicYAxisTickFontSize, maxTickLabelWidth);\n }\n }\n\n if (showGrid) {\n const gridGroup = this.chart\n .append('g')\n .attr('class', 'ax-line-chart-grid-container')\n .attr('pointer-events', 'none');\n\n const yGrid = gridGroup\n .append('g')\n .attr('class', 'ax-line-chart-grid')\n .call(\n this.d3\n .axisLeft(this.yScale)\n .tickSize(-this.width)\n .tickFormat(() => '')\n .tickValues(this.yScale.ticks()),\n );\n\n // Style the grid path and lines\n yGrid.selectAll('path').attr('stroke-width', '0');\n\n yGrid\n .selectAll('.tick')\n .selectAll('line')\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.2)')\n .attr('stroke-dasharray', '2,2')\n .attr('stroke-opacity', '0.5');\n\n if (options.showVerticalGrid) {\n const xGrid = gridGroup\n .append('g')\n .attr('class', 'ax-line-chart-grid-vertical')\n .attr('transform', `translate(0,${this.height})`)\n .call(\n this.d3\n .axisBottom(this.xScale)\n .tickSize(-this.height)\n .tickFormat(() => '')\n .tickValues(isPointScale ? undefined : (this.xScale as d3.ScaleLinear<number, number>).ticks()),\n );\n\n // Style the vertical grid path and lines\n xGrid.selectAll('path').attr('stroke-width', '0');\n\n xGrid\n .selectAll('.tick')\n .selectAll('line')\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.15)')\n .attr('stroke-dasharray', '2,2')\n .attr('stroke-opacity', '0.5');\n }\n }\n }\n\n private getXPosition(point: { x: number | string }): number {\n if (this.xScaleKind === 'point') {\n return (this.xScale as d3.ScalePoint<string>)(String(point.x)) ?? 0;\n }\n\n return (this.xScale as d3.ScaleLinear<number, number>)(point.x as number);\n }\n\n private renderLines(allSeriesData: (AXLineChartData & { originalIndex: number })[]): void {\n const getX = (d: { x: number | string; y: number }) => this.getXPosition(d);\n\n const lineGenerator = this.d3\n .line<{ x: number | string; y: number }>()\n .x(getX)\n .y((d) => this.yScale(d.y)) as d3.Line<{ x: number | string; y: number }>;\n\n if (this.effectiveOptions().smoothLine !== false) {\n lineGenerator.curve(this.d3.curveMonotoneX);\n }\n\n const areaGenerator = this.d3\n .area<{ x: number | string; y: number }>()\n .x(getX)\n .y0(this.height)\n .y1((d) => this.yScale(d.y));\n\n if (this.effectiveOptions().smoothLine !== false) {\n areaGenerator.curve(this.d3.curveMonotoneX);\n }\n\n this.svg.attr('class', 'ax-line-chart-animating');\n\n const allSeriesGroup = this.chart\n .append('g')\n .attr('class', 'ax-line-chart-all-series')\n .attr('pointer-events', 'none');\n\n const allPointsGroup = this.chart\n .append('g')\n .attr('class', 'ax-line-chart-all-points')\n .attr('pointer-events', 'none');\n\n if (this.effectiveOptions().showCrosshair === true) {\n this.chart.append('g').attr('class', 'ax-line-chart-crosshair').attr('pointer-events', 'none');\n }\n\n const animationDuration = this.effectiveOptions().animationDuration;\n const animationEasing = getEasingFunction(this.d3, this.effectiveOptions().animationEasing);\n\n allSeriesData.forEach((series) => {\n const seriesIdentifier = this.getSeriesIdentifier(series);\n\n if (this.hiddenSeries.has(seriesIdentifier)) {\n this.removeSeriesElements(seriesIdentifier);\n return;\n }\n if (!series.data || series.data.length === 0) return;\n\n const seriesGroup = allSeriesGroup\n .append('g')\n .attr('class', `ax-line-chart-series ax-line-chart-series-${series.originalIndex}`)\n .attr('data-series-identifier', seriesIdentifier)\n .attr('pointer-events', 'none');\n\n const lineColor = series.lineColor || getChartColor(series.originalIndex, this.chartColors);\n const fillColor = series.fillColor || lineColor;\n\n const line = seriesGroup\n .append('path')\n .datum(series.data)\n .attr('class', 'ax-line-chart-line')\n .attr('stroke', lineColor)\n .attr('stroke-width', this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH)\n .attr('stroke-linejoin', 'round')\n .attr('stroke-linecap', 'round')\n .attr('d', lineGenerator)\n .attr('fill', 'none')\n .attr('style', 'transition: stroke-width 0.3s ease;')\n .attr('pointer-events', 'none');\n\n line\n .on('mouseenter', () => {\n line\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr(\n 'stroke-width',\n (this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH) * this.LINE_HIGHLIGHT_MULTIPLIER,\n );\n })\n .on('mouseleave', () => {\n line\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr('stroke-width', this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH);\n });\n\n const totalLength = line.node().getTotalLength();\n line\n .attr('stroke-dasharray', totalLength + ' ' + totalLength)\n .attr('stroke-dashoffset', totalLength)\n .transition()\n .duration(animationDuration)\n .ease(animationEasing)\n .attr('stroke-dashoffset', 0)\n .on('end', function () {\n line.attr('pointer-events', 'all');\n });\n\n if (this.effectiveOptions().fillArea) {\n const area = seriesGroup\n .append('path')\n .datum(series.data)\n .attr('class', 'ax-line-chart-area')\n .attr('fill', fillColor)\n .attr('opacity', 0)\n .attr('d', areaGenerator)\n .attr('style', 'transition: opacity 0.3s ease;')\n .attr('pointer-events', 'none');\n\n area\n .on('mouseenter', () => {\n area\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr('opacity', ((this.effectiveOptions().fillOpacity ?? 20) / 100) * 1.5);\n })\n .on('mouseleave', () => {\n area\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr('opacity', (this.effectiveOptions().fillOpacity ?? 20) / 100);\n });\n\n area\n .transition()\n .duration(animationDuration)\n .ease(animationEasing)\n .attr('opacity', (this.effectiveOptions().fillOpacity ?? 20) / 100)\n .on('end', function () {\n area.attr('pointer-events', 'all');\n });\n }\n });\n\n if (this.effectiveOptions().showPoints !== false) {\n const pointMap = new Map<\n string,\n Array<{\n point: { x: number | string; y: number };\n series: AXLineChartData & { originalIndex: number };\n originalIndex: number;\n }>\n >();\n\n allSeriesData.forEach((series) => {\n const seriesIdentifier = this.getSeriesIdentifier(series);\n if (this.hiddenSeries.has(seriesIdentifier) || !series.data || series.data.length === 0) {\n return;\n }\n\n const pointData = this.getReducedDataPoints(series.data, this.MAX_POINTS_TO_RENDER);\n\n pointData.forEach((point) => {\n const x = getX(point);\n const y = this.yScale(point.y);\n const key = this.createPointKey(x, y);\n\n if (!pointMap.has(key)) {\n pointMap.set(key, []);\n }\n pointMap.get(key)?.push({ point, series, originalIndex: series.originalIndex });\n });\n });\n\n let animationCounter = 0;\n const totalVisibleSeriesCount = allSeriesData.filter(\n (s) => !this.hiddenSeries.has(this.getSeriesIdentifier(s)) && s.data && s.data.length > 0,\n ).length;\n\n allSeriesData.forEach((series) => {\n const seriesIdentifier = this.getSeriesIdentifier(series);\n if (this.hiddenSeries.has(seriesIdentifier) || !series.data || series.data.length === 0) {\n return;\n }\n\n const lineColor = series.lineColor || getChartColor(series.originalIndex, this.chartColors);\n const pointsGroup = allPointsGroup\n .append('g')\n .attr('class', `ax-line-chart-points ax-line-chart-points-${series.originalIndex}`)\n .attr('data-series-identifier', seriesIdentifier)\n .attr('pointer-events', 'none');\n\n pointsGroup\n .on('mouseenter', () => this.handlePointGroupEnter(series.originalIndex))\n .on('mouseleave', () => this.handlePointGroupLeave());\n\n const pointData = this.getReducedDataPoints(series.data, this.MAX_POINTS_TO_RENDER);\n\n pointsGroup\n .selectAll('circle')\n .data(pointData)\n .enter()\n .append('circle')\n .attr('class', 'ax-line-chart-point')\n .attr('cx', getX)\n .attr('cy', (d) => this.yScale(d.y))\n .attr('r', 0)\n .attr('fill', lineColor)\n .attr('stroke', '#fff')\n .attr('stroke-width', 1)\n .attr('data-x', (d) => d.x)\n .attr('data-y', (d) => d.y)\n .style('cursor', 'pointer')\n .attr('pointer-events', 'none')\n .on('mouseenter', (event: MouseEvent, d: { x: number | string; y: number }) => {\n const x = getX(d);\n const y = this.yScale(d.y);\n const key = this.createPointKey(x, y);\n const overlappingPoints = pointMap.get(key) || [];\n\n if (overlappingPoints.length > 1) {\n this.handleOverlappingPointsHover(event, overlappingPoints);\n } else {\n this.handlePointHover(event, d, series, series.originalIndex);\n }\n\n const pointRadius = this.effectiveOptions().pointRadius ?? this.DEFAULT_POINT_RADIUS;\n this.d3\n .select(event.target as SVGCircleElement)\n .interrupt()\n .attr('r', pointRadius * this.POINT_HIGHLIGHT_MULTIPLIER)\n .attr('stroke-width', this.POINT_HOVER_STROKE_WIDTH)\n .attr('stroke', `rgb(var(--ax-comp-line-chart-bg-color))`);\n })\n .on('mousemove', (event: MouseEvent) => this.updateTooltipPosition(event))\n .on('mouseleave', (event: MouseEvent) => {\n this._tooltipVisible.set(false);\n const pointRadius = this.effectiveOptions().pointRadius ?? this.DEFAULT_POINT_RADIUS;\n this.d3\n .select(event.target as SVGCircleElement)\n .interrupt()\n .attr('r', pointRadius)\n .attr('stroke-width', this.POINT_STROKE_WIDTH)\n .attr('stroke', '#fff');\n })\n .on('click', (event: MouseEvent, d: { x: number | string; y: number }) => {\n const x = getX(d);\n const y = this.yScale(d.y);\n const key = this.createPointKey(x, y);\n const overlappingPoints = pointMap.get(key) || [];\n\n if (overlappingPoints.length > 1) {\n overlappingPoints.forEach(({ point, series }) => {\n this.handlePointClick(event, point, series);\n });\n } else {\n this.handlePointClick(event, d, series);\n }\n })\n .transition()\n .delay(\n (_d: { x: number | string; y: number }, i: number) =>\n i * Math.min(this.POINT_ANIMATION_DELAY_MS, (animationDuration || 0) * 0.05) +\n (animationDuration || 0) * this.POINT_ANIMATION_DELAY_RATIO,\n )\n .duration((animationDuration || 0) * this.POINT_ANIMATION_DURATION_RATIO)\n .ease(animationEasing)\n .attr('r', this.effectiveOptions().pointRadius ?? this.DEFAULT_POINT_RADIUS)\n .on('end', (d, i, nodes) => {\n if (i === nodes.length - 1) {\n animationCounter++;\n if (animationCounter >= totalVisibleSeriesCount) {\n this.enablePointerEventsAfterAnimation();\n }\n }\n });\n });\n } else {\n setTimeout(() => this.enablePointerEventsAfterAnimation(), (animationDuration || 0) + this.ANIMATION_END_BUFFER);\n }\n }\n\n private enablePointerEventsAfterAnimation(): void {\n if (!this.chart || !this.svg) return;\n this.chart.selectAll('.ax-line-chart-all-series').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-series').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-line').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-area').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-all-points').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-points').attr('pointer-events', 'all');\n this.chart.selectAll('.ax-line-chart-point').attr('pointer-events', 'all');\n this.svg.classed('ax-line-chart-animating', false);\n }\n\n private handlePointGroupEnter(originalIndex: number): void {\n this.chart\n .select(`.ax-line-chart-series-${originalIndex} .ax-line-chart-line`)\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr(\n 'stroke-width',\n (this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH) * this.LINE_HIGHLIGHT_MULTIPLIER,\n );\n }\n\n private handlePointGroupLeave(): void {\n this.chart\n .selectAll('.ax-line-chart-line')\n .transition()\n .duration(this.HOVER_TRANSITION_DURATION)\n .attr('stroke-width', this.effectiveOptions().lineWidth ?? this.DEFAULT_LINE_WIDTH);\n\n if (this.effectiveOptions().showCrosshair === true) {\n this.chart.select('.ax-line-chart-crosshair').selectAll('*').remove();\n }\n }\n\n private getReducedDataPoints(\n data: Array<{ x: number | string; y: number }>,\n maxPoints: number,\n ): Array<{ x: number | string; y: number }> {\n if (data.length <= maxPoints) return data;\n const result: Array<{ x: number | string; y: number }> = [];\n const step = Math.ceil(data.length / maxPoints);\n for (let i = 0; i < data.length; i += step) {\n result.push(data[i]);\n }\n if (result[result.length - 1] !== data[data.length - 1]) {\n result.push(data[data.length - 1]);\n }\n return result;\n }\n\n private handlePointHover(\n event: MouseEvent,\n dataPoint: AXLineChartData['data'][number],\n series: AXLineChartData & { originalIndex: number },\n originalIndex: number,\n ): void {\n if (this.effectiveOptions().showTooltip !== false) {\n const color = series.lineColor || getChartColor(originalIndex, this.chartColors);\n\n this._tooltipData.set({\n title: dataPoint.tooltipLabel || series.tooltipLabel || series.label || `Series ${originalIndex + 1}`,\n value: formatLargeNumber(dataPoint.y),\n color: color,\n });\n\n this._tooltipVisible.set(true);\n this.updateTooltipPosition(event);\n\n if (this.effectiveOptions().showCrosshair === true) {\n this.showCrosshairLines(dataPoint);\n }\n }\n }\n\n private showCrosshairLines(dataPoint: { x: number | string; y: number }): void {\n const x = this.getXPosition(dataPoint);\n const y = this.yScale(dataPoint.y);\n\n let crosshairGroup = this.chart.select('.ax-line-chart-crosshair');\n if (crosshairGroup.empty()) {\n crosshairGroup = this.chart.append('g').attr('class', 'ax-line-chart-crosshair').attr('pointer-events', 'none');\n }\n\n crosshairGroup.selectAll('*').remove();\n\n crosshairGroup\n .append('line')\n .attr('class', 'ax-line-chart-crosshair-vertical')\n .attr('x1', x)\n .attr('y1', 0)\n .attr('x2', x)\n .attr('y2', this.height)\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.5)')\n .attr('stroke-width', 1)\n .attr('stroke-dasharray', '3,3')\n .attr('opacity', 0.7)\n .attr('pointer-events', 'none');\n\n crosshairGroup\n .append('line')\n .attr('class', 'ax-line-chart-crosshair-horizontal')\n .attr('x1', 0)\n .attr('y1', y)\n .attr('x2', this.width)\n .attr('y2', y)\n .attr('stroke', 'rgba(var(--ax-comp-line-chart-grid-lines-color), 0.5)')\n .attr('stroke-width', 1)\n .attr('stroke-dasharray', '3,3')\n .attr('opacity', 0.7)\n .attr('pointer-events', 'none');\n }\n\n private updateTooltipPosition(event: MouseEvent): void {\n this._pendingTooltipCoords = { x: event.clientX, y: event.clientY };\n if (this._tooltipRafId != null) return;\n this.scheduleTooltipPosition(0);\n }\n\n private scheduleTooltipPosition(attempt: number): void {\n this._tooltipRafId = requestAnimationFrame(() => {\n const coords = this._pendingTooltipCoords;\n if (!coords) {\n this._tooltipRafId = null;\n return;\n }\n\n const containerEl = this.chartContainerEl()?.nativeElement;\n if (!containerEl) {\n this._tooltipRafId = null;\n return;\n }\n\n const tooltipEl = containerEl.querySelector('.chart-tooltip') as HTMLElement | null;\n if (!tooltipEl && this._tooltipVisible() && attempt < 3) {\n this.scheduleTooltipPosition(attempt + 1);\n return;\n }\n\n this._tooltipRafId = null;\n const rect = containerEl.getBoundingClientRect();\n const tooltipRect = tooltipEl ? tooltipEl.getBoundingClientRect() : null;\n const pos = computeTooltipPosition(rect, tooltipRect, coords.x, coords.y, this.TOOLTIP_GAP);\n const prev = this._tooltipPosition();\n if (prev.x !== pos.x || prev.y !== pos.y) {\n this._tooltipPosition.set(pos);\n }\n });\n }\n\n // computeTooltipPosition moved to shared chart utils\n\n private handlePointClick(\n event: MouseEvent,\n dataPoint: AXLineChartData['data'][number],\n series: AXLineChartData & { originalIndex: number },\n ): void {\n this.pointClick.emit({\n series: series, // series still refers to the full series data with originalIndex\n point: dataPoint,\n event: {\n nativeEvent: event,\n sender: this,\n },\n });\n }\n\n private showNoDataMessage(containerElement: HTMLElement): void {\n const messages = this.effectiveMessages();\n renderChartEmptyMessage(this.d3, containerElement, {\n icon: messages.noDataIcon,\n title: messages.noData,\n help: messages.noDataHelp,\n });\n }\n\n private showAllSeriesHiddenMessage(containerElement: HTMLElement): void {\n const messages = this.effectiveMessages();\n renderChartEmptyMessage(this.d3, containerElement, {\n icon: messages.allHiddenIcon,\n title: messages.allHidden,\n help: messages.allHiddenHelp,\n });\n }\n\n private handleOverlappingPointsHover(\n event: MouseEvent,\n overlappingPoints: Array<{\n point: { x: number | string; y: number };\n series: AXLineChartData & { originalIndex: number };\n originalIndex: number;\n }>,\n ): void {\n if (this.effectiveOptions().showTooltip === false) return;\n\n const tooltipData: AXChartTooltipData = {\n title: overlappingPoints.map(({ series }) => series.label),\n value: formatLargeNumber(overlappingPoints[0].point.y),\n color: overlappingPoints.map(\n ({ series }) => series.lineColor || getChartColor(series.originalIndex, this.chartColors),\n ),\n };\n\n this._tooltipData.set(tooltipData);\n this._tooltipVisible.set(true);\n this.updateTooltipPosition(event);\n\n if (this.effectiveOptions().showCrosshair === true && overlappingPoints.length > 0) {\n this.showCrosshairLines(overlappingPoints[0].point);\n }\n }\n}\n","<div class=\"ax-line-chart\" #chartContainer>\n <!-- Shared tooltip component -->\n <ax-chart-tooltip\n [visible]=\"tooltipVisible()\"\n [position]=\"tooltipPosition()\"\n [data]=\"tooltipData()\"\n [showPercentage]=\"false\"\n ></ax-chart-tooltip>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAIO,MAAM,wBAAwB,GAAsB;AACzD,IAAA,OAAO,EAAE;AACP,QAAA,GAAG,EAAE,EAAE;AACP,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,MAAM,EAAE,CAAC;AACT,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;AACD,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,QAAQ,EAAE,IAAI;AACd,IAAA,gBAAgB,EAAE,KAAK;AACvB,IAAA,iBAAiB,EAAE,IAAI;AACvB,IAAA,WAAW,EAAE,CAAC;AACd,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,SAAS,EAAE,CAAC;AACZ,IAAA,UAAU,EAAE,IAAI;AAChB,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