Skip to main content
100%

Reusable Scatter plot Activity 8

✓ Published0🌍 Public
Rrikhitakoganti12
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This interactive scatter plot visualizes the Iris dataset, cycling through different feature combinations on the x-axis every few seconds while keeping petal width on the y-axis. Points are colored by species—skyblue for setosa, lightgreen for versicolor, and orange for virginica—with a legend and axis labels. Built with D3 v6, the reusable `scatterPlot` module uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to render scales and axes, while ES6 modules load CSV data from a GitHub gist. The animation leverages `setInterval` to update the x-value mapping and re-render the SVG.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes