In this example, the bar chart visualizes GDP values for the G20 and colors data points according to which part of the world the country belongs.
Follow the steps below to show such a chart:
-
Add a BarSeries object to the ChartView.Series collection, and specify its Data property to bind the series to a data source.
-
Initialize the bar series' PointColorizer property with an object (ColorizerByRegion in this example) that implements the IIndexBasedCustomPointColorizer interface.