Skip to main content

Pie

Pie charts can be used to visually represent proportions of a whole for a limited number of categories.

Basic​

See the full API here. Typically composed with VictoryChart to create full charts.

Live View
Loading...
Live Editor

Pie Chart - Semi Circular​

Pie charts can be rendered within a specific angle range.

Live View
Loading...
Live Editor

Pie Chart - Donut​

Pie charts can be rendered as donuts by setting the innerRadius prop.

Live View
Loading...
Live Editor

Pie Chart - Ring​

Pie charts can be rendered as rings by adjusting various radius props.

Live View
Loading...
Live Editor

Pie Chart - Exploded​

Pie charts can be exploded to emphasize the categories.

Live View
Loading...
Live Editor

Pie Chart - Ordered​

Pie chart slices can be ordered using the standard categories prop.

Live View
Loading...
Live Editor

Pie Chart - Variable radius​

Pie charts can have variable radius by setting the radius prop to a function.

Live View
Loading...
Live Editor

Pie Chart - Center Labels​

Pie charts can have center labels by providing a custom label.

Live View
Loading...
Live Editor

Pie Chart - Independent Labels​

Pie chart data can use independent labels in the dataset.

Live View
Loading...
Live Editor

Pie Chart - Label Position​

Pie chart labels can be positioned at different points along each slice by using the labelPosition prop.

Live View
Loading...
Live Editor

Pie Chart - Label Indicator​

Pie charts can show a label indicator by setting the labelIndicator prop.

Live View
Loading...
Live Editor

Pie Chart - Custom Label Indicator​

Pie charts can show a custom label indicator by setting the labelIndicator prop to a custom component.

Live View
Loading...
Live Editor

Pie Chart - Tooltips​

Tooltips can be added by using a VictoryTooltip component as the labelComponent.

Live View
Loading...
Live Editor

Pie Chart - Animation​

Charts can be animated by setting the animate prop. See the animations guide for more information.

Live View
Loading...
Live Editor

Pie Chart - Styles​

Chart styling can be customized by using the theme or overriding the style prop on the component.

Live View
Loading...
Live Editor

Pie Chart - Events​

Events can be handled by passing an array of event objects to the events prop on the component. Each event object should specify a target and an eventHandlers object. See the events guide for more information.

Live View
Loading...
Live Editor

Standalone Rendering​

Pie charts can also be embeded in other SVG components by using the standalone prop.

Live View
Loading...
Live Editor

Like this project? You'll love working with us.

Contact us to learn more about our full range of services and offerings.

Learn More