Scatter Plot of Birds on a Tree
✓ Published0🌍 Public
This example shows a scatter plot tracking the number of birds observed in a tree at five different times throughout the morning, with each point colored by its time label. The visualization is built with D3 v6, using `d3.scalePoint` for the categorical time axis, `d3.scaleLinear` for the count axis, and `d3.schemeCategory10` for point colors. SVG circles and text labels are positioned via `cx`/`cy` attributes, and `d3.axisBottom` and `d3.axisLeft` render the axes.
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