Drawing on the Chart Area

4 posts, 0 answers
  1. Todd Gray
    Todd Gray avatar
    1 posts
    Member since:
    Mar 2010

    Posted 25 Mar 2010 Link to this post

    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
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 31 Mar 2010 Link to this post

    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.
  3. DevCraft banner
  4. Axel
    Axel avatar
    41 posts
    Member since:
    Jul 2009

    Posted 21 May 2010 Link to this post

    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
  5. Nikolay
    Admin
    Nikolay avatar
    385 posts

    Posted 26 May 2010 Link to this post

    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.
Back to Top