Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2

Public visualization

Assignment2

0 stars0🌍 Public
1188r1a0559@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Assignment2

This interactive scatter plot visualizes the Iris dataset, displaying petal and sepal measurements with color-coded species markers. Using d3.csv and d3.scaleLinear, it creates an SVG visualization that animates through different measurement combinations on the x-axis every few seconds via setInterval. The code employs d3.axisBottom and d3.axisLeft for axes, while a custom legend labels species categories. The reusable scatterPlot function, defined with D3’s module pattern, accepts configurable accessors and margin settings, allowing dynamic updates as the selected measurement column changes.

AI-generated description

A demonstration of reusable scatter plot.

Comments

Sign in to join the discussion.

MIT Licensed