Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

Tree map functionality using 2 parameters

Hi,

I am trying to create a treemap with colorscale using Plotly charts in javascript. My requirement is to display the treemap using Margin value and should display colorscale using Sales value. Is it possible to show 2 different parameters in Treemap?

Example:

my value to show box is margin value whereas the scale on the plot shows the variations with sales values

(margin value and sales value exists in the same object)

I want to show like this
communityquestion