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

Multi-coloured Line Graph Possible?

1 Answer 73 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 24 Jun 2011, 10:55 PM
I know it's possible to have a custom fill for point marks based on a conditional:
http://www.telerik.com/help/silverlight/radchart-howto-set-custom-fill-for-pointmarks-depending-on-condition.html

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.

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 29 Jun 2011, 02:02 PM
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.

Greetings,
Evgenia
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
Jeremy
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or