Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to plot real time sensor values in Graph in android?

I want to plot the graph of sensors value in android app.

Which library will be perfect for this ?

like image 807
pa1pal Avatar asked Mar 19 '15 18:03

pa1pal


1 Answers

There are a few different graphing libraries available for Android.

For my own app, I'm currently live-plotting sensor data using Android GraphView. It runs smoothly, and is quite customizable. The screenshots on the site look basic, but you can change it to fit your design.

I'm probably going to start using MPAndroidChart soon as well. It looks very good and is quite customizable, but I'm not sure if it supports live graphing like GraphView does.

Here's a list of other Android graphing libraries I found on Google: https://android-arsenal.com/tag/40

UPDATE: MPAndroidChart does support live graphing. I've moved to that, and would recommend it. It has good docs for newcomers.

UPDATE 2: MPAndroidChart does NOT support live graphing according to the official page:

MPAndroidChart is free software, as a result dynamic & realtime data is not officially supported.

like image 149
clay_to_n Avatar answered Oct 17 '22 23:10

clay_to_n