Skip to main content
100%

ICE 7 Reusable scatter plot

✓ Published0🌍 Public
SSai Kaushik
Last edited Mar 13, 2023
Created on Mar 13, 2023

This reusable scatter plot visualizes the Iris Dataset, mapping petal width, sepal width, petal length, and sepal length onto the x-axis while keeping sepal length on the y-axis. It uses D3’s `scaleLinear`, `scaleOrdinal`, and `symbol` to encode species with distinct SVG path shapes. The plot cycles through the four x-axis variables every two seconds via `setInterval`, re-calling the chart with updated accessors. Rendering is fully SVG-based, with axes generated by `axisLeft` and `axisBottom`, and the viewport resizes to the full window dimensions.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes