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.