carbon-charts icon indicating copy to clipboard operation
carbon-charts copied to clipboard

[Question]: Is it possible to sort the Treemap by value instead of group

Open nstuyvesant opened this issue 3 years ago • 0 comments

Contact Details

[email protected]

Question

Is it possible to sort a Treemap by value instead of group? I am using groups for the color.scale but want to sort the Treemap by the value instead of by group then by value.

For this example, it would mean the colors would be mixed throughout the Treemap but the biggest deals would always be on the left and smallest in the lower right. image

I didn't see any way to do this other than putting all the data in one group then overpowering the underlying rects to change their color.

nstuyvesant avatar Feb 10 '22 18:02 nstuyvesant