Fork of Line Chart
✓ Published0🌍 Public
This example visualizes US auto sales from 2005 to 2022 as a line chart, using a red path to show sales trends over time. The chart is rendered as an SVG with d3.line, d3.scaleTime for the year axis, and d3.scaleLinear for the sales axis, both with axis labels. Grid lines are drawn using tickSize, and the title is placed above the plot. Data is loaded via d3.csv from a gist, with values converted to numbers before rendering.
AI-generated descriptionMIT Licensed