Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

0457ccad13aa460fad003d8b634e3048

Reusable D3 Scatter Plot

0 stars0🌍 Public
Kkartheekgurijala2023@gmail.com
Last edited Mar 27, 2024
Created on Mar 25, 2024

This interactive scatter plot visualizes the size of companies before and after layoffs, using randomized positions for each data point to distribute them across the screen. Built with reusable D3 modules, the chart relies on `scaleLinear` to map values, `axisBottom` and `axisLeft` for the axes, and a data-join pattern to render SVG circles. The code loads CSV data via `d3.csv` and applies a custom scatter plot function, with the current example using random x and y coordinates to illustrate the reusable component’s flexibility.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.