Skip to main content
100%

Scatter Plot of Birds on a Tree

✓ Published0🌍 Public
UUVarshaReddy
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

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 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