Is there any way to bind bar chart single bar color to datasource?
1 Answer, 1 is accepted
0
Victor
Telerik team
answered on 02 Mar 2012, 04:46 PM
Hello Alex,
Thanks for using our support.
Please clarify what kind of DataSource you are referring to.
When you have a bar series, each bar can be described by a point template. See for example how to create
an orange bar and a blue bar:
If you know how many bars you will have and if the order of the bars is consistent, you can set different templates for the different bars. Also you can use the PointTemplateSelector property and implement your custom logic (DataTemplateSelector class) for choosing the appropriate bar color.
Please write again if you need further assistance.
Kind regards,
Victor
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>