Column series overlaps the line series in chart

#1

Hi,

I am trying to render 2 column series with 1 line series but column series always goes over the line series…
I need to put line series on over the column series.

here is my code :

-(SChartSeries *)sChart:(ShinobiChart *)chart seriesAtIndex:(NSInteger)index
{
if (index == (self.lineArray.count-1))
{
SChartLineSeries *lineSeries = [[SChartLineSeries alloc] init];
lineSeries.style.pointStyle.showPoints=NO;
lineSeries.title = @" LTM Growth";
// lineSeries.title = [[self.lineArray objectAtIndex:index] objectForKey:@“title”];
lineSeries.style.lineWidth = [NSNumber numberWithFloat:2.0];
lineSeries.style.lineColor = [self colorAtIndex:index];
return lineSeries;
}
else
{
SChartColumnSeries *columnSeries = [[SChartColumnSeries alloc] init];
UIColor *color=[self colorAtIndex:index];
if (index == 0)
{
columnSeries.title = @“Exp EPS”;
}
else
{
columnSeries.title = @“Actual”;
}
columnSeries.style.showArea = YES;
columnSeries.style.lineColor=color;
columnSeries.style.showAreaWithGradient=NO;
columnSeries.style.areaColor=color;

    return columnSeries;
}

}

0 Likes