Chart for Xamarin.iOS: RangeBar Series
TKChartRangeBarSeries
are used to visualize data points as horizontal bars where the width of each bar denotes the difference between data point's low and high value. The code snippet below demonstrates how to create range bar series.
Configure clustering of range bar series
If you want to cluster multiple range bar series side by side, they should use a shared y-axis:
Configure visual appearance
If you want to customize the appearance of a range bar series, you should change its Style
properties.
You can change the fill and stroke in the following manner:
You can change the gap between the bars with the following code snippet:
If you need to limit the height of the bars you can set the series MaxBarHeight
and MinBarHeight
properties. These properties allow you to have required minimum and possible maximum height for your series.