block by Chi-Loong e3389dfb6873c85caf445f0faba52ec4

D3 bar chart part II

Full Screen

Extension of D3 bar chart for teaching and explanation purposes.

Follow’s D3 design pattern of enter, update and exit loop with simple transition to show how this can be done easily. Updated to D3 v6, using the selection.join syntax.

Part 2 of a series.

Part 1 here

index.html