Skip to main content
100%

ICE-6 Scatter Plot

✓ Published0🌍 Public
Nneffer77
Last edited Mar 10, 2023
Created on Mar 10, 2023
Forked from ICE6 - Bar Chart

This scatter plot visualizes total emissions per country from 2000 to 2001, using a global dataset loaded via `d3.csv`. Each circle represents a country, with positions set by `d3.scaleLinear` for both axes, and colors assigned by a country-specific marker function. The visualization is rendered as an SVG appended directly to the body, with axes created using `d3.axisLeft` and `d3.axisBottom`. The chart highlights trends in emissions for select nations, with most points clustered near the origin.

AI-generated description

Boilerplate code for a React + D3 visualization with:

  • CDN links for React, ReactDOM, and D3
  • Basic React boilerplate
  • Variables for dimensions and margins
  • A VizContainer component that:
    • Abstracts SVG/group container elements
    • Follows the margin convention
    • Show the margins, which can be easily removed by deleting the showMargins={true} prop
MIT Licensed

Similar vizzes