Category / Section
How to render the DesaturationColorMapping in the SfTreeMap?
1 min read
The TreeMap leaf nodes can be colored by using the Color property specified in the DesaturationColorMapping.
The RangeMinimum and RangeMaximum must be specified to determine the opacity for each leaf node. The opacity of lead nodes are in the range of From and To mentioned in DesaturationColorMapping.
XAML
<syncfusion:SfTreeMap.LeafColorMapping> <syncfusion:DesaturationColorMapping From="1" To="0.5" RangeMinimum="0" RangeMaximum="4" Color="DeepSkyBlue" /> </syncfusion:SfTreeMap.LeafColorMapping>
Refer to the following online documentation link for more details on DesaturationColorMapping.
http://help.syncfusion.com/UG/winrt/documents/desaturationcolormap.htm
Sample Location for DesaturationColorMapping
XAML
<syncfusion:SfTreeMap> . . . <syncfusion:SfTreeMap.LeafColorMapping> <syncfusion:DesaturationColorMapping From="1" To="0.5" RangeMinimum="0" RangeMaximum="4" Color="DeepSkyBlue" /> </syncfusion:SfTreeMap.LeafColorMapping> . . . </syncfusion:SfTreeMap>
The following screenshot displays DesaturationColorMapping.
Figure 1: DesaturationColorMapping