🌍 Public
Viewing a saved revision (read-only)
b6932544f3b7486cad7b0f42f9a3e87b
Activity8Task3-linechart
This line chart displays the cost of sales from 2000 to 2013, with a light green stroke highlighting the trend across yearly data points. The visualization uses D3 v7 to load a CSV file via `d3.csv`, map years to a `d3.scaleBand` for the x-axis, and costs to a `d3.scaleLinear` for the y-axis. The line is drawn using `d3.line`, with red axis labels and a centered title. The SVG rendering approach is visible, with margins and axes configured for clarity.
AI-generated descriptionA demonstration of how to start using D3 version 6.