Quick Start Guide


This is a brief introduction to using the ShinobiChart component with Xamarin.Android. We will take you through a series of simple steps introducing the key features of the charting library.

Important note. You will need to use the Indie edition (or higher) of Xamarin.Android. The free Starter edition will not allow you to reference libraries which reference native code.

Firstly we will look at getting a line chart onto a page and then follow on by looking at how to apply basic styling to the chart elements. The end result of this little tutorial will be a chart that looks something like this:

What we're aiming for

The guide assumes you have all your required android version SDKs installed. The SDK manager can be started from within Xamarin Studio (Tools > Open Android SDK Manager…)

For this guide we will assume that you are using Xamarin.Android with Xamarin Studio (see http://xamarin.com/android for more details). We recommend running the Quick Start project, and the other sample projects, on a physical Android device. This way you will be able to get a better feel of all the touch-based interactions. That said, it is possible to run the samples on the Android Emulator.

shinobicharts uses OpenGL ES2; support for this in the Android Emulator is currently experimental so be alert for incompatibilities and errors. Simply ticking the Use Host GPU box in the configuration of your Android Virtual Device may be all that is needed. More information is available on the Android Developer site: http://developer.android.com/tools/devices/emulator.html. In particular, the Configuring Graphics Acceleration and Configuring Virtual Machine Acceleration sections may provide some helpful guidance.

Next: Draw a Simple Chart >>