Can we show legends in a tree map

Hi everyone I tried to show a treemap in using Plotly, but I need to show legends for that as well

can anyone help with this