block by Chi-Loong c36e1cf66502faa45f8dd8102a5c5531

D3 bar chart part I

Full Screen

A really simple stripped down D3 bar chart for teaching and explanation purposes.

To go over design patterns like margin design and styling using CSS.

Part 1 of a series. Part 2 is about transitions and using a enter, update and exit loop. Updated to d3 v6.

Part 2 here

index.html