Reusable Scatter Plot
✓ Published0🌍 Public
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 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