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

Stacked Bar Chart Opacity of Some Colors #1769

Closed
Sethmr opened this issue Nov 2, 2016 · 0 comments
Closed

Stacked Bar Chart Opacity of Some Colors #1769

Sethmr opened this issue Nov 2, 2016 · 0 comments

Comments

@Sethmr
Copy link

Sethmr commented Nov 2, 2016

I had charts previously that had stacked bars with different alpha components like so:

set1.barSpace = 1000
set1.setColor(UIColor.lightBlueColor().colorWithAlphaComponent(0.8))

set2.barSpace = 1000
set2.setColor(UIColor.greenColor().colorWithAlphaComponent(0.8))

set3.barSpace = 1000
set3.setColor(UIColor.orangeColor().colorWithAlphaComponent(0.3))

data.groupSpace = 1300

I know this was a hacky method of stacking the bars but it worked. Now I want to do this again so that the bars that overlap blend into each other with their colors in Swift 3. Is there an option to do this? It seems like only the visible parts of the bars are drawn now. I don't want to overlap 3 charts because that seems really messy. If that is my only choice let me know. I switched from 3 sets to a single set. Maybe I should go back to 3 sets now that I am getting the hang of the new framework.

@Sethmr Sethmr closed this as completed Nov 2, 2016
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