Session

Better D3 charts with TDD

When I first started out with D3.js five years ago, I built things the same way, customising examples and although worked, I was never proud of my code. The chaining of methods makes the graphs concise, but costs a lot in cognitive overload and maintainability. Building this way is painful to modify, reuse or even to understand once you sit back down after lunch!

I had a huge revelation when I discovered the Reusable API (a modular structure to create and reuse d3 elements) and my code was elevated to even higher levels with Test Driven Development.

In this session, I'll walk you through my journey toward beautiful, maintainable D3 graphs with step by step examples of refactoring crufty code to be shiny and new and testable.

By the end of the talk, you too will know how to build decoupled, composable, encapsulated and consistent D3 graphs and be proud of your code again!

Marcos Iglesias

Sr. Software Engineer at Eventbrite

San Francisco, California, United States

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top