[Working Code Oct 2019 ] Real Time Accelerometer Data Plot in Android using MPAndroidChart Library

preview_player
Показать описание
[Updated Oct 2019] Download full working code from the GitHub repository.

Watch the full video to understand the code. I have tested the GitHub code on 17 Oct, 2019 and updated the code and it is now working again. Please do not forget to like and subscribe to this channel.

Keywords:
MPAndroidChart Library Example
Using these libraries, drawing charts on Android could never be simpler. MPAndroidChart library works on Android API 8 and above, but if you are using animations, it works on API 11 and above. Animations is one of the greatest features apart from easy data input, this library could have. Some how I feel animations give good user experience to an application. Through MPAndroidChart library, we can use more than 25 inbuilt animations, also can define custom animations. When making charts on Android MPAndroidChart library which falls under the Apache 2.0 license, we can draw a:

Simple Bar Chart
Grouped Bar Chart
Horizontal Bar Chart
Simple Line Chart
Line Chart with Cubic Lines
Grouped Line Chart
Combined Line and Bar Chart
Pie Chart
Scatter Chart
Candlestick Chart
Radar Chart

******************************************
Please subscribe this channel to get live updates directly into your inbox whenever I upload a new video.

------------------------------------------------------------
Support us on KGPTalkie Facebook Page

************************************************
Please don't forget to LIKE this video and SUBSCRIBE this channel. Thanks for watching.

********************************************

mpandroidchart,
mpandroidchart real time,
mpandroidchart horizontal bar chart,
mpandroidchart animation,
mpandroidchart line chart tutorial,
mpandroidchart real time graph,
mpandroidchart sqlite,
mpandroidchart tutorial,
mpandroidchart line chart,
mpandroidchart android studio,
mpandroidchart barchart,
mpandroidchart android,
mpandroidchart android example,
mpandroidchart bar graph,
mpandroidchart bar chart labels,
mpandroidchart bar chart example,
mpandroidchart bar chart scroll,
mpandroidchart bar chart tutorial,
mpandroidchart candlestick chart,
mpandroidchart candlestick,
mpandroidchart chart example,
mpandroidchart dynamic data,
mpandroidchart date,
mpandroidchart date x axis,
mpandroidchart demo,
mpandroidchart database,
mpandroidchart example,
mpandroidchart example pie chart,
mpandroidchart example code,
mpandroidchart firebase,
mpandroidchart grouped bar chart,
mpandroidchart horizontal bar chart example,
mpandroidchart highlight,
mpandroidchart in android,
mpandroidchart json,
mpandroidchart live data,
mpandroidchart linedata,
mpandroidchart live chart,
mpandroidchart labels,
mpandroidchart linechart multiple dataset,
mpandroidchart multiple line chart example,
mpandroidchart multiple line chart,
mpandroidchart marker,
mpandroidchart multiple lines,
mpandroidchart onvalueselected,
mpandroidchart pie chart,
mpandroidchart pie chart tutorial,
mpandroidchart pie chart example,
mpandroidchart pie chart animation,
mpandroidchart real time chart,
mpandroidchart radar chart,
mpandroidchart real time example,
mpandroidchart scrollable,
mpandroidchart stacked bar chart,
mpandroidchart stacked bar chart example,
mpandroidchart tutorial better than android graphview,
mpandroidchart tutorial better than android graphview 3- linechart using mpandroid 1/3,
mpandroidchart tutorial android,
mpandroidchart time series,
mpandroidchart tutorial pie chart,
mpandroidchart time x axis,
mpandroidchart xaxis labels,
mpandroidchart xaxis label date,
mpandroidchart youtube,
mpandroidchart zoom,
mpandroidchart 2 lines
graphview,
graphview android,
graphview android studio,
graphview real time,
graphview bar graph,
graphview tutorial,
graphview real time example,
graphviewseries,
graphview java,
graphview example,
graphview swift,
graphview example in android,
graphview android download,
graphview in android,
graphview in android studio,
graphview library android,
graphview android tutorial,
graphview viewport,
graphview vs mpandroidchart,
graphview zoom
Рекомендации по теме
Комментарии
Автор

So with this idea, you just add values for ever, but that would stop the aplication due to no ram, so how can you delete the "trash data", the one that is not being showed?

Thanks

gerardjensenolmos
Автор

hello and thanks for Your great tutorials. ref 17:18 into video:if(set == null) The set parameter is not recognized. Is there another approach to check/create new set? Thank You and greetings from Norway

janeikeland
Автор

How to change the direction of the graph from left to right. Now the graph direction in the given example is right to left

KarjolGT
Автор

At what rate data ia plotted ..how many samples per second? Can we plot 8000 samples per second?

parulaggarwal
Автор

Do you happen to have the code in a repository ? I implemented your solution but is not working

razvanconstantinandrei
Автор

I HAD THE FOLLOWING ERROR
"More than one file was found with OS independent path
WITH THE TUTO, IF ANY ONE FACE IT FIX IT WITH:
putting the following in your gradle file as a temporary workaround while we fix the issue in alpha10:

android {
packagingOptions {
exclude
}
}

into the android build.gradle

the things should work properly.

akiradawe
Автор

What can I do if I want to use multiple line(2) on this chart?

해헤-ue
Автор

excellent tutorial, congratulations I have followed the video without audio but I didn´t have troubles with the final result. Maybe to the people, just try thread.start(); :)

luismanuelnietohinojosa
Автор

Very poor explanation feels like he is just typing the code and pasting.
And in between just trying to explain some common things

vinithanabar
Автор

Hello, thank you for the Tutorial. Can you do a tutorial showing how to do a real time bar chart plot?

alickcampbell
Автор

Hi! is there a way to starting ploting from left to right? thx

viviansouza
Автор

Can this be done in python for this app?

shuchismitabagchi
Автор

Hi . Can we do real time data for pie chart

kushal
Автор

Doesn't work for me. It continues to plot the first data, that doesn't vary at all.

hjedpej
Автор

hey please tell how to draw real time graph eg. y=sin(t) . the app should ask input from the user for which function the user wants to plot graph. i have been given this project. deadline is 7 days. please help

kartikaymahajan
Автор

It's not working for TYPE_LIGHT sensor.

yaoyangcai
Автор

This is an amazing but now I have a question that how i can store the accelerometer data in database.

naseemurrahman
Автор

not working thing you have two different code it make me confuse

何家華-lb
Автор

Thank you for posting this informational and interesting tutorial. I was excited to clone the project and run it. When cloning from GitHub with Android Studio 3.4 0 get the following errors. Have you tried cloning it and running it in Android Studio 3.4 0 with stock settings?

1. 14:15 Gradle sync failed: Operation timed out (Connection timed out) (1 m 15 s 287 ms)

2. 14:15 Error Loading Project: Cannot load 2 modules

Specifically, for error 2 above, two app.iml files are missing. Closing the project and re opening it does not generate these files as expected.

I am new to Android Studio and don't want to spend a lot of time on this. Any advice would be appreciated but not expected. Thanks again for your incredible tutorial.

Larry_Druhall
Автор

25:37 you should absolutely never make jump cuts in your video if you're gonna change or fix something.

cheddargt
visit shbcf.ru