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.