Skip to main content
100%

Reusable Scatter plot Activity 8

✓ Published0🌍 Public
Hharsha
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

This example demonstrates a reusable scatter plot visualizing the Iris flower dataset, cycling through different measurement pairs on the x-axis using an animation loop. The plot color-codes data points by species and includes a legend, title, and axis labels. It loads D3 v6 via UNPKG and uses local ES6 modules, importing `csv`, `select`, `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to build the chart. The rendering uses SVG with a `setInterval` timer updating the x-axis mapping every few seconds.

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