Skip to main content
100%

html WindBarb with d3

✓ Published0🌍 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.

MIT Licensed

Similar vizzes