Individual Colors to Bars in HtmlChart

4 posts, 0 answers
  1. Karl-Johan
    Karl-Johan avatar
    1 posts
    Member since:
    Jun 2012

    Posted 08 Aug 2012 Link to this post

    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
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 10 Aug 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Madhav Joshi
    Madhav Joshi avatar
    19 posts
    Member since:
    Oct 2012

    Posted 14 Nov 2012 Link to this post

    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
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 15 Nov 2012 Link to this post

    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.
Back to Top