Fork of Fork of line chart section 3
✓ Published0🌍 Public
This example displays car sales data from 2013 to 2021 as a single red line chart. The visualization uses D3 v5 with SVG rendering to plot years on the x-axis and total sales on the y-axis, incorporating linear and time scales. The code loads CSV data from a GitHub gist, then applies d3.line, d3.scaleTime, d3.scaleLinear, and d3.axisLeft/axisBottom to construct the chart with grid lines and axis labels. The data parsing converts string years into date objects using d3.timeParse for proper time-based scaling.
AI-generated descriptionMIT Licensed