Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

VictoryBrushLine #559

Merged
merged 18 commits into from
Feb 5, 2018
Merged

VictoryBrushLine #559

merged 18 commits into from
Feb 5, 2018

Conversation

boygirl
Copy link
Contributor

@boygirl boygirl commented Feb 5, 2018

Implements VictoryBrushAxis as described here: FormidableLabs/victory#906

This PR adds the VictoryBrushAxis component which may be used in place of any axisComponent or gridComponent. In addition to the usual axis / grid line, VictoryBrushAxis will render a rectangular brushAreaComponent of brushWidth. A brushDomain may be specified which will determine an initial brushComponent to render, or a brushDomain may be selected by clicking and dragging within the brushAreaComponent. The brushDomain may also be resized by clicking within either of the rendered handleComponent areas (of width handleWidth) on either side of the brushComponent. The brushComponent, brushAreaComponent and brushHandleComponent may be customized with brushStyle, brushAreaStyle, and handleStyle respectively. Each of these components renders a Box primitive, but may be overwritten, or customized inline. When the domain of the brush changes, an onBrushDomainChange callback will fire, with arguments newDomain and props.

brush-grid

@boygirl boygirl merged commit 6c4150a into master Feb 5, 2018
@boygirl boygirl deleted the experiment/brush-axis branch February 5, 2018 06:44
@boygirl boygirl changed the title Experiment/brush axis VictoryBrushLine Feb 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant