Ember/D3: Review and Guidance


I have been trying out D3 within Ember components and wondered if anyone could offer some guidance on the approach I am taking.

There have clearly been a number of successful integrations of the two and I hope that someone can tell me if I am going in the wrong direction!

I have been working on a simple example, a slider, which allows the user to set maximum & minimum values, the step size and the coordinate transform. The JSBin is here: JS Bin

I am most interested in the ‘best practice’ approaches to using D3 and Ember in combination. I am painfully aware of the dodgy SVG work in the example so, please, focus any guidance on the approach to using the libraries together!



1 Like

Looks good to me :+1:

One thing that I want to point out which I think you did really well on structuring it so that most of the DOM are rendered by Ember and not d3. This should be a documented best practice that everyone should follow.

1 Like