-
Notifications
You must be signed in to change notification settings - Fork 725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New component - PieChart #3470
New component - PieChart #3470
Conversation
@nitzanyiz |
@ethanshar I think I need to rethink the api. When I started to use the component I got into a few problems with the api. Lets discuss this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Wrote a few comment
@ethanshar , I made all the changes and added some to the api (border width and color). Also I added the api json. |
@nitzanyiz looks good, see my replies - left few small things. Ping me on slack when it's ready and I'll approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrote one last comment, you can fix and merge. I approved
src/components/pieChart/index.tsx
Outdated
if (!Svg || !Path) { | ||
console.error(`RNUILib PieChart requires installing "@react-native-svg" dependency`); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's return here null after showing the error to avoid an actual exception that might crash the whole screen or tests
Description
Added a new component PieChart. The component gets segments which is an array of percentages to that each segment of the pie should cover. Each segment is a percentage representing the percentage of the pie to cover and a color for the pie segment.
Changelog
⭐ PieChart - New Component ⭐
Additional info
MADS-3418