[BarChart ] Change clicked bar color

[BarChart ] Change clicked bar color

  

Hi,
I use the BarChart of Silk UI.
I tried to change bar color by setting the DataPoint's Color property.
I could change a normal bar color however I was unable to change the clicked bar color.
Could you please help me out?
Thank you.

Hello,

I assume you are using the BarChart from the Charts eSpace. The Clickable property allows you to configure an action that is triggered on click. One way is to rebuild you input data (update SourceDataPointList) and refresh the Chart with the clicked bar in a new colour.

Erik Brzozowski wrote:

Hello,

I assume you are using the BarChart from the Charts eSpace. The Clickable property allows you to configure an action that is triggered on click. One way is to rebuild you input data (update SourceDataPointList) and refresh the Chart with the clicked bar in a new colour.

Hello, 

Thank you for your reply.

I'm sorry.

I misunderstood about the clicked bar.

It is not clicked bar but hovered bar.

The bar was changed an unexpected color when I tapped it on iPhone.

However when I hovered the bar on the simulator of browser, a similar thing happened.
(It was changed back to the original color again when I quit hovering or clicking.)

I want to change color only when the bar is hovered.


Solution