user3576305
user3576305

Reputation: 55

GraphView Realtime graphing tends to be messy

I am using GraphView in android to plot realtime data. The problem with this is a lot of values are generated. So, the entire application tends to get really really slow. Is there any way I could clear the data/values that are not in the viewport? I don't really need the past values as I won't be allowing the user to scroll manually.

Upvotes: 1

Views: 1026

Answers (1)

appsthatmatter
appsthatmatter

Reputation: 6417

Parameters:

value - the new data to append
scrollToEnd - true => graphview will scroll to the end (maxX)
maxDataCount - if max data count is reached, the oldest data value will be lost

Upvotes: 2

Related Questions