node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org ยป

victory-voronoi

Travis Status

Victory Voronoi

victory-voronoi draws an SVG voronoi chart with React and D3. Styles and data can be customized by passing in your own values as properties to the component. Data changes are animated with victory-animation.

Examples

The plain component has baked-in sample data, style, angle, and sort defaults, so rendering the voronoi with no custom properties, like so:

<VictoryVoronoi/>

Will look like this:

[insert default state of voronoi image]

Pass your data in as an array of centriods:

The API

Props

All props are optional. They can be omitted and the component will still render.

The following props are supported:

Development

Please see DEVELOPMENT

Contributing

Please see CONTRIBUTING