🌍 Public
Viewing a saved revision (read-only)
f0d4b7e28358469ebf53f3c327a80c69
Fork line chart
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 description