Chapter 3. Dealing with Data
In this chapter, we will cover:
- Binding an array as data
- Binding object literals as data
- Binding functions as data
- Working with arrays
- Filtering with data
- Sorting with data
- Loading data from a server
- Asynchronous data loading using queue
Introduction
In this chapter, we will explore the most essential question in any data visualization project: how data can be represented in both programming constructs, and its visual metaphor. Before we start on this topic, some discussion on data visualization is necessary. In order to understand what data visualization is, first we will need to understand the difference between data and information.
Data consists of raw facts. The word raw indicates that the facts have not yet been processed ...
Get Data Visualization with D3 4.x Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.