The <luna-line-chart> component provides full-featured, responsive line charts with single and multi-series support, smooth curves, area fills, and goal lines.
Paths
/lunadom/components/line-chart/line-chart.js Single Series
Multi-Series Comparison
Smooth Curves with Area Fill
With Data Points
Goal Line
Axis Labels
Custom Height
Custom Theme
Purple Theme
Green Theme
Multi-Series with Custom Colors
Customization
data - JSON array of data points (required)height - Chart SVG height in pixels (default: 240)x-label - Label below x-axisy-label - Label along y-axismin - Force y-axis minimum valuemax - Force y-axis maximum valuegoal - Draw horizontal reference/goal linegoal-label - Label for goal line (default: "Goal")area - Fill area under linessmooth - Render as smooth curvesdots - Show data-point dotslegend - Show series legend (multi-series)no-grid - Hide horizontal grid linesanimate - Animate on render (default: true)precision - Decimal places for labels--luna-line-bg - Component background (default: transparent)--luna-line-grid-color - Horizontal grid line colour (default: rgba(255,255,255,.05))--luna-line-axis-color - Axis line colour (default: rgba(255,255,255,.1))--luna-line-text-color - Tick and axis label colour (default: #666)--luna-line-color - Primary series stroke colour (default: #2563eb)--luna-line-area-opacity - Area fill opacity (default: 0.12)--luna-line-stroke-width - Line stroke width in px (default: 2)--luna-line-dot-r - Dot radius in SVG units (default: 3)--luna-line-dot-border - Dot border/stroke colour (default: var(--luna-line-bg, #0a0a0a))--luna-line-series-colors - Comma-separated colour list for multi-series lines. Overrides the built-in palette.--luna-line-goal-color - Reference line colour (default: #f59e0b)--luna-line-goal-dash - SVG stroke-dasharray for the goal line (default: 5,4)--luna-line-tooltip-bg - Tooltip background (default: #1e1e1e)--luna-line-tooltip-fg - Tooltip text colour (default: #eee)--luna-line-tooltip-border - Tooltip border colour (default: #333)--luna-line-legend-gap - Gap between legend items (default: 1rem)--luna-line-cursor-color - Vertical crosshair line colour (default: rgba(255,255,255,.1))luna-line-hover - Fired on data-point hoverluna-line-click - Fired on data-point click