Fork line chart
✓ Published0🌍 Public
This fork line chart displays annual US auto sales from 2005 to 2022 using an SVG line path rendered with d3.line. The x-axis uses d3.scaleTime for yearly dates, while the y-axis employs d3.scaleLinear to map sales values. Axes are generated with d3.axisBottom and d3.axisLeft, with gridlines and labels styled via CSS. The data is loaded from a CSV file using d3.csv. The chart highlights the sales trend in red, with margins and axis-label positioning handled through D3’s selection and transform methods.
AI-generated descriptionMIT Licensed