How to change the colour of currently selected bar in mendix native charts based on plotly?

0
I have implemented mendix native column charts in my application. They have a microflow as their datasource and also an on click microflow. How do i reflect in the UI, the currently selected bar from the bar chart? I want to either highlight it or change its colour.
asked
2 answers
0

HI pranav,

You cannot directly change or highlight a selected bar in a Mendix native Column Chart based on click selection. Mendix charts do not expose selection state or per-bar styling at runtime.

 

what you can do is

Show selection feedback outside the chart, instead of changing the bar color.

How:

  1. On bar click → your existing on-click microflow

  2. Store the clicked value/category in a helper object

  3. Show a Text / Card / Badge below or beside the chart:

 

 

answered
0

I agree with Jam Giram. In addition, I would suggest storing the clicked category or value in a helper/state object and showing a clear “Selected: X” text or badge below the chart. This way, even if the chart itself cannot visually highlight the bar, the user does not lose track of the selection, and the overall user experience remains clear.

answered