Highlighting Customers in Group Bar Chart Based on Filter

I’m building a group bar chart and want to add functionality where applying a variable as a filter will highlight the relevant customers in the chart instead of filtering them out. Specifically, I want the selected customers in the variable / filter to be highlighted in red.
Can anyone guide me on how to implement this?
image

try this:

@sowdenraymond Thanks for the suggestion. I tried implementing it, but my variable “customer” has more than 10 entries. Do you have any ideas on how to transform this data and then highlight the selected customers?

using business chart plugin and some js/ts

chrome-capture-2024-8-8

@yosiasz Thanks. Is there a way to achieve this without using a plugin?

Yes, modify your datasource query, so it will return some string, e.g. selected for selected timeseries (so it will be B - selected, not just B), then use overrides and use regexp .*selected.* to select timeseries, which will have different timeseries color.

well (remember stock bar chart is a plugin, it just so happens it is embedded with grafana as stock), not sure why but this is not working (using stock bar chart) probably could be done via dynamic query?

image

@yosiasz Could you please share the link to this business chart plugin or the JS script? I’ve tried implementing it, but it’s not working for me.