Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to colorize map shapes using the ShapeAttributeToColorKeyProvider class

$
0
0

The following example demonstrates how to colorize chart items using the ShapeAttributeToColorKeyProvider class as a color information provider for the colorizer.
To solve this task, create a ShapeAttributeToColorKeyProvider object. Specify the ShapeAttributeToColorKeyProvider.AttributeName property value as a shape argument name. Assign the object to the KeyValueColorizer.ColorItemKeyProvider property.

Then, add ColorizerColorTextItem objects with keys, which represent attributes of shapes, and add it to the colorizer via the KeyValueColorizer.AddItem method.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>