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.
Unfortunately, activation email could not send to your email. Please try again.

How to draw SFLineSeries on SFStackingAreaSeries???

Thread ID:

Created:

Updated:

Platform:

Replies:

118521 Mar 16,2015 08:08 AM Mar 17,2015 06:24 AM iOS 1
loading
Tags: SfChart
Chinmay
Asked On March 16, 2015 08:08 AM

Hi..

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 06:24 AM

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;

else{

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;

}

else{

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.

Thanks,

Karthikeyan V.



CONFIRMATION

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.

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.

;