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

Drawing on the Chart Area

3 Answers 108 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Todd Gray
Top achievements
Rank 1
Todd Gray asked on 25 Mar 2010, 08:44 PM
I have a need to draw "threshold" lines or shaded areas on the chart area (e.g. green shaded area from 0 to 75%, yellow from 75% to 90% and red above 90%).  I need these shaded areas to show behind the data series.  I can't seem to find anything in the demos or the documentation.  Before I spend too much more time chasing it around, I thought I'd post to the forums to see if there's a quick and easy answer.

Any hints or ideas would be greatly appreciated.

Todd

3 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 31 Mar 2010, 09:07 AM
Hi Todd Gray,

The feature you are probably looking for is called marked zones and is planned to be shipped with Q2. Unfortunately until then you will probably have to "hack" a solution with an area or range series for shading the chart.

Sincerely yours,
Vladimir Milev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Axel
Top achievements
Rank 2
answered on 21 May 2010, 02:49 PM
Hi

What do you mean by "range" series?. I am trying to accomplish this using area type. I however only have one bar on the chart ie. no XAxis scaling and want my area bar behind. Thats fine but how do I get my area series to appear accross the plotarea horizontally like a wide banner covering YAxis values 4 to 10 for example?

reg.
Axel
0
Nikolay
Telerik team
answered on 26 May 2010, 09:22 AM
Hi AxelGunn,

In order to create custom marked zones, you can customize your PlotArea using Range Series or Area Series. Perhaps the AreaSeries or StackedArea Series would be the most suitable for your scenario.

Covering the Y-Axis values from 4 to 10 can be achieved by creating two StackedArea series, the first one having values of 4 and the second one having values of 6 - being a StackedArea that would cover 4 to 10 - you could also use the #STSUM Format Expression, so that the Labels would be correct. After that hiding the first series in the following manner :

areaSeries1.Definition.Visibility = SeriesVisibility.Hidden;

This would leave only the second area series visible, which would be spanning across the PlotArea with values from 4 to 10.

Hope this would be helpful for you.

All the best,
Nikolay
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
Todd Gray
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Axel
Top achievements
Rank 2
Nikolay
Telerik team
Share this question
or