ChartView for Xamarin.Android: Financial Series
The financial series are represented by the OhlcSeries and CandlestickSeries classes. They must be added to RadCartesianChartView and the chart must be configured with a CategoricalAxis and a NumericalAxis. Both financial series use OhlcDataPoint for data points internally and they only differ in the way they visualize the data point. OHLC stands for Open, High, Low and Close.
A more detailed explanation of an OHLC and a Candlestick chart can be found here and here respectively. To populate a financial series with data developers need to set five bindings in contrast with only two for a BarSeries for example. Like any categorical series both financial series need a category binding. In addition they need bindings for the financial components. These are an open binding, a high binding, a low binding and a close binding.
Example
To initialize a sample financial chart the following code can be used:
Here are also the OhlcData class and the GenerateOhlcData() method:
Finally, here's the result:
The OhlcSeries class is identical in terms of usage and initialization.
Customization
You can also customize the appearance of the financial series by using palettes.