SplineAreaSeries area fill for negative values

3 posts, 0 answers
  1. Roei
    Roei avatar
    36 posts
    Member since:
    Feb 2011

    Posted 30 Aug 2018 Link to this post

    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. Lance | Manager Technical Support
    Admin
    Lance | Manager Technical Support avatar
    1195 posts

    Posted 04 Sep 2018 Link to this post

    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
  3. Roei
    Roei avatar
    36 posts
    Member since:
    Feb 2011

    Posted 05 Sep 2018 in reply to Lance | Manager Technical Support Link to this post

    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

Back to Top