Fork of ICE-7 Line Chart
✓ Published0🌍 Public
This line chart visualizes annual cotton sales from 2009 to 2021, using a red polyline to trace the trend over time. It demonstrates a D3 v5 workflow with an SVG-based rendering approach. The code employs `scaleTime` for the year-based x-axis and `scaleLinear` for the sales y-axis, while `line()` generates the path. Axes are rendered via `axisBottom` and `axisLeft` with gridlines, and data is loaded as CSV from a remote gist. The chart includes labeled axes, a title, and a styled line, showcasing typical D3 data-joining and margin conventions.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed