How to add newline custom hover data

custom hover data of list in which one of element value (text) is too long ,so i add put newline in between the sentence but at hover location point it is not showing the text value


dish name it is not showing text present in the hover data

Hi @Amrith,

Could you share how you are setting values in the customdata in your figure?
I have faced this issue earlier where I was passing the values to customdata as a list instead of an array. customdata expects an array where the dimensions should match the dimensions of the plotted data.