π Public
Viewing a saved revision (read-only)
db0e4f07f3d7475aaef887a452295669
Fork of Fork of ICE 7 Line Chart
This example shows annual car sales in the United States from 2010 to 2019 as a single red line chart. The x-axis represents the year, parsed with `d3.timeParse`, and the y-axis shows the number of cars sold. Using D3 v5 with SVG, the code loads CSV data from a GitHub gist, scales the axes with `scaleTime` and `scaleLinear`, and draws the line with `line()`. Grid lines are rendered via axis ticks, with red and blue axis labels and a bold title.
AI-generated description