Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot

Public visualization

Scatter Plot

0 stars0🌍 Public
Mmaddulanagasanjana@gmail.com
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from Scatter Plot

This example shows a reusable scatter plot of daily business metrics from a CSV file, plotting signups on the x-axis and revenue on the y-axis with a point for each date. The visualization is built with D3 v7 using the `d3.csv` loader and `d3.scaleLinear` for both axes, while `d3.axisBottom` and `d3.axisLeft` render the tick marks. Each circle is appended via `selection.selectAll().data().join()` with opacity and a fixed color, and the chart includes a title and axis labels. The code defines a reusable `scatterPlot` function to allow flexible customization of data columns and styling.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed