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.
Syncfusion Feedback

Line Series with Area

Thread ID:

Created:

Updated:

Platform:

Replies:

127370 Nov 10,2016 01:05 PM UTC Nov 15,2016 05:59 AM UTC Xamarin.Forms 3
loading
Tags: SfChart
Stefaan Avonds
Asked On November 10, 2016 01:05 PM UTC

Hi everyone

First of all I'm very pleased with the controls Syncfusion has to offer. It's really great to use them and everything works just fine!

Second: I'm trying to create some sort of Line Series chart in combination with an Area Chart. So what I basically want is a Line Series in a specific color and the area underneath the Line another color.

Can this be done with a single series or do I have to add an Area Chart with the same ItemsSource as the Line Chart?

Sivaram Ganesan [Syncfusion]
Replied On November 11, 2016 12:16 PM UTC

Hi Stefaan,

Thank you for contacting Syncfusion support.

We could achieve your requirement of displaying Area series underneath Line series. It can be done by setting different color values for StrokeColor and Color properties of AreaSeries. We could increase width of Stroke by using StrokeWidth property of AreaSeries.

Please refer UG document for reference.

UG document Link
 
Code snippet :
 
SfChart chart = new SfChart();

chart.Series.Add(
new AreaSeries()
{
   Color = 
Color.Red
   StrokeWidth = 5,
   StrokeColor = Color.Blue
});
 

Please let us know if you need further assistance.


Regards,

Sivaram.G.


Stefaan Avonds
Replied On November 14, 2016 08:18 AM UTC

Hi

Yes indeed, this is exactly what I was looking for!
Also by altering the Opacity everything came up nice and smooth.

Many thanks!

Sivaram Ganesan [Syncfusion]
Replied On November 15, 2016 05:59 AM UTC

Hi Stefaan,

Most welcome.

Please let us know for further assistance on this.

Regards,
Sivaram.G.


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.

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

;