Skip to main content
100%

Reusable_ScatterPlot_D3

✓ Published1🌍 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
MIT Licensed

Similar vizzes