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

Force ScatterAreaSeries to fill area toward negative Y value instead of around zero

2 Answers 19 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Prakit
Top achievements
Rank 1
Prakit asked on 22 May 2020, 07:35 AM

By default, ScatterAreaSeries / ScatterSplineAreaSeries seems to fill the area around Y = 0 axis (the blue).

I want ScatterAreaSeries / ScatterSplineAreaSeries to fill the area below the data point with negative Y value (the yellow area).

How can I achieve the yellow area with ScatterAreaSeries / ScatterSplineAreaSeries ?

Also, are there any Annotation / Series to fill the shape like yellow area?

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 26 May 2020, 05:52 AM

Hello Prakit,

To make the area series to star drawing from a value different than 0, set its OriginValue property. For example:

<telerik:ScatterSplineAreaSeries OriginValue="-50" />

To draw the yellow area from your picture you can use another ScatterAreaSeries.

I hope that helps.

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Prakit
Top achievements
Rank 1
answered on 28 May 2020, 03:54 AM

Hello Martin,

Thank you very much for your help.
Per your suggestion, I use another ScatterAreaSeries with some addition data points to draw the yellow area.
It works perfectly!

Anyway, I want to point out that OriginValue property is not found in UWP chart (although it exists on WPF from your link).

Regards,
Prakit

Tags
Chart
Asked by
Prakit
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Prakit
Top achievements
Rank 1
Share this question
or