🌍 Public
Viewing a saved revision (read-only)
dae4c64c9d424d049f1a92fb171e77b7
Reusable_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