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

Gradient? #23

Open
FouadAstitou opened this issue Jul 10, 2017 · 5 comments
Open

Gradient? #23

FouadAstitou opened this issue Jul 10, 2017 · 5 comments

Comments

@FouadAstitou
Copy link

Hello,
Is it possible to add a gradient to a slice in stead of a color?
If yes, can you please point out where i can do that.

Thanks in advance.

@ivnsch
Copy link
Owner

ivnsch commented Jul 14, 2017

Not possible at the moment! Feel free to add this functionality to the library, happy to review a pull request.

@FouadAstitou
Copy link
Author

FouadAstitou commented Jul 19, 2017 via email

@wfgilman
Copy link

wfgilman commented Nov 9, 2017

@FouadAstitou any chance of sharing your solution?

@m-irfan
Copy link

m-irfan commented Jan 8, 2018

any solution yet?

@ryanbliss
Copy link

ryanbliss commented Jan 25, 2018

I made a forked solution that is hardly elegant and definitely not perfect, but it works. Here is my fork: https://github.com/ryanbliss/PieCharts. Basically when creating the PieSliceModel, you initialize it with the following:

chartView.models = [PieSliceModel(value: 100.0, color1: UIColor.fromHex(hexString: "66C0D8"), color2: UIColor.fromHex(hexString: "A77FDB"))]

Here is what my output looks like:

fullsizeoutput_19ec

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

5 participants