Skip to main content
100%

Scatter plot

✓ Published1🌍 Public
Jjony6290
Last edited Jul 4, 2023
Created on Jul 4, 2023
Forked from HTML Starter

This scatter plot visualizes the relationship between farm-level and packaging-level greenhouse gas emissions for various food products. Each circle represents a data point from the OurWorldinData dataset, plotted with its Farm value on the x-axis and Packging value on the y-axis. The code uses d3.csv to load and parse the data, converting string values to numbers, then applies d3.selectAll with a data join to create SVG circles with fixed radii of 5 pixels. The visualization renders directly to the DOM using D3 v7 and standard SVG attributes.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes