🌍 Public
Viewing a saved revision (read-only)
2e9938b3175a4a5c9d685fb60f9ae6c5
Activity 8 _task3
This example visualizes the cost of sales from 2000 to 2013 using a line chart rendered in SVG. It shows the yearly cost values from the CSV data, with a red title and axis labels, and a light green line connecting the data points. The code uses D3 v7 to load the data with `d3.csv`, define a linear scale for the y-axis and a band scale for the x-axis, and draw the line via `d3.line`. The axes are added using `d3.axisBottom` and `d3.axisLeft`.
AI-generated descriptionA demonstration of how to start using D3 version 6.