In this section, we're going to explore D3 usage from ES6 and TypeScript. We'll start with how to use D3 from ES6.
Using D3 with ES6 and TypeScript
D3 and ES6
When developing ES6, you have to take into account the browsers you're targeting. Most modern browsers have great support for the ES6 standard:
But pretty much the one subject that is barely supported is the module support. So for now we have to translate our ES6 code to ES5 so it can be loaded directly into any browser (this is often called transpiling).
We won't go through the complete ES6 specification, but look at a couple of the features which are especially interesting in combination with D3. For a complete overview of the features of ES6 you can look here: http://es6-features.org...