half pie chart in android - android

I want to make a half pie-chart, like the below image,
Is it possible in Android ?

n order to show different types of chart,you can use AchartEngine library available in Android or Google charts API here
Kindly refer to this link for more information.there are also several demos available on internet.
You need to do litle bit customisation according to your need. :)
You can ask if you have any furher queries!!

Related

Free chart library for creating lines, bar (stacked & grouped) and combined in Android

I have an application in which I need to create below types of charts:
Lines
Bar/Column (grouped and stacked)
Combined (lines and bar)
In addition, it will be good to have below features if possible:
Support
Package constantly updated (not out-dated)
Well documented
Easy to integrate
I have seen a lot of them:
Grap View
AChartEngine
Charts4j
afreechart
HelloCharts for android
Grap View
Looks like it is well-documented, it has support and it is updated constantly. Also easy to integrate but I do not see it supports creation of stacked and grouped bar charts... so it is not good for me. Could anyone confirm me if it is possible to create grouped and stacked bar charts with it?
AChartEngine
It seems like it has not support for grouped bar charts. It is out-dated (last version May 2013), and it does not explain how to integrate it. It seems well-documented and with support as it has a discussion group.
Could anyone confirm me if it supports grouped charts?
Charts4j
Well-documented, supports grouped and stacked bar charts. Also line charts but I am not sure if it supported combined graphs (bar with lines) so anyone can confirm me?
It is out-dated... last version comes from January 2011.
afreechart
A lot of chart types, including lines, grouped bar charts but.... it seems it has no support for stacked bar charts..... someone can confirm this? Out-dated as last version is April 2012. I cannot see an explanation on how to integrate it.
HelloCharts
It supports all the chart types I am searching for: lines, column/bar (grouped and stacked supported). Also it is possible to combine line with bar charts.
It explains briefly how to integrate it with different options and a quick guide on how to start using it. It seems easy to integrate.
From git it seems very updated. It has examples but I cannot see any API documentation or documentation of any other type or even a wiki page. Creating issues or make questions it is possible by creating in issue from its page.
Conclusion
Regarding to my needs, I think I am going to use HelloCharts but before doing this I would like to someone confirm me my doubts about the other packages and share opinions on what package is best for me to use according to my needs.
Have you looked into charting libraries for the web? You can add charts inside your android app by using a WebView and enabling javascript
setJavaScriptEnabled(true)
Theres quite a selection of charts in javascript:
d3js
ZingChart
chartjs
I personally use ZingChart; it has svg support for high pixel density devices and recognizes touch input. It's free with a watermark.
Have you checked MPAndroidChart by Mr. Jahoda? I have only checked it out briefly though. I've seen that it has quite a good wiki and very nice customizable features for design. Everything you mentioned that you needed are provided by it. (I'm quite doubtful about the stacked bar though. I haven't seen it in the examples)

Best charting tool used in android for representing data of your app

In my app, I have the following information which I want to display in the form of a graph.
Weight of a person.
Body temperature.
Date.
Now in my case, I want weight and body temperature on the y-axis parallel to each other and Date on the x-axis. So can anyone tell me which is the best android graph tool to do this? If possible with an example.
Regards
Anshuman
I have done quiet a research on this.If you are looking for drawing pie,histograms, bar or line graphs with 3D look I beliver ther is not such library available.You can use aichart for some 2D charts.Or final solution is you can start using the google Chart APIS , they are very good but they all are in web view and you need to have internet available on the phone/emulator.
There is a google group for achartengine, lots of good code is floating around there you can join it.
But I am afraid you will not get the 3D charting anywhere else.
if you thought of using the Adobe Flex (using AIR 3.1 or higher) you may get tremendous fullfillment of the requirement you are having in your head.You may get tempted to use it at once,but teh programming is in AS(Action Script)
have a look at the linked video, you will get teh idea of what I am talking about, but sadly you have to code in Action Script and not in Andorid PL.

which is the best and easy way to display stock graph in android?

