-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
D3 relies on native JavaScript events for most of its interactive operations and offers a set of tools that assist with event management, many of which have already been used in previous chapters. This chapter reviews these tools, covering key aspects related to advanced event management, such as propagation and dispatching.
Zooming & panning, drag & drop, and brushing are interactive behaviors that rely on managing native events and different stages. Zooming applies transforms based on user actions, dragging tracks object coordinates during movement, and brushing selects elements within a chart area. D3 makes it easier to implement these features with its d3-zoom, d3-brush and d3-drag modules, which encapsulate native events and provide tools to manage them.
Among these features, zooming is probably the most complex and most frequently used. This chapter covers the basic functionality that you can start using immediately, while advanced features...