Skip to content

ilsanchez/d3-wind-barbs

Repository files navigation

WTFPL

Maintenance GitHub license GitHub version Open Source Love svg1 Minizipped Size

d3-wind-barbs

wind-barb

Generates wind barbs for your meteorological visualizations in a dead simple way.

This library is fully customizable, from colors to bars and triangle angle.

How to use?

npm install --save d3-wind-barbs
const windBarb = new D3WindBarb(
  40 /* wind speed in knots */,
  135 /* wind direction angle */
).draw();

Click here to see the full documentation.

Or here to play with it in Stackblitz