Pre loader

Xamarin Stacked Bar Chart

Xamarin Chart - Examples

Please note! These examples are new to SciChart Mobile v3 release! SciChart iOS & Android ship with Xamarin.iOS and Xamarin.Android bindings around our native iOS & Android Chart controls, allowing you to create fast & feature rich charts to your Xamarin applications. We include ~90 native iOS examples and 90 Android examples, but now also ~60 Xamarin Chart Examples to help you get started with SciChart. You can download the source for our Xamarin Chart Examples from Github, or browse the source code below.

Download Examples

This example demonstrates how to create a Xamarin Stacked Bar Chart in code. A Stacked Bar chart is a Stacked Column chart rotated 90 degrees, so that the columns are rendered horizontally. In order to achieve this effect, we create a Stacked Column chart, then use the XAxis and YAxis alignment to rotate the chart. The columns can be stacked above each other, or side by side.

See Native iOS/Android Documentation on how to use this type here:

Do you need to change the width of a column? Try calling the setDataPointWidth() method for Android or use dataPointWidth propery in iOS with passing in any number from 0.0 to 1.0. This alters how much space a column takes up.

The C#/Xamarin.iOS/Xamarin.Android source code for the Xamarin Stacked Bar Chart example is included below (Scroll down!).

Did you know you can also view the source code from one of the following sources as well?

  1. Clone the SciChart.Xamarin.Examples from Github.
  2. Also, the SciChart for Xamarin Trial contains the full source code for the Xamarin chart examples (link below).


StackedBarChartViewController.cs (Xamarin.iOS)
View source code
StackedBarChartFragment.cs (Xamarin.Android)
View source code
Back to Xamarin Chart Examples

Xamarin Chart Examples

2D Charts
3D Charts
Featured Apps