Skip to content
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

Change label position #29

Closed
tony123S opened this issue Feb 19, 2020 · 17 comments
Closed

Change label position #29

tony123S opened this issue Feb 19, 2020 · 17 comments

Comments

@tony123S
Copy link

tony123S commented Feb 19, 2020

The label now is displayed vertically. It is possible to displayed horizontally?

I want change the legend position to top, and displayed the label horizontally.

Thanks.

@apgapg
Copy link
Owner

apgapg commented Feb 26, 2020

You can switch off labels and can define your own widgets for legends

@tony123S
Copy link
Author

Is 3.1.1 is the latest? I paste pie_chart.dart to my project but get

Compiler message:
../../flutter_linux_v1.5.4-hotfix.2-stable.tar%20(1)/flutter/.pub-cache/hosted/pub.dartlang.org/pie_chart-3.1.1/lib/src/pie_chart.dart:152:15: Error: No named parameter with the name 'formatChartValues'.
formatChartValues: widget.formatChartValues
^^^^^^^^^^^^^^^^^

@apgapg
Copy link
Owner

apgapg commented Feb 26, 2020

Yes moving from 2.x.x to 3.x.x breaking changes in syntax were introduced. You have to make some minor changes if you want . to upgrade

@tony123S
Copy link
Author

Thanks for your reply.

I have modified pie_chart.dart and now I want to roll it back to the previous version. So I paste pie_chart.dart from github again, but get the error message.

I have checked the version in pub.yaml, it is 3.1.1.

@apgapg
Copy link
Owner

apgapg commented Feb 26, 2020

no just add pie_chart: 2.0.0 . The error will go away

@apgapg
Copy link
Owner

apgapg commented Feb 26, 2020

May be the code on master branch got break, just use above version

@tony123S
Copy link
Author

But if I downgrade the version, I can't use chartValueBackgroundColor ,legendPosition chartType....

@apgapg
Copy link
Owner

apgapg commented Feb 26, 2020

can you share a quick gist of code? Let me fix it quickly

@apgapg
Copy link
Owner

apgapg commented Feb 26, 2020

https://pub.dev/packages/pie_chart#-changelog-tab-
Try changing versions.
Sorry for inconvinice will fix it up asap and provide release

@tony123S
Copy link
Author

tony123S commented Feb 26, 2020

You know what are the issues? Do you still need me to share the code?

@apgapg
Copy link
Owner

apgapg commented Feb 26, 2020

Okay let me test it on my own and get back to you

@tony123S
Copy link
Author

Thanks

@apgapg
Copy link
Owner

apgapg commented Feb 26, 2020

You were copy pasting stuffs thats why you might have missed the function.
Paste both pie_chart and chart painter dart class

@apgapg
Copy link
Owner

apgapg commented Feb 26, 2020

v3.1.1 is working fine. No issues

@tony123S
Copy link
Author

Sorry for that. I'm so careless..

@apgapg
Copy link
Owner

apgapg commented Feb 26, 2020

Glad issue is resolved. Please close it if it works fine.
Thanks

@tony123S
Copy link
Author

Ok,thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants