← Back to Module 10

Sortable Bar Chart

Click a button to re-sort the bars. Each bar slides to its new position using a key function (d => d.page) to maintain object constancy. The bar for "/home" is always the same bar, no matter where it ends up.