ICE 7 The Line Chart
✓ Published1🌍 Public
This line chart displays CO2 emissions in India from 1860 to 2022. The visualization uses a linear scale for both the year (x-axis) and emission tons (y-axis), with gridlines and labeled axes. Built with D3 v5 and React, the code loads CSV data from a GitHub gist, then renders an SVG path using `d3.line` and scales (`scaleLinear`, `extent`, `max`). Axis ticks are generated via `axisBottom` and `axisLeft`, with tick formatting and padding configured. The chart is styled through CSS, with a blue stroke for the line path.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed