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.