Using Chart View
There are several ways to use UIChartView in your iOS project, depending on whether you prefer to instantiate it through code or designer. If you only need to display a single chart view, you can use the built-in UIChartViewController(TViewModel) class, see the code example below.
As seen in the code above, presenting a chart view is as easy as a simple class declaration, without requiring any platform-specific implementation. This is made possible since the binding between the chart view control and the chart data source is established through the ImportBinding attribute. You can learn about configuring the chart data source later in this page.
The UIChartViewController provides a ChartView property which returns the instance of UIChartView that it manages. It also automatically register the ChartView as an identifier, allowing you to easily bind to the chart view in the binding provider. For more information about data binding in Crosslight, see Understanding Binding Providers.
For more information about Crosslight iOS control support for Xamarin iOS Designer, see Working with iOS Universal Storyboards.
Configuring Chart Source
At the heart of the Crosslight Charting is the Chart class which represents a lightweight, portable chart model which can be easily consumed in the ViewModel. The Chart object, further called chart source, include all possible settings that you can configure in a chart, including the data source, series, axis configuration, as well as layout and appearance settings.
With the chart source defined in the ViewModel, you can reuse the same chart configuration across multiple platforms. In the most basic configuration, you will simply need to define a Chart property in the ViewModel, add one or more series which have been populated with data, and configure the axis.
The following code example shows how to create a chart source with two column series, using numeric axis and category axis.
The following illustration shows the result of the column chart from the code above.
To see Crosslight Charting in action, please check out the comprehensive charting samples here: http://git.intersoftpt.com/projects/CROS-SUPP/repos/charting-sample/browse. The samples demonstrate each chart series and possible feature configuration, including chart appearance customization, palette settings, and several gorgeous reference samples.