I am developing stock app in which user can show stock detail and show stock graph.
i am using yahoo finance API to list and search stocks quote, now the i want to display there graph. i m searching since 2 day but didn't way to display dynamic data graph.
i have seen so many library but till i am not satisfied. because of all most library provide a way to display static data graph. in my task i want display graph with zooming facility as well as multi-touch support.
If any one can support me i really appreciate the person.
Thanks In Advance!
You have a few options:
http://www.achartengine.org/
http://code.google.com/p/chartdroid/
http://www.artfulbits.com/products/android/aiCharts.aspx (commercial)
http://code.google.com/apis/chart/ (online only)
The first one for sure has zoom capabilities. I don't know about multitouch, though.
The google API has some interaction built-in and you could take advantage that it runs in a WebView, so you can use its own zoom capabilities. Since your app is going to require a network connection anyway, it seems like a reasonable option.
AChartEngine does support multi-touch / pinch zoom.
You can add / remove data to / from your datasets and then call chartView.repaint() and you will get a dynamic behavior.
Regards,
Dan
SciChart for Android supports Candlestick charts, and will allow you to create real-time trading apps.
Check out the Android Candlestick Chart example or see the Android Stock Chart Features for more info.
Disclosure: I am the MD of the SciChart project, just so you know!

Candlestick charts component for android

I was looking for a candlestick lib chart solution for android, and couldnt find one for a couple of months now.
Im looking for a smooth scrolling, zomming, tooltip, option to polt in a new candle without the need to render the entire chart.
i did come across all the normal options for native code charting:
DriodCharts, AchartEngine, ChartDroid, none of which support candlesticks.
I also used 5 free Javascript and html solutions, all of which are very very slow, and most dont support adding a data tick after the chart has been plotted.
I have seen many free android applications with decent charts and have tried contacting the developers hoping they can at least point me to somewhere, or even sell their lib.
My question is does anyone here know of a native solution for candlesticks in android that supports what i mentioned?
Thanks,
Totem
I've the same problem as you. There is no library in android which directly support candlestick chart. There is no straightforward native solution for your ploblem but if requirement is to particular chart I sugest you to look after Google Chart API
There's no another way including open source solutions. If you want you can check this out CandleStick plot by ArtfulBits.
--EDITED--
Lately I wrote simple article how to draw CandleStick Chart in android with small help Google Chart API.
SciChart for Android supports candlestick charts, and brings an extremely fast, real-time charting control to the Android platform.
SciChart is a commercial control but available under royalty free distribution / per developer licensing. There is also free licensing available for educational use with some conditions.
Some useful links can be found below:
Android Candlestick Chart Example
SciChart's Android Charts Features
Android Chart Performance Tests vs. Open Source & Commercial
Disclosure: I am the MD of SciChart just so you know!
Not a free-of-charge product but you might be interested to see the TeeChart for Android Beta.
It includes a Candle Series and support for other financial series and indicators.
Also you can have a look at NChart3D. It is commercial, but comes with a full set of financial chart types.

How do I plot a STOCK historical graph in android app?

I wanted to plot a stock historical graph based on google finance in my android app .
The problem is I can't find the api for just the stock chart alone and I must try to find another ways to do it.
I thought of a way but don't know what whether it works
the steps are as follows..
1) get the details from csv file
2) read the csv file
3) plot the graph using the information of the csv file.(WHICH I DON'T KNOW HOW TO DO IT)!
so if my steps above works , I would only want to know how to plot the graph.
Use Charting Libraries like JFreeCharts, JOpenChart (google for more)
They include samples on how to use them...
Or You could use Google's Charting API's
Neither JFreeCharts nor JOpenChart has not been ported to Android (as far as I know) and will not work on an android as-is, not will any other awt/swing based api due to differences in their respective Canvases etc. You could try porting one yourself but its not as trivial as it sounds and you probably won't be happy with the results.
I suggest using a library written from the ground up for Android which has support for the kind of plot you need. I recommend AndroidPlot but there are others out there as well.

Categories

Resources