How to customize hoverinfo for bar chart

Found a solution on below thread: How to display 'variable' text in a hover template

Added hovertemplate: ‘%{x}
%{customdata}’,

Thank you.