ObjC SChartLineSeriesStyle.lineColor won't work with showFill


Hey guys,

I’ve noticed an issue with setting custom colors on a SChartLineSeries that I can’t resolve.

This is the basic setup code, certainly nothing new in here;

SChartLineSeriesStyle *style = [SChartLineSeriesStyle new];

SChartLineSeries *lineSeries = [SChartLineSeries new];

[lineSeries setStyle:style];

Now say we want to have a line chart with a green line. Simple;

style.lineColor = [UIColor greenColor];
Let's add a fill to our line chart;
 style.showFill = YES;
Wait, the entire fill is blue (global tint color I suppose) and the green line is gone. 
Is there something I'm missing here?
Adding a gradient works as it is supposed to be;
style.areaColorLowGradient = [UIColor redColor];
style.fillWithGradient = YES;
However, our supposedly green line is still blue. 
I really have no idea what is going on here. Given that I haven't fiddled with the global tinting mechanism in any way, setting a line color and using a fill (gradient or not) should work, shouldn't it?
If you guys know what's going on here, please let me know!
Cheers, Max
Edit: Just checked the global tint color and no, it is not using the global tint color. Even more clueless now...


Hi Max,

Thanks for getting in touch!

We have a different lineColor property when you turn on a line series’ fill.

Try setting the “areaLineColor” property instead.

Let me know if you have any questions.

Kind regards,
Andrew Polkinghorn



Feeling so stupid right now…  :blush:

Thanks a lot Andrew!