Android tutorial to learn how to create a real time line graph with MPAndroidChart.
► The complete source code of this tutorial is available on the SSaurel’s Blog :
MPAndroidChart is an open source graph library available on GitHub :
► Discover all the Android Apps offered by SSaurel Mobile Apps :
► Learn to create Android Apps step by step on the SSaurel’s Blog :
► Enter in the Bitcoin and cryptocurrency World :
Nguồn: https://fliptrazon.com
Xem thêm bài viết khác: https://fliptrazon.com/cong-nghe/
https://play.google.com/store/apps/details?id=com.khanapps.caloriecalculator
Hello, please download my new app and give me your presious feedback on this. Even suggessions are appreciated. Thank you
In their page:
MPAndroidChart is free software, as a result dynamic & realtime data is not officially supported.
So, is it possible to use this library to implement realtime graphs or not?
Thanks.
Without voice how to understand the example…. fucker
this video is only dynamic line chart right?
to make the line chart real time, do we need to delete entries ? or maybe you know how to maintain the line chart with many data sent to the chart continuously?
Thank you for the video
the source code isn't available at the provided link. Can you provide the source code please.
If anyone is searching for the implementation code of shown in the video , its on my github ,it does show the chart on a smaller layout . https://github.com/MarcoYcaza/RealTimeGraph
E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
2018-12-20 14:44:43.845 13649-26293/? E/AudioRecord: AudioFlinger could not create record track, status: -12
2018-12-20 14:44:43.851 13649-26293/? E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12.
2018-12-20 14:44:43.851 13649-26293/? E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
when i try to run this code i faced a problem at 12.29…..the logcat shows these error what can i do…anyone plesae tel me
Is this real time ? bullshit
Very helpful indeed, thanks. One question, is there a way to set the chart smaller? i.e. not full screen
How do I do if I want to graph negative values in the Yaxis=
Salut, avez-vous les nouvelles (2018) pour représenter les données série bluetooth (comme d'arduino)? J'ai vu votre réponse à Pattarawut, mais peut-être qu'il y a les nouvelles depuis 2016? Merci!!
Can you update the code to new version of library? Current is 3.0.3
I have problem with real time BarChart, could you help me with that? 😀 I'm trying to show FFT on this, and sometimes completly radomly I have errors for instance OutofBorder exception. I doubt that would be a problem with my data. I think there is a problem with library or I'm doing something wrong, and then I have such crashes :/
Here is a repo with source code for anyone interested: https://github.com/tuttelikz/TestMP
Guys, if anyone is using gradle to import MPAndroidChart library, it is important to put exactly same version of library that the author of video used: v2.0.9. Just this way "implementation 'com.github.PhilJay:MPAndroidChart:v2.0.9'". Otherwise there will be unexpected plotting issues. Good luck!
Btw, the video is not about real-time but rather dynamic data, right? 🙂
can we take user input for X and Y values? for the same line chart?
Sir can u make
MP Chart
Traffic interface?
Sir how to make it Data Connection Sensor
Hi. How can I modify the code so that the data is entered by the user?
hi, sir, i would like to ask how to pause and resume the graph?
Nice work ! May I get link to copy the source code ?
how to import to Android Eclipse? Thanks for the response
mChart.setHighlightEnabled(true);
getMenuInflater().inflate(R.menu.main, menu);
if (id == R.id.action_settings)
I'm using android studio,
I can not find menu and action_settings and setHighlightEnabled in the above statement.
Where should I add it?
The jar file mpandroidchartlibrary-2-1-6.jar.
could any body demonstrate how to use mpandroidchart library with visual studio 2015 ?
is there a way to link the datapoints (xy points of the dataset) with straight lines?
can i please have the code ? and can you tell me the exact dependencies code for this library?
Great Video
i don't know why when i write: " data.addXValue(" "); " it cannot resolve method
Look at my demo => https://github.com/JeasonWong/AndroidChart
Wpuld it be possible to post the source code link here? I want to use a MP Line Chart so much, but this dosn't work for me like this. I thank you so much, would also donate you something if you could upload it 🙂
My graph is just a small square in the top left corner. I followed your code exactly. Any ideas how to fix this problem?
My graph is too small. It occupies a small square shaped space in the top left. Is it something to do with layout? I did it exactly as you typed.
I'm asking for any help please. I want to make real time graph like this, but not random x value. Instead I want to receive analog value from microcontroller sent via bluetooth and plot it into line graph. Can anyone help how to do that please.
Can you share the project or java file you made for this video ?
How to remove the floating point values for yAxis lables, and How to get xAxis lable?
sir can you give me code
can i get the code please?
how can I get the XAxsis visible like the YAxsis here
I want to get values on the X Axis like date or time
can you help me please
Bonjour Mr.Sylvain.
Dans le cadre de mon PFE, j'ai besoin de créer 4 graphiques linéares temps réel dans une seule activité-une seule interface. Est ce que c'est possible avec les Fragments ? et Comment le faire?
Vraiment j'ai besoin de votre aide.
Merci d'avance