Area color below line


#1

Hi Guys,

I’m trying to color fill an area below an line but It seems it doesn’t cover the area below it only covers the area where the minimum point is plotted. I’ve tried this line of code as stated in the user guide. I want to cover all the area below.

lineSeries.style.showFill = YES;
lineSeries.style.areaColor = color;
lineSeries.style.areaColorLowGradient = color;

Your help would much be appreciated.

Thanks,


#2

I had this same issue and got the answer here: http://www.shinobicontrols.com/forum/shinobicontrols/2013/5/gradient-under-line-series-does-not-extend-all-the-way-down-to-the-x-axis/

Basically, you need to set the series baseline to zero: lineSeries.baseline = @0;

I have that in the -(SChartSeries *)sChart:(ShinobiChart *)chart seriesAtIndex:(int)index method.


#3

Thanks for this helpful update. This works like a charm. Cheers,