Skip to main content
100%

Fork of Lab 1: Line Chart

✓ Published0🌍 Public
RRichard Tomassetti
Last edited Feb 22, 2021
Created on Feb 22, 2021
Forked from Lab 1: Line Chart

This interactive D3.js line chart visualizes annual CO2 emissions for selected countries from 1990 to 2014, sourced from UN Data. The visualization uses a multi-line chart with an ordinal color scale and includes axes with formatted tick labels. Built with D3 4.7.4, the code uses `d3.select`, `d3.nest()`, `d3.scaleOrdinal`, `d3.scaleLinear`, and `d3.axisBottom`/`d3.axisLeft` to render SVG elements. The chart allows data filtering by adjusting the `selectedCountries` array, demonstrating animated transitions between different country selections.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes