Multi-coloured Line Graph Possible?

2 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    1 posts
    Member since:
    Jun 2011

    Posted 24 Jun 2011 Link to this post

    I know it's possible to have a custom fill for point marks based on a conditional:

    What I would like to is have the the line series change colour based on a conditional. So the portions of the line above a set value were one colour, and below that value another.

    For instance, every time my Y value got above 0, the line's colour would change to red. And when the Y value went below zero, the line colour would turn blue.

    Is this possible? The only way I thought of that might work is to draw annotation lines over top of portions of the line series.

    Thanks for your help.
  2. Evgenia
    Evgenia avatar
    1437 posts

    Posted 29 Jun 2011 Link to this post

    Hi Jeremy,

    You can not set custom Fill for the Line Series based on condition since the Line/Spline and etc. are drawn as whole visual element and you can not divide it into parts. As for your suggestion - to position Annotations over the Line - you may try this approach, but just have in mind that the Annotation should be added after the Series so that they will appear over them.

    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