Category / Section
How to render the UniColorMapping in the SfTreeMap?
1 min read
The TreeMap leaf nodes can be colored by using the Color property that is specified in the UniColorMapping.
XAML
<syncfusion:SfTreeMap.LeafColorMapping> <syncfusion:UniColorMapping Color="Crimson"/> </syncfusion:SfTreeMap.LeafColorMapping>
Refer to the following online documentation link for more details on UniColorMapping:
https://help.syncfusion.com/winrt/treemap/colormapping#unicolormapping
Sample Location for UniColorMapping: UniColorMapping.zip
XAML
<syncfusion:SfTreeMap> . . . <syncfusion:SfTreeMap.LeafColorMapping> <syncfusion:UniColorMapping Color="Crimson"/> </syncfusion:SfTreeMap.LeafColorMapping> . . . </syncfusion:SfTreeMap>
The following screenshot displays UniColorMapping.
Figure 1: UniColorMapping