The following example demonstrates how to colorize chart items using the ChartItemArgumentToColorKeyProvider class as a color information provider.
For this, create a ChartItemArgumentToColorKeyProvider object and assign it to the KeyValueColorizer.ColorItemKeyProvider property.
Then, create a few ColorizerColorTextItem objects with keys, which represent arguments of chart items, and add them to the colorizer via its KeyValueColorizer.AddItem method.