tufanv Expert Licensed User Longtime User Mar 28, 2017 #1 Hello, Is it possible to implement a live chart like moving to right. I get live data to my app from my server and need to implement a live chart that draws every second. There is mpandroidcharts lib but it is for single draw i think and to draw it every second again will eat resources much. Thanks
Hello, Is it possible to implement a live chart like moving to right. I get live data to my app from my server and need to implement a live chart that draws every second. There is mpandroidcharts lib but it is for single draw i think and to draw it every second again will eat resources much. Thanks
S sorex Expert Licensed User Longtime User Mar 28, 2017 #2 sure. use a canvas of lets say 300px and when a new value is retrieved you move pixels 1-299 to 0-298 clear "row" 299 and draw you pixel or line. it's similar to this post where there is an example on how to do the copy (in B4J) > https://www.b4x.com/android/forum/threads/signal-spectrum.77571/page-2#post-492959 Upvote 0
sure. use a canvas of lets say 300px and when a new value is retrieved you move pixels 1-299 to 0-298 clear "row" 299 and draw you pixel or line. it's similar to this post where there is an example on how to do the copy (in B4J) > https://www.b4x.com/android/forum/threads/signal-spectrum.77571/page-2#post-492959
Mark Read Well-Known Member Licensed User Longtime User Mar 28, 2017 #3 I use the library from walterf25, here: https://www.b4x.com/android/forum/threads/graphview-library.34995/#content Upvote 0
I use the library from walterf25, here: https://www.b4x.com/android/forum/threads/graphview-library.34995/#content