This is a migrated thread and some comments may be shown as answers.

SplineAreaSeries area fill for negative values

2 Answers 75 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Roei
Top achievements
Rank 1
Roei asked on 30 Aug 2018, 02:12 PM

Hi

1. I am using SplineAreaSeries to show a line with the area below fill in color.

When my Y values are negative the area filled above the line and not below (see attached image)

I'm aiming to get something which will look closer to this (desired.jpg).

2. Can i use a gradient color for the fill?

Thanks

Roei

 

 

 

2 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 04 Sep 2018, 01:31 PM
Hi Roei,

Currently, the area fill is done from the zero point and the design guideline you've attached isn't an option at this time. If you'd like to see this feature added to area-type series, please submit a Feature Request in the UI for Xamarin Feedback Portal. The development team uses that portal directly for new features and bug fixes.

Regarding the second part of your question, "Can I use a gradient for the fill", this is not available in the Xamarin.Forms API yet as not all the platforms support gradient fills. However, on iOS this is possible using TKLinearGradientFill. You can use a Xamarin Custom Renderer or Xamarin Platform Effect to access the native control's series.

Tutorials on creating Custom Renderers / Platform Effects are outside the scope of the Telerik Documentation, but you can get a head start here. I also recommend checking out the official examples, where we have a couple custom renderer and platform effects examples in use.

Regards,
Lance | Tech Support Engineer, Sr.
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Roei
Top achievements
Rank 1
answered on 05 Sep 2018, 11:24 AM

Thanks Lance for your reply though a bit disappointed that this feature is currently missing.

I'll fill a request hoping you'll add it soon

 

Thanks

 

Roei

Tags
Chart
Asked by
Roei
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Roei
Top achievements
Rank 1
Share this question
or