🌍 Public
Viewing a saved revision (read-only)
34aca8f881944347b01ec8edb670b9ca
linechart
This example visualizes the cost of sales from 2000 to 2013 using a line chart rendered as an SVG. The chart, built with D3.js v7, loads data from a CSV file containing yearly cost values. It uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with a light green line drawn via `d3.line`. Axis labels are styled in red, and the chart includes custom margins and tick font sizes.
AI-generated descriptionA demonstration of how to start using D3 version 6.