Skip to main content
100%

Reusable Scatter Plot

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

This animated scatter plot explores relationships between characteristics of penguin species, cycling through different attribute pairings on the x-axis. It uses a reusable `scatterPlot` module built with D3's `scaleLinear`, `axisLeft`, and `axisBottom` to render the chart, while data is loaded from a CSV via D3's `csv` function. The plot updates its x-axis every few seconds through a `setInterval` call, with circles colored by species type, and includes a legend and axis labels styled with 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