Skip to main content
100%

ICE 7 The Line Chart

✓ Published1🌍 Public
AAniv Chakravarty
Last edited Mar 25, 2023
Created on Mar 24, 2023
Forked from The Line Chart

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes