Scatterplot for global dataset in class
✓ Published0🌍 Public
Gg_ivaska@coloradocollege.edu
Last edited Apr 30, 2024
Created on Apr 30, 2024
This scatterplot visualizes the relationship between GDP and gasoline prices across countries in a global 2023 world dataset. Each circle represents a country, positioned by its GDP on the x-axis and gasoline price on the y-axis using D3’s `scaleLinear` and `extent` for domain mapping. The SVG rendering is built with React and D3 v6, using `axisLeft`, `axisBottom`, and data-bound circle elements. Raw CSV data is loaded asynchronously via `d3.csv`, with tooltips and hover interactions handled through mouseover events.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed