A line chart connects data points with straight segments to reveal trends over time. When the X axis uses continuous mode, categories are positioned proportionally to their values rather than at equal intervals, reflecting the true spacing of the underlying data.
This multi-series sample tracks ACME Corp. sales of Brandy, Whiskey, and Tequila from 1986 to 2009, with the X scale set to continuous mode via xScale().mode(‘continuous’). A crosshair tracks the nearest data points on hover, and point-positioned tooltips display each value. Circular hover markers appear on each series, and an interactive legend enables series toggling.
Follow the step-by-step Line Chart Tutorial to learn how such charts are built. See the Line Chart documentation for all configuration options.