Chart for Xamarin.iOS: Column Series
TKChartColumnSeries
are used to visualize data points as column blocks where the height of each bar denotes the magnitude of its value. The following snippet demonstrates how to manually populate one Column series:
Configure clustering of column series
If you want to cluster multiple column series side by side, they should use a shared x-axis:
Configure stacking of column series
The TKChartColumnSeries
can be combined by using different stack modes, such as Stack and Stack100.
The Stack plots the points on top of each other.
The Stack100 displays the value as percent.
Configure visual appearance of column series
If you want to customize the appearance of a column series, you should change its Style
properties.
You can change the fill and stroke in the following manner:
You can change the gap between columns with the GapLength
property.
GapLength value should be between 0 and 1, where a value of 0 means that a bar would take the entire space between two ticks, while a value of 1 means the bar will have zero width as all the space should appear as a gap.
If you need to limit the width of the columns you can set the series MaxColumnWidth
and MinColumnWidth
properties. These properties allow you to have required minimum and possible maximum width for your series.