Skip to main content
100%

Scatter Plot of Birds on a tree

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

This scatter plot visualizes the number of birds observed on a tree at five different times of day, from 8:00 AM to 12:00 PM. Each red circle represents a single observation, with its horizontal position determined by time and its vertical position by the bird count, which is also labeled directly above each point. The chart uses D3 v6’s `scalePoint` for the categorical time axis and `scaleLinear` for the numeric bird count, with axes generated via `axisBottom` and `axisLeft`, all rendered as SVG elements within a 600 by 400 viewBox. The data is hardcoded in the HTML file, and the visualization is built entirely with D3's low-level selection and append methods.

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