block by ejb 774b87bf0f7482599419d1e7da9ed918

Structuring D3 code with ES6 classes

Full Screen

This is an example of structuring D3 code using ES6 classes. For more information, see the accompanying blog post “A better way to structure D3 code”.

This example is written in ES6 and will only work in the latest versions of Chrome, Firefox and Safari.

index.html

chart.js