Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatter plot with React & D3

Public visualization

Fork of Scatter plot with React & D3

0 stars0🌍 Public
RRohithReddy-thoughts
Last edited Mar 29, 2022
Created on Mar 29, 2022

A React and D3 scatter plot visualizes the relationship between bill depth and bill length for penguins from a CSV dataset. The SVG rendering uses `scaleLinear` for both axes, with `extent` and `.nice()` to set domains, while `AxisBottom` and `AxisLeft` generate ticks and gridlines via `xScale.ticks()` and `yScale.ticks()`. Circles in the `Marks` component display each data point with a `title` tooltip showing formatted values. The code imports `csv` from D3 v7 and uses React hooks (`useState`, `useEffect`) to load data asynchronously.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed