Charts: Highlight/change color of specific bar


I would like to highlight/change the color of a bar when a certain criterion is met.
Is there any way to do this?
I managed to get the selected bar ID but I don't know what to do then.
Any help is appreciated! :)


  • Hi Dillinger,

    Colors of chart bars are defined via its color property that can be either a template or a function. So you can initially color the bars according to item properties.

             return "green";
        else return "red";

    If you want to change item color on some event you should update the necessary item. Please, check the following code snippet

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion