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

Line Chart single line multi color

2 Answers 209 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Luca
Top achievements
Rank 1
Iron
Luca asked on 15 Jan 2016, 10:30 PM

Hi,

 I'm trying to change the color of a line chart using the colorField attribute. As you can see in this example ( http://dojo.telerik.com/@lsemeraro/Ehaha ) the line color is always the same, but the tooltip color instead is correct. Do I have to set a different attribute or it's something that must be coded in the dataBound function?

 Thanks

Luca

2 Answers, 1 is accepted

Sort by
0
Luca
Top achievements
Rank 1
Iron
answered on 15 Jan 2016, 10:35 PM

http://dojo.telerik.com/@lsemeraro/Ehaha

just to make my question more clear as possible, I see that the point is actually using the color bound, what I'm looking for is to have the line from 5 to 1 red, 1 to 18 blue, 18 to 3 white, 3 to 15 green etc...

 

0
EZ
Top achievements
Rank 2
answered on 16 Jan 2016, 05:35 PM
see answer to this question: http://www.telerik.com/forums/line-change-color-in-group
Tags
Charts
Asked by
Luca
Top achievements
Rank 1
Iron
Answers by
Luca
Top achievements
Rank 1
Iron
EZ
Top achievements
Rank 2
Share this question
or