Chart unit tests

I've done all of the simple unit tests that don't touch d3 and I've tested the init() method using a custom d3 mock.  I think my approach should be reviewed so we can agree on the best way forward for testing.