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

How to set the text of a PiePlainTextLayer #36

Open
zas9vf opened this issue Dec 12, 2017 · 1 comment
Open

How to set the text of a PiePlainTextLayer #36

zas9vf opened this issue Dec 12, 2017 · 1 comment

Comments

@zas9vf
Copy link

zas9vf commented Dec 12, 2017

hey guys

I'm trying to add labels to my pie slices using chartView.layers = [PiePlainTextLayer(), PieLineTextLayer(), PieLineTextLayer()], however I'm not sure how to set the text for each layer for my corresponding three slices. These are the only properties I see for a PiePlainTextLayer:
screen shot 2017-12-12 at 11 46 44 am

Any thoughts?

Thanks

@zas9vf
Copy link
Author

zas9vf commented Dec 12, 2017

...also, how do I clear out a chart's layers so I can redraw the chart with new layers with new values? I tried chartView.layers.removeAll() after redrawing the chart with updated values but it didn't remove the old value labels

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

1 participant