Book Image

Building Data Visualizations with D3 and Angular 2 [Video]

By : Matt Dionis
4 (1)
Book Image

Building Data Visualizations with D3 and Angular 2 [Video]

4 (1)
By: Matt Dionis

Overview of this book

<p>Browser-based visualization has been revolutionized by D3.js, the most flexible and powerful data visualization library available today. Angular 2 will power many of the most interesting and innovative websites and apps in years to come. This practical tutorial gives real-world solutions to how your data can be brought to life by harnessing the power of D3.js and using it in tandem with Angular 2.</p> <p>The course begins by showing you how to connect data effectively to SVG elements using D3.js and provides an introduction to making D3 data visualizations interactive.</p> <p>It then moves on to creating a basic Angular 2 application complete with components, services, data and event binding, and a testing infrastructure.</p> <p>Finally, you will learn how to integrate D3.js into an Angular 2 application. You will build a data dashboard out of flexible Angular 2 components. Towards the end of this volume you will learn to leverage a few advanced features and functionalities such as incorporating real-time data streams, and adding interactivity and animations.</p> <p>This course will provide you with the knowledge base and skill set to visualize virtually any data set and allow your audience to interact with these visualizations to gain deeper insight.</p> <h1>Style and Approach</h1> <p>This video uses a step-by-step tutorial approach and will explain all the steps involved in creating an Angular 2 app and integrating the latest D3.js library, D3 version 4. The individual steps will eventually help you to create a fully functional application in the form of a data dashboard complete with a scatterplot, live map, and live visual data stream.</p>
Table of Contents (8 chapters)
Chapter 4
Making D3 Visualizations Interactive
Content Locked
Section 1
Adding a Legend
Our choropleth map looks great, but there's not currently a way to determine what range of values each color corresponds to. We need to add a legend which equates colors to values. - We use a scale to establish a basic legend - Add labels to our legend - Position our legend within the svg canvas