Skip to main content
100%

Scatterplot for World Dataset

✓ Published0🌍 Public
CChih-Hsin Chen
Last edited Apr 30, 2024
Created on Apr 30, 2024

This scatterplot visualizes the relationship between GDP and gasoline price across countries using a cleaned world dataset from a GitHub repository. It displays individual data points as gray circles, with GDP on the x-axis and gasoline price on the y-axis, both scaled using d3.scaleLinear. The visualization is rendered as SVG using D3 v6, with axes generated via d3.axisLeft and d3.axisBottom. The code fetches CSV data with d3.csv, applies parsing functions, and includes labeled axes plus a title, all within a React-free HTML page.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes