We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to draw SFLineSeries on SFStackingAreaSeries???

Thread ID:





118521 Mar 16,2015 12:08 PM UTC Mar 17,2015 10:24 AM UTC iOS 1
Tags: SfChart
Asked On March 16, 2015 12:08 PM UTC


I have drawn the Line series on Stacking area series as attached image..

But i want the Stacked area series to cover complete chart..

Is anyone knows how to do the same??

Thanx in Adv.

Karthikeyan V [Syncfusion]
Replied On March 17, 2015 10:24 AM UTC

Hi Chinmay,

Thank you for using Syncfusion products.

We have analyzed your requirement and it can be achieved by changing the series rendering order. Please find the code snippet in below.

Code snippet [Objective C]:

-(SFSeries *) chart:(SFChart *)chart seriesAtIndex:(NSInteger)index


if (index == 0) {

SFStackingAreaSeries * series = [[SFStackingAreaSeries alloc]init];

series.label = @"Precipitation";

return series;


else if (index == 1){

SFStackingAreaSeries * series = [[SFStackingAreaSeries alloc]init];

series.label = @"High";

return series;


SFLineSeries * series = [[SFLineSeries alloc]init];

series.label = @"Low";

return series;



Code snippet [Swift]:

func chart(chart: SFChart!, seriesAtIndex index: Int) -> SFSeries! {

if(index == 0){

var series : SFStackingAreaSeries = SFStackingAreaSeries();

series.label = "Precipitation";

return series;


else if(index == 1){

var series : SFStackingAreaSeries = SFStackingAreaSeries();

series.label = "High";

return series;



var series : SFLineSeries = SFLineSeries();

series.label= "Low";

return series;



We have prepared a sample that tried to meet your requirement. Please download the sample from the following location.

Sample : http://www.syncfusion.com/downloads/support/forum/118521/SeriesOrderingSample-334258389.zip

Note: We couldn’t find any attachment in your previous update, if we have misunderstood your requirement. Please provide us more information about your requirement. This would help us to proceed further

Please let us know, if the sample helps.


Karthikeyan V.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon