Skip to main content
100%

Reusable Scatter plot Activity 8

✓ Published0🌍 Public
MmNamratha25
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This interactive scatter plot visualizes the Iris dataset, mapping petal width against sepal length across three flower species distinguished by color. Built with D3.js, the visualization uses SVG circles and a reusable scatterPlot function that cycles through different column combinations on the x-axis every few seconds via setInterval. The code employs d3.csv for data loading, d3.scaleLinear for axis scaling, and d3.axisBottom/axisLeft for tick marks, while custom labels, a color legend, and a title are appended directly to the SVG.

AI-generated description

Reusable scatter plot

MIT Licensed

Similar vizzes