How to display particular bar from bar chart on click

I have a bar char with multiple values, I wanted to show only that bar which I clicked and rest should be either freezed or hide from the chart.

Hi,
Not sure what you mean with ‘freezed’ in this context, but to display only the bar you want, you can double click on its name in the legend. This should isolate the bar, and remove all other bars from the current display.

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online