Pre loader

Xamarin Chart with Legends

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 simple Xamarin Line Chart with a legend on it.

See tutorials on how to work with legends on Xamarin.iOS and legends on Xamarin.Android


There are many different configurations for the Legend control. The Legend displays the series names, colors and a checkbox which can be used to change visibility of the series. It is possible to change the legend orientation, to show/hide series markers or visibility checkboxes, as well as set the position of the legend in the chart. This example demonstrates how to create a simple Xamarin Line Chart with a legend to it.

The C#/Xamarin.iOS/Xamarin.Android source code for the Xamarin Chart with Legends 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).


LegendViewController.cs (Xamarin.iOS)
View source code
LegendChartFragment.cs (Xamarin.Android)
View source code
Back to Xamarin Chart Examples

Xamarin Chart Examples

2D Charts
3D Charts
Featured Apps