Skip to Main Content
Data Visualization with D3 and AngularJS
book

Data Visualization with D3 and AngularJS

by Christoph Körner
April 2015
Intermediate to advanced content levelIntermediate to advanced
278 pages
5h 38m
English
Packt Publishing
Content preview from Data Visualization with D3 and AngularJS

Advanced filtering using brushes

In the previous section, we saw that D3.js can handle all the filtering action with solely modifying the domain and range attributes of the axis object. Filtering and selecting data is a common task in data visualization; therefore, D3.js implements a much more advanced filtering method called brushes.

A brush is a D3.js module initialized with an x and/or a y axis scale and automatically creates a draggable and resizeable box on top of a visualization container. While dragging and resizing this box, the brush automatically adapts the range and domain of the axis scales. A brush often looks similar to the following image:

Filtering time scale axis with a brush

This brush looks really cool as a filter; we also want ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

D3.js: Cutting-edge Data Visualization

D3.js: Cutting-edge Data Visualization

Ændrew H. Rininsland, Michael Heydt, Pablo Navarro Castillo
D3.js 4.x Data Visualization - Third Edition

D3.js 4.x Data Visualization - Third Edition

Aendrew Rininsland, Swizec Teller
Intermediate D3.js

Intermediate D3.js

Scott Murray

Publisher Resources

ISBN: 9781784398484Supplemental Content