Class: brush

dc_graph. brush


new brush()

dc_graph.brush is a mode providing a simple wrapper over d3.svg.brush

Source:
Returns:
Type
dc_graph.brush

Methods


activate()

Add the brush to the parent diagram's SVG

Source:
Returns:
Type
dc_graph.brush

deactivate()

Remove the brush from the parent diagram's SVG

Source:
Returns:
Type
dc_graph.brush

isActive()

Retrieve whether the brush is currently active

Source:
Returns:
Type
Boolean

on(event [, f])

Subscribe to a brush event, currently brushstart, brushmove, or brushend

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

Source:
Returns: