Android Essence Chart Library support various Chart Types. Anyone can easily create 2D/3D chart by using Essence Chart Library.
- Essence Chart Library support various Chart Types. You can find chart types in Supporting Various Chart Types Article.
- Essence Chart Library is very tiny.
Android Essence Library is only 3MB. - Essence Chart Library support Multi-platform.
Currently support Android and Windows. iOS will be supported ASAP. - Essence Chart Library is Free
Essence Chart Library follow MIT License(some exception is). Please refer Android Essence Chart License.
Install Essence Chart SDK
First of all, Essence Chart SDK must be installed. You can download install file in Android Essence Chart SDK Download Article.
Getting Started - Step 1(Chart Creation)
Android Essence Chart Library provide JAR(Java Archive) can be used in Android system.Support follwing
- SDK Install Application
- Android JAR
- Support Device : armebai-v7 (armebai is not support)
- SDK Sample(Demo) APP
- Minimum SDK Version : Android 2.3.3(API 10)
- Tested Device
- Samsung Galaxy S2(Android 4.1.2, Jellybean and above)
- Samsung Galaxy S3(Android 4.1.2, Jellybean and above)
- Samsung Galaxy Note 10.1(Android 4.1.2, Jellybean and above)
- LG Optimus G Pro(Android 4.1.2, Jellybean and above)
- Google Nexus7(Android 4.2.2, Jellybean and above)
- Google Nexus10(Android 4.2.2, Jellybean and above)
- Some Device will not work correctly
- Support armebai-v7
- Do not support all Android OS version
Pre-requisite
- Eclipse Installation
- This tutorial require Eclipse Classic 3.7.2.
- You can use another version(upper) of Eclipse. But you muse consider that some difference
- Eclipse Classic 3.7.2 Download
- For more detail information of Eclipse Installation, Please visit official Eclipse homepage http://www.eclipse.org/
- Android SDK Installation
- This tutorial require Android SDK.
- You can download Android SDK in Android Developer Site
- For more detail information of Android SDK Installation, Please visit official Android Developer homepage http://developer.android.com/sdk/index.html
- Android Essence Chart SDK Installation
- This tutorial require Essence Chart SDK.
- To download, Refer Android Essence Chart SDK Install
Create Android App
Run eclipse.
Select File –> New –> Other in Eclipse.
Select Android –> Android Application Project and Select “Next” button.
Input and Select to controls like following (refer to following picture):
Application Name: Chart
Project Name: Chart
Package Name: com.essence.chart
Minimum Required SDK: API 9: Android 2.3(Gingerbread)
Select “Next” Button.
Check Create custom launcher icon, Create activity, Create Project in Workspace.
Select ”Next” Button.
Use default value.
Select ”Next” Button.
Check 'Create Active' and Select 'BlankActivity'.
Select ”Next” Button.
Input value like following: (Use default value)
Activity Name: MainActivity
Layout Name: activity_main
Select 'Finish' Button.
Copy Essence Chart Library files to current project
Copy JAR file and library directory to current project.Run Explorer and move to installed Essence Chart SDK directory.
Default Install path is:
- Window 32bit : C:\Program Files\Essence Chart SDK\sdk\android
- Window 64bit : C:\Program Files (x86)\Essence Chart SDK\sdk\android
Copy 'armebai-v7a' Directory and 'essence.chart.0.7.6.jar' file.
Paste copied file to libs folder of Chart Project in Eclipse.
When copying finished, verify copied 'armebai-v7a' directory and 'essence.chart.0.7.6.jar' file in libs directory.
Adding Chart to Layout
Select res/layout/activity_main.xml file in Eclipse.
(activity_main.xml is specified file when create this project)
Select 'activity_main.xml' tab.
Modify xml in TextView element.
Before
|
After
| |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:text="@string/hello_world" /> </RelativeLayout> | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > <com.essence.chart.Chart android:id="@+id/chart01" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </RelativeLayout> | |
Save and Select 'Project->Clean' and Select 'Clear all Projects' in Clean dialog.
Select 'OK'.
Run Chart App
In Run As Dialog, Select 'Android Application' and Select 'OK'.
If the project was build successfully, 'Android Device Chooser' Dialog will be opened.
In Android Device Chooser Dialog, Select device which connected and Select 'OK'.
Following pictures show Chart App is running.
- Samsung Galaxy S2
- Samsung Galaxy Note 10.1
- Google Nexus7
Hi, I'm an Android developer from Spain and I've found the library you've developed. You've done a great job!! It's the most complete and powerful graphic library I've found.
답글삭제I'm learning to use your library with your example, but I've found an issue that it's not in your example. Is there any way to show in the Pie graphic type a label on each slice showing the percentage of the slice or the text shown in the leyend?
Thanks in advance for your answer.
Im Petry
답글삭제view image
http://www.uppic.org/image-7B5B_5298134C.jpg