GraphView (free graph component)

Quickly share your Android Code Snippets here...

GraphView (free graph component)

Postby arnodenhond » Mon Mar 30, 2009 7:49 pm

GraphView is a View subclass which allows you to easily create simple graphs.
The graph automatically scales according to the lowest and highest value.
Labels are displayed along the X and Y axes.

Get the source code here:

See GraphView in action! Download CashLog from the market for free.
GraphView in Line mode
GVLine.jpg (31.1 KiB) Viewed 2917 times
GraphView in Bar mode
GVBar.jpg (25.27 KiB) Viewed 2917 times
Last edited by arnodenhond on Sun Jun 05, 2011 7:25 pm, edited 1 time in total.
User avatar
Junior Developer
Junior Developer
Posts: 17
Joined: Mon Mar 30, 2009 7:14 pm
Location: netherlands


Re: GraphView (free graph component)

Postby sureshgandham » Mon Nov 01, 2010 3:08 pm

hi......could any body tell me how to create graph in android
whats the exact process
Once Poster
Once Poster
Posts: 1
Joined: Sun Oct 24, 2010 9:14 am
Location: hyderabad

Re: GraphView (free graph component)

Postby alpesh » Thu Nov 11, 2010 10:47 am

You will find above code

In code it creates a dynamic view like

float[] values = new float[] { 2.0f,1.5f, 2.5f, 1.0f , 3.0f };
String[] verlabels = new String[] { "great", "ok", "bad" };
String[] horlabels = new String[] { "today", "tomorrow", "next week", "next month" };

You can pass you own value on String array
Posts: 25
Joined: Wed Oct 06, 2010 6:22 am
Location: Ahmedabad - gujarat - india


Return to Code Snippets for Android

Who is online

Users browsing this forum: Google [Bot] and 3 guests