Skip to main content
100%

Task9&10

✓ Published0🌍 Public
Mmdadeebfarhaan@gmail.com
Last edited Apr 21, 2024
Created on Apr 21, 2024

This example presents an animated scatterplot of the Iris dataset, cycling through four different variable pairings on the x-axis while keeping petal width on the y-axis. Points are colored by species (setosa, versicolor, virginica) and rendered as ellipses using their sepal dimensions. The visualization uses D3 v6 via UNPKG, employing `scaleLinear`, `axisLeft`, and `axisBottom` from the scatterPlot module. A `setInterval` updates the x-value mapping every few seconds, while SVG elements like circles and text labels are dynamically joined and appended. Data loads from a CSV URL using `d3.csv`.

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