TreeMapGradientColorizer Class
The colorizer that colors tree map items from the TreeMapGradientColorizer.StartColor to the TreeMapGradientColorizer.EndColor using a gradient.
Namespace: DevExpress.Xpf.TreeMap
Assembly: DevExpress.Xpf.TreeMap.v19.1.dll
Declaration
Remarks
For more information about colorizers, refer to the Colorizers topic.
Example
To color tree map items using the Gradient Colorizer, do the following.
- Assign a newly created
TreeMapGradientColorizer
object to the TreeMapControl.Colorizer property. - Specify the required gradient start and end colors using the TreeMapGradientColorizer.StartColor and TreeMapGradientColorizer.EndColor properties.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-color-tree-map-items-using-gradient-colorizer-t307515.
<dxtm:TreeMapControl.Colorizer>
<dxtm:TreeMapGradientColorizer
EndColor="#FFFF5A19"
StartColor="#FF6EC95C"/>
</dxtm:TreeMapControl.Colorizer>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TreeMapGradientColorizer class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.