Skip to main content
100%

Fork of Fork of line chart section 3

✓ Published0🌍 Public
RRadhakrishna246
Last edited Mar 27, 2022
Created on Mar 27, 2022

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 description
MIT Licensed

Similar vizzes