Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learn D3.js

You're reading from   Learn D3.js Create interactive data-driven visualizations for the web with the D3.js library

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781838645571
Length 650 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Helder da Rocha Helder da Rocha
Author Profile Icon Helder da Rocha
Helder da Rocha
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Introduction FREE CHAPTER 2. Technical Fundamentals 3. Quick Start 4. Data Binding 5. Manipulating Data and Formatting 6. Scales, Axes, and Colors 7. Shape and Layout Generators 8. Animation and Interactivity 9. Visualizing Hierarchical Data 10. Visualizing Flows and Networks 11. Visualizing Geographical Data 12. Other Books You May Enjoy

Brushing behavior

Brushing allows the selection of a range of values in a chart, in one or two dimensions. It usually involves clicking a point on the screen with a mousedown or touchstart event, moving the cursor somewhere else (mousemove or touchmove) while drawing an area on the screen, and releasing the cursor when the area is selected (mouseup, touchend, or touchcancel). These native events are grouped in three drag events: start, drag, and end that are handled by a brush behavior object.

In two-dimensional brushes, the selection is represented as two corners of a rectangle. In one-dimensional brushes, the selection is a minimum and a maximum value. The selection rectangle can also be configured with a fixed size and allowed to move over the chart. You can also attach handles that are used to resize it. Once the brushing is done, the extent of the selection is used to compute...

lock icon The rest of the chapter is locked
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 $19.99/month. Cancel anytime