Reusable Scatter Plot
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed