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

How to assign custom color to bar in bar chart.

1 Answer 139 Views
Chart
This is a migrated thread and some comments may be shown as answers.
vaibhav
Top achievements
Rank 1
vaibhav asked on 30 May 2017, 07:13 AM
Cannot change the fill color of the bar.

1 Answer, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 31 May 2017, 08:01 AM
Hi Vaibhav,

In order to change the color of the different bars, you can create a custom palette class which eventually should be set to the Palette property of the Chart instance. Please have a look at the following article from our documentation page - Custom Chart Palette.I have also attached a sample for your reference.

Regards,
Stefan Nenchev
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
vaibhav
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or