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

Color of baritem.

1 Answer 12 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 15 Sep 2014, 02:17 PM
Hello!
I have a question about the Colour's of bars in my RadHtmlChart.

Is it possible to only one of the bars to a different colour?
I want one of  my bars to be a different colour depending on the name of the dataItem name. 

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 17 Sep 2014, 08:41 AM
Hi Simon,

It is possible to customize colors of bar items from a series. For a data bound chart you can use the ColorField property (see this online demo), while for a declaratively/programmatically created chart you can use the BackgroundColor property of the item.

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart (HTML5)
Asked by
Simon
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or