Reusable Scatter plot Activity 8
✓ Published0🌍 Public
This interactive scatter plot displays the Iris flower dataset, encoding sepal and petal measurements along the axes for up to four variable comparisons. Users observe the plot’s axes and data points cycling automatically at intervals, with species represented by distinct colors (skyblue, lightgreen, orange) via a custom marker function. The example demonstrates reusable chart architecture: a modular `scatterPlot` function built with D3 scales (`scaleLinear`), axes (`axisLeft`, `axisBottom`), and SVG circle selections, while `setInterval` drives the dynamic axis-value updates. Data loads as CSV from a GitHub gist, and the rendering includes an animated legend and axis labels.
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