Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable_ScatterPlot_D3

Public visualization

Viewing a saved revision (read-only)

511a11b8156542eca54519c4b7004884

Reusable_ScatterPlot_D3

0 stars1🌍 Public
Rraturi22@gmail.com
Last edited Aug 14, 2025
Created on Aug 14, 2025
Forked from ScatterPlot_D3

This example demonstrates a reusable scatter plot that visualizes the relationship between petal length and sepal length in the Iris dataset. The chart renders as an SVG using D3.js, with circles representing individual data points and axes labeled from the parsed CSV data. The implementation uses D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs within a custom `scatterPlot` function, which exposes setters for width, height, data, and margin to make the chart configurable and reusable across different datasets.

AI-generated description