Skip to main content
100%

CO2 emissions bubble chart

✓ Published3🌍 Public
Oomniaabouhassan@gmail.com
Last edited Sep 26, 2024
Created on Sep 26, 2024

This interactive bubble chart visualizes CO2 emissions by country across years from 2015 to 2023, with bubble size proportional to emissions and color distinguishing countries. Built using D3.js v7, it employs `scaleLinear` for position and size mapping, `scaleOrdinal` with `schemeCategory10` for colors, and `axisBottom`/`axisLeft` for axes. The chart includes hover tooltips and labels, rendering SVG circles with opacity to display the multivariate dataset.

AI-generated description

An approximation of a line chart using D3.js!

Watch the video and study the code to learn about:

  • SVG Path Elements
  • fill, stroke, stroke-width
  • stroke-linecap, stroke-linejoin
  • Vanilla HTML SVG Paths
  • D3.line
  • AI Assist

See also:

Full Playlist: Constructing Visualizations

MIT Licensed

Similar vizzes