J4L RCHART, User Guide

Copyright 2012, J4L Components (http://www.java4less.com)
Go bak to contents


RChart , first steps.

 

Installation of the demo application

As a first step we recommend you to have a look at the existing examples. The process for installing of the sample application is:


 

when you create your own application you have to include the library j4lchartlibrary.jar in your project.

 

Requirements

RChart will work with Android 4.0 or later. We have a version for older Android version, contact us in that case


Where to start

As starting point we recommend you not to create a chart from scratch but to take one of the examples we provide and start working by modifying it.

But first of all you must be aware that there are 2 ways to create a chart:

  1. either you create it using the Java API, creating the RChart java objects and setting the properties (see javadoc)
  2. or you create the chart by means of the ChartLoader. In this case you do not have to worry about the Java API. You just have to create a list of parameters and use the ChartLoader class to create the chart (see examples in directory sampleproject/assets).
We recommend you to use the second approach (using the ChartLoader) for the following reasons:

Nevertheless this guide provides both the parameter names and the equivalent Java class and property.

Format of the parameters

If you are going to create you chart by mean of the chart loader (instead of using the Java API), there are some parameters that have a special format: