Creating a MarkedZone in standalone designer

2 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    1 posts
    Member since:
    Feb 2019

    Posted 19 Feb Link to this post

    Hello,

    I've created a horizontal bar chart, and the bars go left-to-right from 0-100%.

    I would like to display a fixed/static vertical line at 90%, so users can quickly see which lines are over/under 90%.

    The solution seems to be a MarkedZone as a single line (not rectangle).   Can you provide assistance on how to set these up in the designer?  I've navigated the properties of the chart as well as my series and cannot find references to MarkedZones.

    There is a thread from 2013 that said these aren't possible in the standalone tool, but that user wanted to bind the line to data.  My line is fixed at 90% of the 0-100% range.

    If the designer cannot do this at all, but it can be done with an additional series etc, let me know that too.

    *many* thanks for any advice you can offer.

    -j

  2. Neli
    Admin
    Neli avatar
    49 posts

    Posted 22 Feb Link to this post

    Hi Jeremy,

    What you need to do is to add LineSeries from the Graph Properties pane: click on the ellipses beside Series to open the GraphSeries Collection Editor- > Right click on Add -> LineSeries. If you want to set a specific color use the ColorPalette property of the Series. You also have to specify the following fields:

    • CoordinateSystem should be the same as the original (Bar) Series;
    • LineType -> Stepped. This is necessary in order the line to encompass the categories (Y-axis) entirely
    • Data/ SeriesGroup -> may be the same as the already existing static series Group
    • CategoryGroup -> should be the same as the one used for the original Series
    • X -> '=90'. This is the static value, i.e. the threshold where the line should be drawn.

    I have attached a report which demonstrates the proposed approach.

    Regards,

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