Skip to main content
100%

Reusable Scatter plot Activity 8

✓ Published0🌍 Public
MManideeprenikindi
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Untitled

This interactive scatter plot displays the Iris flower dataset, encoding sepal and petal measurements along the axes for up to four variable comparisons. Users observe the plot’s axes and data points cycling automatically at intervals, with species represented by distinct colors (skyblue, lightgreen, orange) via a custom marker function. The example demonstrates reusable chart architecture: a modular `scatterPlot` function built with D3 scales (`scaleLinear`), axes (`axisLeft`, `axisBottom`), and SVG circle selections, while `setInterval` drives the dynamic axis-value updates. Data loads as CSV from a GitHub gist, and the rendering includes an animated legend and axis labels.

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