scotthmurray / d3-book

Code examples for “Interactive Data Visualization for the Web”
http://d3book.com
Other
2.4k stars 1.79k forks source link

Update 29_dynamic_labels.html #18

Closed IsilEryigit closed 7 years ago

IsilEryigit commented 7 years ago

I realized that i do not add a rect again when I removed all rects. So, I added an another if structure in your code. I added attr y in labels.transition.

scotthmurray commented 7 years ago

Thanks, but this branch is set in stone now as I rework all the examples for the 2nd edition.