Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

html WindBarb with d3

Public visualization

Viewing a saved revision (read-only)

1a63b1a320fa40a5b0c03ae9f2c7d86a

html WindBarb with d3

0 stars0🌍 Public
DDonald Bagwell
Last edited May 4, 2024
Created on May 4, 2024
Forked from HTML Starter

This example demonstrates how to render wind barbs, a meteorological symbol indicating wind speed and direction, as scalable vector graphics. It displays twelve individual barbs, each representing a different wind speed and direction pair. The visualization converts wind speed into a combination of triangular flags (50 knots), long barbs (10 knots), and short barbs (5 knots), then rotates each glyph according to its compass direction. The code defines a reusable `WindArrow` class that constructs the SVG path geometry using D3.js (v7) and renders it within Bootstrap-styled HTML containers.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.