Skip to main content
100%

Reusable Scatter plot Activity 8

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

This interactive scatter plot visualizes the Iris flower dataset, with points colored by species (setosa, versicolor, virginica). The code uses D3 v6 modules including `scaleLinear`, `axisLeft`, `axisBottom`, and `csv` loading from a GitHub gist. An animated interval cycles through four different attribute pairings on the x-axis while the y-axis remains fixed, with the scatter plot rendered as SVG circles. The example demonstrates a reusable scatter plot function defined as an ES6 module, alongside manual point rendering and custom legend elements.

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