Scatter plot
✓ Published1🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed