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

Individual Colors to Bars in HtmlChart

3 Answers 180 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Karl-Johan
Top achievements
Rank 1
Karl-Johan asked on 08 Aug 2012, 03:29 PM
Hi,

I want to assign individual colors to my barserie items depending on some conditions. Like this example for the RadChart control:
http://www.telerik.com/help/aspnet-ajax/chart-how-to-assign-individual-colors-to-bars.html 

Is this possible?

Best regards,
Karl

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 10 Aug 2012, 11:59 AM
Hello Karl,

I am sorry to say that for the time being this is not available in the RadHtmlChart. I am logging the idea in the PITS (the item is here) and if it accumulates enough votes we will consider its implementation.


Greetings,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Madhav Joshi
Top achievements
Rank 2
answered on 15 Nov 2012, 04:48 AM
Hi,
Is there any alternative to this ? I have used two series one is line series which shows the Goal Value and other is column.
I need to colour each bar (Red,Amber,Green) Depending on the values.

For eg : Goal value is 90 for all months say  from JAN to AUG and Bar values vary from JAN to AUG . So if Bar value is less than 90 than it shud be red, if its equal green or if greater than amber. Can you please suggest any solution for this ?


Thanks,
Madhav
0
Marin Bratanov
Telerik team
answered on 15 Nov 2012, 03:07 PM
Hi Madhav,

The idea behind a single series is that all items are colored the same way so they are easily distinguishable. This means that such a feature is not supported for the time being and what I can advise is the following:
- follow the PITS item to see when it is available: http://www.telerik.com/support/pits.aspx#/public/aspnet-ajax/12252
- create the items programmatically and add the ones above your threshold to a different series that has the desired color set instead of the default one. Note that this will leave a gap next to all items because there are two series. Thus you will have zero items for all items in the series where a column should not be shown.


Greetings,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (HTML5)
Asked by
Karl-Johan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Madhav Joshi
Top achievements
Rank 2
Share this question
or