Is it possible to animate the chart obtained from google chart api in android ? If so how can we do that ?
I don't think there is a native google chart api for android so no, it is not possible to animate the chart, the last time I used it, I had to generate the URL from java code and display it in a WebView. I think you need to use javascript for animation like this: animation charts for Android. Hope it helps
Related
I want to implement draggable line chart for android.
• This is exactly i want to
I have referred many charts library like mpandroid, android-plot, hz-graphview among all line charts are static.
P.S I'm not asking anyone to implement this all i need is guidelines or any open source library will be appreciated.
I would recommend you to start with trying out this sample from Android developers-site to get started with drawing in canvas if you haven't done so before. Then start to modify the sample to use onTouchEvent for dragging the objects, and take it from there.
Read more: Drag Shape On Canvas in android
It seems MPAndroidChart has dragging feature. Check it out. BTW I haven't tried it yet.
https://github.com/PhilJay/MPAndroidChart/blob/master/README.md
A library is now available with the same feature mentioned.
source
Achieved same functionality with this library with minor modification.
I'm looking to create a circle menu for markers in my app that uses Google maps.
I've found this online example of what I am trying to do:http://demo-ee.com/index.php/examples/view/circle-menu-for-marker-with-mx-google-maps-for-expressionengine#
The problem is that this is for google maps in a webview, I'm looking to do this on Android.
Does anyone know if this is possible to achieve with google maps for Android and if it is, how much work would be involved to do it?
Is it possible to rebuild this example code in java to use in an Android app?
thanks
I put this as an answer and not as a comment, but I don't think you can achieve the same.
First of all, on android you don't have the "hover" callback for maps, you can only use the onMarkerClick listener.
You could try to build a custom infowindow (there are a few tutorial online but never followed, so I can't give you a trusted one, you have to try :( ) and check if the iw can be placed around your item. Unfortunately on android there is a limited set of functionalities, but to be honest, I would explore a different UX for that (cards, dialogfragment or other).
Check how google maps behaves when clicking on a place (a view scrollable from bottom with details).
You can also think about using a toolbar/expandingtoolbar
I want to implement a feedback/rating chart in my android app.(it is like when you open the google play and check an app's feedback there is a colourful graph from users who had voted it) Can anyone help me how to start that? I appreciate any help you can provide.
Use MPAndroidChart, or another Chart library external to the default libraries. It's difficult to implement a bar graph or any sort of graph on Android; you'd have to make a listview, and it would have to be oriented horizontally.
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'm developing an android app and I need do implement a pie chart. I've searching for some alternatives but the APIs that I've found are a little limited in terms of animations and graph customization.
Does anyone knows the best way to implement a pie chart that can rotate when touched?
Thanks in advance.
I like Charts4j. You can use it to create a few kinds of pie charts. If you put the resulting drawables into a view you could probably figure out some way to interpret touch events to trigger rotate animation effects.