Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Expert Data Visualization

You're reading from  Expert Data Visualization

Product type Book
Published in Apr 2017
Publisher Packt
ISBN-13 9781786463494
Pages 394 pages
Edition 1st Edition
Languages
Author (1):
Jos Dirksen Jos Dirksen
Profile icon Jos Dirksen

Table of Contents (10) Chapters

Preface Getting Started with D3 Basic Charts and Shapes Working with Hierarchical Data Visualizing Graphs Working with Geo Data Visualizing Streaming Data Voronoi Diagrams and Heatmaps Custom Shapes and Paths and Using a Brush Selection ES6, TypeScript, and External D3.js Libraries

Using D3 with ES6 and TypeScript

In this section, we're going to explore D3 usage from ES6 and TypeScript. We'll start with how to use D3 from ES6.

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...

lock icon The rest of the chapter is locked
arrow left Previous Chapter
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}