Tagged: D3

Enter, Update, and Exit in D3

Enter, Update, and Exit in D3

Today at Flatiron we began learning D3, or Data-Driven Documents. D3 is a library to visualize data. Some of the examples are pretty awesome. One key aspect of using D3 is the enter/update/exit life cycle. When you’re binding your data to elements in your DOM, it is enter/update/exit that saves you from having to manually enter a div to hold each piece...