Closed dihcar76 closed 8 years ago
Well a LineChart with optimal performance settings (no circles, no cubic) will render about 20.000 data points smoothly on an average device resulting in about 50ms draw time per refresh.
So as long as you have optimal performance settings and not more than ~4.000 data points (ratio 50:10ms vs 20:4k points) adding data should not lag.
Hi,
because I have got more values, I am trying to display only few neccessary set of values fitting the screen of the tablet (and so by deleting others outside the screen). Is there a way in a onChartGestureStart to get the offset in xaxis of the motion? thanks
2015-12-04 15:34 GMT+01:00 Philipp Jahoda notifications@github.com:
Well a LineChart with optimal performance settings (no circles, no cubic) will render about 20.000 data points smoothly on an average device resulting in about 50ms draw time per refresh.
So as long as you have optimal performance settings and not more than ~4.000 data points (ratio 50:10ms vs 20:4k points) it should render pretty smoothly.
— Reply to this email directly or view it on GitHub https://github.com/PhilJay/MPAndroidChart/issues/1245#issuecomment-161981174 .
hi,
have you got an idea on how can I do this to scroll after searching in databases for xvals interval? thanks
2015-12-05 22:45 GMT+01:00 Rachid Bougrine bougrinerachid@gmail.com:
Hi,
because I have got more values, I am trying to display only few neccessary set of values fitting the screen of the tablet (and so by deleting others outside the screen). Is there a way in a onChartGestureStart to get the offset in xaxis of the motion? thanks
2015-12-04 15:34 GMT+01:00 Philipp Jahoda notifications@github.com:
Well a LineChart with optimal performance settings (no circles, no cubic) will render about 20.000 data points smoothly on an average device resulting in about 50ms draw time per refresh.
So as long as you have optimal performance settings and not more than ~4.000 data points (ratio 50:10ms vs 20:4k points) it should render pretty smoothly.
— Reply to this email directly or view it on GitHub https://github.com/PhilJay/MPAndroidChart/issues/1245#issuecomment-161981174 .
Hello, I am trying to use MPAndroidChart library to create a realtime linechart, It takes a value every 10 millisecond, In a simple example it is very fluid but in my case it just doesn't work. Have you an idea ? I've got one: simply remove first element of data each time not to redraw all line chart. But I need to save it all another way in an ArrayList to redraw it again. Is it a simple way not to draw all chart? Here is what I am doing: