Thanks to my designer with great searching skills, I have to implement a pie chart in my android application like below.
I am using MPAndroidChart library for charts elsewhere in the app.
So far, I haven't written code for the chart since I can't see any setters for altering slice sizes in the documentation.
Can someone point to any resource where anything like this is achieved or if it is not possible to do it with out-of-the-box version of the library?
Thanks!
Does this kind of chart have a special name?
So basically the "value" is indicated not by the (angular) space the slices use like in a normal piechart, but by their height.
Currently it is not possible to create such a chart with MPAndroidChart by default. This would require significant modification of the library.
However, I am strongly considering to add such a feature in the future, because I really like the concept of this kind of chart.
Related
i want to make a diagram from some values in database. so what is the way to make and show a 2D or 3D diagram,Histogram or Line graph to user.
I would recommend MPAndroidChart. It is a fast and stable chart library which provides a lot of customization settings.
In my current project I discarded the graphview-library and moved to MPAndroidChart due to performance issues with graphview.
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)
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!!
I am trying to find the best charting library for my android app that receives live data from a data acquisition device (supports up to 800 samples per sec). I need to display a live, moving strip chart with some additional features like zooming in and out and tracing back the chart. I have looked at a few open source libraries like achartengine , afreechart, graphView but can't really seem to decide which one I should go with due to lack of enough examples and information. Any helpful links? Any recommendation?
I would suggest you try AChartEngine for your project. See this for some tutorials.
There is also another related thread on this.
I need to create a View that represents an x/y axis. I will read in 9 separate sets of (x,y) coordinates and will have 9 checkboxes, one for each set of data. When the user presses the check boxes the different waves will appear.
I have done research and found three possibilities: google charts, achartengine, and Canvas.
Does anyone have any ideas at what I could use for the simplest implementation of this?
I suggest you use AChartEngine rather than drawing to canvas.
You can download the library, javadocs and a demo application here.
The main advantage of using AChartEngine is that you won't need a data connection for rendering charts.
There are tutorials on youtube on getting started with AChartEngine. The library is free and open-source.