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

Chart Series Colour

4 Answers 142 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 14 Oct 2011, 04:01 AM

How do you set the Chart Series Colour manually?

4 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 14 Oct 2011, 09:48 AM
Hi Tony,

You need to set color property for your series: 

series: [{ name: "value A", color: "red" }]

Regards,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tony
Top achievements
Rank 1
answered on 04 Jan 2012, 04:08 AM
Hi Hristo,

How does this apply to a Pie chart? We would like to be able to colour the separate pieces of the pie.

Regards,
Tony
0
Accepted
Hristo Germanov
Telerik team
answered on 04 Jan 2012, 10:03 AM
Hi,

You need to do:

data: [{
   value: 200,
   color: "red"
}, {
   value: 300,
   color: "green"
}]

All the best,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Tony
Top achievements
Rank 1
answered on 05 Jan 2012, 12:13 AM
Thanks Hristo, all working now.

Tony
Tags
Charts
Asked by
Tony
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Tony
Top achievements
Rank 1
Share this question
or