May 2019
Beginner to intermediate
650 pages
14h 50m
English
Typically, you will configure the brushing extent, if your brushing area is not the same as your container, and one or more on() methods to handle the start-brush-end life cycle. The following table lists the brush configuration methods you are most likely to use:
|
Methods |
Description |
|
on(types, listener) |
One or more type names can be provided (separated by spaces). They can be start, called after a mousedown (or touchstart); brush, on mousemove (or touchmove); and end, on mouseup (or touchend). Each function receives the current datum, index, and nodes (which may be null if the object is not bound to a dataset). The current object can be accessed with this, and the d3.event object contains a brush event object ... |
Read now
Unlock full access