Skip to main content
100%

ICE 7- Reusable D3 Scatter Plot

✓ Published0🌍 Public
Ssaidhiraj16
Last edited Mar 27, 2022
Created on Mar 27, 2022

This reusable D3 scatter plot displays the Iris Dataset, mapping petal width on the x-axis and sepal length on the y-axis as circular marks. Built as a configurable chart component, it uses the `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs from `d3` to derive scales and axes, with data loaded via `csv`. A `setInterval` timer cycles the x-axis through all four iris flower measurements every two seconds, animating the plot's layout. The visualization renders as SVG, with circles positioned through `attr` calls and axes drawn using D3's axis functions.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes