[Android] Learn how to create a real time line graph with MPAndroidChart

40
7



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/

40 COMMENTS

  1. 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

  2. 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.

  3. 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

  4. 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

  5. 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

  6. 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!!

  7. 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 :/

  8. 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!

  9. 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.

  10. 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 🙂

  11. My graph is just a small square in the top left corner. I followed your code exactly. Any ideas how to fix this problem?

  12. 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.

  13. 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.

  14. 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

  15. 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

LEAVE A REPLY

Please enter your comment!
Please enter your name here