Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4android > Basic4android Getting started & Tutorials
Documentation Wiki Register Members List Windows Mobile Search Today's Posts Mark Forums Read

Basic4android Getting started & Tutorials Android development starts here. Please do not post questions in this sub-forum.

Android Charts Framework

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-15-2011, 04:12 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,792
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default Android Charts Framework

The purpose of this framework is to allow you to easily add different types of charts to your projects.
The current version supports pie charts, line charts and bar charts.

The framework is implemented as code modules. You are free to customize the code as needed.

I also recommend you to go over the code. It demonstrates several concepts including: usage of custom types, drawings, string measurements and region clipping.









The code module is attached as part of the example project.
Questions, comments and suggestions are welcomed.
Attached Files
File Type: zip Charts.zip (9.6 KB, 804 views)
Reply With Quote
  #2 (permalink)  
Old 03-16-2011, 03:36 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,792
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

First post was updated with a new version. This version adds support for line charts.
A line chart can show a single line or multiple lines.
Some notes about the line chart:
- The X axis values are treated as strings.
- The Y axis values are treated as numbers.
- The data is added by adding the next X point. For this point you need to supply the Y value in case of a single line, or an array of Y values in case of multiple lines.

The code in the first post demonstrates both a single line and multiple lines charts.

All the drawing code is included in the Charts module. You are free to customize it as needed.
Reply With Quote
  #3 (permalink)  
Old 03-17-2011, 04:29 PM
Junior Member
 
Join Date: Jan 2011
Posts: 82
Default

This is an amazingly powerful addition. Thank you.
Reply With Quote
  #4 (permalink)  
Old 03-18-2011, 12:50 AM
Junior Member
 
Join Date: May 2009
Posts: 26
Default

Absolut powerful framework thank you Erel you are the best.
Reply With Quote
  #5 (permalink)  
Old 03-18-2011, 05:48 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,792
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Thank you guys. Bars chart will also be added soon.
Reply With Quote
  #6 (permalink)  
Old 03-21-2011, 10:06 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,792
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Support for bar charts, including stacked bar charts was added. The updated code is attached to the first post. There were other fixes related to graph drawing as well.
Reply With Quote
  #7 (permalink)  
Old 06-23-2011, 10:18 AM
Newbie
 
Join Date: Jun 2011
Posts: 1
Default

i am unable to download code..
Reply With Quote
  #8 (permalink)  
Old 06-23-2011, 10:47 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,792
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Have you purchased Basic4android? If yes please contact support@basic4ppc.com and your account will be set.
Reply With Quote
  #9 (permalink)  
Old 08-01-2011, 07:42 PM
Newbie
 
Join Date: Aug 2011
Posts: 1
Default

Does it support dynamic data and multi-touch zooming and scrolling like androidplot JAVA API?
Reply With Quote
  #10 (permalink)  
Old 08-02-2011, 06:16 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 25,792
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

What do you mean with dynamic data?

Zooming and scrolling are not implemented in this module. It shouldn't be difficult to add scrolling yourself. Zooming is more difficult but is also possible.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Charts library Heinz Bugs & wishlist 3 01-31-2011 01:24 AM
Charts Library: LineChart.SetTransparentColor ? a6000000 Questions (Windows Mobile) 1 03-30-2010 02:47 PM
Loosing Colour in Charts robinathome Questions (Windows Mobile) 1 07-09-2009 08:57 AM
Aktien-Charts Filippo German Forum 21 11-11-2008 06:07 PM
Framework 2.0 dibesw Italian Forum 2 08-26-2008 02:14 PM


All times are GMT. The time now is 12:46 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0