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

add a voronoiBlacklist prop and ignore children with matching names #548

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

boygirl
Copy link
Contributor

@boygirl boygirl commented Jan 8, 2018

fixes FormidableLabs/victory#890

Adds voronoiBlacklist as a prop for VictoryVoronoiContainer. The prop should be given as an array of strings. When this prop is given, children with the name prop matching a string in the voronoiBlacklist array will not be used when calculating a shared voronoi diagram. These children will still appear in the chart, but they will never be set to active by VictoryVoronoiContainer, and their labels will not appear in shared voronoi tooltips.

@boygirl boygirl merged commit e531fa3 into master Jan 8, 2018
@boygirl boygirl deleted the voronoiBlacklist branch January 8, 2018 22:58
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.

Allow VictoryVoronoiContainer diagram to ignore charts that are only for annotation purposes
1 participant