linechart
✓ Published0🌍 Public
This line chart visualizes the cost of sales from 2000 to 2013, using a dataset loaded from a CSV file that pairs each year with a numeric cost value. The SVG chart, built with D3 v7, uses `d3.scaleBand` for the yearly x-axis and `d3.scaleLinear` for the cost y-axis. A single light-green path stroke is drawn via the `d3.line()` generator, with axis labels and ticks styled in red, showing a simple trend of fluctuating costs across the period.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed