How can I change the color of a particular range in historgram, without affecting other part of graph?

I want to change the color only for particular range in histogram.

Thereโ€™s no easy way to do that at the moment.

Iโ€™d recommend overlaying a separate trace to get two distinct colors.

But how can I implemented on plotly_click event.

Thank you for the solution. It it is working fine now.