ChartsOrg / ChartsOrg/Charts

Gradient transparency for line chart

Open
#2,435 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Hi there.
Is there any way to make chart gradient not transparent?
I have this code to set up a gradient now.
`let gradientColors = [UIColor.white.cgColor, UIColor.white.cgColor, chartColour.cgColor] as CFArray`
`let colorLocations:[CGFloat] = [1.0, 0.5, 0.0]`

And this is what I have:
![image](https://cloud.githubusercontent.com/assets/14094546/26004937/77430930-3705-11e7-9c3c-6907e6bc2959.png)
And here is what I really need:
![image](https://cloud.githubusercontent.com/assets/14094546/26004985/9ff0b350-3705-11e7-854b-c77aec6a9e99.png)

Is there any way to fix it? Thanks in advance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.