Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of React & D3 Starter

Public visualization

Fork of Fork of React & D3 Starter

0 stars0🌍 Public
Rrevanthdasari10@gmail.com
Last edited Mar 29, 2026
Created on Mar 29, 2026

This example shows a reusable scatter plot built with React and D3.js, displaying country-level data with land area on the x-axis and population on the y-axis. The chart renders a single SVG with circles for data points, labeled axes for both scales, and a hardcoded x-axis label. The code defines a custom `scatterPlot` function that uses D3's `scaleLinear`, `extent`, and `axisBottom`/`axisLeft` APIs, along with the `join` operator to create incremental SVG elements within a React environment.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed