Skip to main content
100%

Reusable_Scatter_Plot

✓ Published1🌍 Public
HHemanthh81
Last edited Jul 22, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This example demonstrates an animated scatter plot of the Iris dataset, cycling through four different x-axis variables (petal width, sepal width, petal length, and sepal length) while keeping petal length on the y-axis. The plot uses D3.js via UNPKG, with custom ES6 modules for the reusable scatter plot logic. Data is loaded from a CSV file, and the visualization updates every few seconds using `setInterval`, recoloring points by species. The SVG rendering includes axes, a legend, and axis labels, with styling applied via CSS.

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