I am trying to create a pie chart in android whose input values are read from a text file. I have a problem in parsing the data and assigning it to the distribution series and setting the color for the pie chart. Any sample code for this would be of great help.
Thanks !
Please check code for achartEngine. i think your problem resolved using achartEngine. See the below link.
https://github.com/jondwillis/AChartEngine/tree/master/achartengine
You just check out how to use google chart from this below link
http://psychopyko.com/tutorial/how-to-use-google-charts/ and let me know whether it is useful or not.
Related
I am creating an app with a barChart/pieChart . and my idea is i want the user to input their data on the EditText Provided . and my problem is i dont know how to do that can anyone help me with this for my proj. thanks in advance
u can use mp chart library or achart engine library
https://github.com/PhilJay/MPAndroidChart https://github.com/ddanny/achartengine
this libraries r good for chart with animation
Use this library easy to use MpAndroidChart
a link
Try Google charts as well
a link very interactive and responsive
I'm looking library that allow to build bar charts with negative values like on picture below.
I tried already AndroidPlot(impossible to achieve this on version 0.6.0) and GraphView(look like impossible, actually i get same result as in AndroidPlot)
Greatly appreciate any help.
It is impossible via GraphView library but possible using AChartEngine library.
Can any one please tell me is it possible to display pie chart in our application.
Do we need to use any third party api. I want to display pie chart with click event to each slice in the chart.
May this can helps: GraphView
Is a library to create charts on Android. On the same page you can find code examples. Source code here
Other option is: achartengine
Related questions:
https://stackoverflow.com/questions/424752/any-good-graphing-packages-for-android
Hope it helps!
You can use AChartEngine for clickable pie charts.
An example showing this usage can be found here.
I am developing an app in which i am implementing Achart engine line chart. Everything is working fine. I want to set the chart title to two lines if it is big title. But there is no option given, to set it to two lines. How can i do that? Can any one of you help me?
I have never been in such situation but seeing you question I did some RnD on the Source code of the AChartEngine open source code.
And I found this two things :
1) in code where they set tile Line no 251
2) and XML file for the same
but there is nothing which can stop the TextView to be more than single line.
I am not enough capable that I file this as bug..
But As far as I understand You will have to figur out something else for you as there is no any other option using the library for this thing.
I want to add line chart in my application , which has two view 1st view is image 2nd view is line chart, i want to add x values dynamically chart has to grow after adding each x values.
please suggest some link or code.
I don't fully understand the issue of 2 views in the question. What should the image represent ? How is it related to the chart ?
As for rest (i.e. having a dynamic line chart) - I have successfully achieved that with the AndroidPlot library (http://androidplot.com/), and I think it might do the trick for you.
I use Jonas's GrapView lib to show charts. Take a look on this lib, it very simple and easy to use. He shows ho to use it with a lot of example.
Good Luck!