Relative Content

Tag Archive for iosswiftxcodechartsuikit

UIKit Custom Line Chart View with gradient mask below lines

I have creating a custom UIKit view that is a line chart view and I want to have the choice of adding a gradient color below the lines. I have this so far so I am very close but I don’t want the path to close at the bottom of the chart I want the line to just stop at the last data point. This is the code so far: