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