FormidableLabs / FormidableLabs/victory

Minimum size of an angle in a pie chart

Open
#2,655 0 comments 0 reactions 0 assignees View on GitHub
Issue: Accepted Type: Enhancement :pencil2:
Dominant language
TypeScript
Stars
11.2k
Forks
536
PR merge metrics
No merged PRs in 30d

Description

I couldn’t find in the documentation how to make the minimum angle for a pie chart.

For example, I have [0, 1, 15000] in my data, and I draw 3 parts of the pie; for the second part, I want it to always be at least 2% of the total part. For example, in echarts there is a minAngle parameter that is responsible for this (https://echarts.apache.org/en/option.html#series-pie.minAngle)

How to do this in victory?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.