Skip to main content
100%

Reusable Scatter Plot

✓ Published0🌍 Public
Aanith462@gmail.com
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This animated scatter plot visualizes penguin measurements from a CSV dataset, cycling through four attributes on the x-axis while body mass remains fixed on the y-axis. The SVG renderer uses reusable D3 modules and scales to display colored circles by species, with a legend and rotating axis labels. Data loads via d3.csv from a GitHub gist, while d3.scaleLinear, d3.axisLeft, and d3.axisBottom construct the plot, and setInterval triggers the animation.

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