Hi Dev,
Query 1: There is lot white space at the top of the treemap.
We have tried to replicate the reported issue at our end, but we are afraid that we are not able to reproduce the issue at our end. Default value of the TreeMap level header is white. So, it appears in white color. We suggest you set color for Header by using the HeaderStyle.
<tree:TreeMapFlatLevel.HeaderStyle>
<tree:Style Color= "Black"/>
</tree:TreeMapFlatLevel.HeaderStyle> |
Query 2: Inside the leaf, the display name is a long one, I want to insert a new line in it, so that the word "Growth" appears on the next line. Is this possible?
Data label cannot be splitted into two lines, you can use OverFlowMode property to hide, trim and wrap the label. Hence You can achieve your requirement by using the ItemTemplate property of TreeMap items and customize the label inside the TreeMap item. But the desaturation color was not applied to the leaf item due to the custom template applied to the TreeMap items. If you need different color in treemap item, you add property for each item in ViewModel. We have prepared the sample based on your requirement. Please find the sample link below.
Output Screenshot:
Regards,
Ramya.