-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Pie Chart] New feature: added a badge widget in addition to title #443
Conversation
Hi dude, I am sorry for the delay. |
- Prepared sample file - Added typedef for title offsets map - GetTitleOffsetsFunction - PieChartPainter: added function to provide title offsets to parent - PieChartSectionData: added titleWidget param - PieChartSectionData: added conditions to title params & changed defaults to value - PieChart: added child widget to CustomPaint to render the title widgets
- PieChart: made default duration static - Added animation to title wigets in sample chart
- removed overwriting title if badge widget is set & allowed to display both - added parameter for badge widget offset posiiton: badgePositionPercentageOffset - Added doc comments to badge widget's variables & functions - PieChart: skipped badge widgets creation if null in section
…unctions Insert sample in PieChartPage
7b7a321
to
f7dde1d
Compare
Hey, thanks for the reponse 😄 |
@gmaggio Thanks for the PR. It is a huge contribution to my project also. I am waiting for the merge too. Looks like the conflicts are resolved. @imaNNeoFighT no pressure but you would make me happy too if you have time to test and possibly merge this :) |
I'm on it :) |
Hey @gmaggio. There is only one minor suggestion from me. Now we don't need the We can define a Text widget as a default value for the badge widget and show the index of each section inside it. |
Oh, I see you have used both of them at the same time. |
I think we can keep |
Hi @imaNNeoFighT. Thank you for the complement. I really appreciate you looking into my contribution. 😇
These are only my point of views, though. Let me know what you think. |
All of your points make sense, and we will have both. |
I needed a feature to add some kind of creative freedom in creating the title. So I added a way to add a widget to represent the title of the section. However, you can still have the default title as an option in addition to this widget. Having it as a widget also makes it intuitive to create and easy for novice programmers.
Main Changes:
value
_drawTexts
to_calculateOverlays
to better represent the various functionstypedef
for position offsets map:GetPositionOffsetsFunction