-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat: pie chart #191
feat: pie chart #191
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 73017da The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
This is look great 🔥 . Still reviewing and playing around with it, but some initial thoughts on the API
@@ -0,0 +1,6 @@ | |||
--- | |||
"victory-native": minor | |||
"example": patch |
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.
do we want the example app in here?
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.
Seemed like it automatically got included when I generated the changeset.
This is a v1 pie chart implementation that renders pie charts, without labels and without gestures. It sort of only has one option beyond the pie chart, which is to render an inset inside the chart, which is like a border of each slice. No docs yet either, beside the example page, which only renders in dev mode currently.
- adds pie chart legend support - adds contexts to consume slices/set legend position, and probably more later. - readjusts exports/implementation - adds label, but not exported yet (wip)
fixes some clipping that was happening since the canvas is a bit tight
This adds an `innerRadius` prop that allows the Pie chart to function as a donut chart.
adds pie and donut chart example screen that covers a few edge cases/examples to ensure things are working
- removes need to import provider for rendering slices - removes need to pass data prop to legend - adds data to pie chart context so legend can consume it - make render props optional and render defaults unless otherwise passed in - updates examples
type becomes: ``` type PieSliceAngularInsetData = { angularStrokeWidth: number; angularStrokeColor: Color; }; ```
follows same pattern as the `Pie.ChartSlice` component where we just wrap the children with the slice provider.
- adds parent Polar component as Pie chart coordinate system container. - updates docs - removes legends/legend items for now
Description
This is a v1 pie chart implementation that renders pie charts, without labels and without gestures.
It sort of only has one option beyond the pie chart, which is to render an inset inside the chart, which is like a border of each slice.
No docs yet either, beside the example page, which only renders in dev mode currently.
Fixes # (issue)
#141
Checklist: (Feel free to delete this section upon completion)
yarn run check:code
and all checks pass