new brush()
dc_graph.brush
is a mode providing a simple wrapper over
d3.svg.brush
Returns:
- Type
- dc_graph.brush
Methods
-
activate()
-
Add the brush to the parent diagram's SVG
Returns:
- Type
- dc_graph.brush
-
deactivate()
-
Remove the brush from the parent diagram's SVG
Returns:
- Type
- dc_graph.brush
-
isActive()
-
Retrieve whether the brush is currently active
Returns:
- Type
- Boolean
-
on(event [, f])
-
Subscribe to a brush event, currently
brushstart
,brushmove
, orbrushend
Parameters:
Name Type Argument Description event
String the name of the event; please namespace with
'namespace.event'
f
function <optional>
the handler function; if omitted, returns the current handler
Returns:
-
- Type
- dc_graph.brush
-
- Type
- function
-