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

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

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

[04.05.2017] TSM vs GAM [MSI 2017][Play-in][Ván 1]
How to Download and install Windows Movie Maker For Windows 8.1 / 7
MSI GTX1080 GAMING X 8G – Performance and Overclocking Review



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/

COMMENTS

WORDPRESS: 40
  • comment-avatar

    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

  • comment-avatar

    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.

  • comment-avatar

    Without voice how to understand the example…. fucker

  • comment-avatar

    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

  • comment-avatar

    the source code isn't available at the provided link. Can you provide the source code please.

  • comment-avatar

    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

  • comment-avatar

    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

  • comment-avatar

    Is this real time ? bullshit

  • comment-avatar

    Very helpful indeed, thanks. One question, is there a way to set the chart smaller? i.e. not full screen

  • comment-avatar

    How do I do if I want to graph negative values in the Yaxis=

  • comment-avatar

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

  • comment-avatar

    Can you update the code to new version of library? Current is 3.0.3

  • comment-avatar

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

  • comment-avatar

    Here is a repo with source code for anyone interested: https://github.com/tuttelikz/TestMP

  • comment-avatar

    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!

  • comment-avatar

    Btw, the video is not about real-time but rather dynamic data, right? 🙂

  • comment-avatar

    can we take user input for X and Y values? for the same line chart?

  • comment-avatar

    Sir can u make
    MP Chart
    Traffic interface?

  • comment-avatar

    Sir how to make it Data Connection Sensor

  • comment-avatar

    Hi. How can I modify the code so that the data is entered by the user?

  • comment-avatar

    hi, sir, i would like to ask how to pause and resume the graph?

  • comment-avatar

    Nice work ! May I get link to copy the source code ?

  • comment-avatar

    how to import to Android Eclipse? Thanks for the response

  • comment-avatar

    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.

  • comment-avatar

    could any body demonstrate how to use mpandroidchart library with visual studio 2015 ?

  • comment-avatar

    is there a way to link the datapoints (xy points of the dataset) with straight lines?

  • comment-avatar

    can i please have the code ? and can you tell me the exact dependencies code for this library?

  • comment-avatar
  • comment-avatar

    i don't know why when i write: " data.addXValue(" "); " it cannot resolve method

  • comment-avatar

    Look at my demo => https://github.com/JeasonWong/AndroidChart

  • comment-avatar

    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 🙂

  • comment-avatar

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

  • comment-avatar

    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.

  • comment-avatar

    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.

  • comment-avatar

    Can you share the project or java file you made for this video ?

  • comment-avatar

    How to remove the floating point values for yAxis lables, and How to get xAxis lable?

  • comment-avatar

    sir can you give me code

  • comment-avatar

    can i get the code please?

  • comment-avatar

    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

  • comment-avatar

    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

  • DISQUS: 0