Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real-time Charts #263

Closed
AllenConquest opened this issue Aug 2, 2015 · 5 comments
Closed

Real-time Charts #263

AllenConquest opened this issue Aug 2, 2015 · 5 comments

Comments

@AllenConquest
Copy link

Is it possible to create a LineChart that is continuously updated as data is loaded every 5 seconds, with the chart smoothly scrolling to the left as new data points are plotted?

@ajaybhat1987
Copy link

Don't we have a sample for real time graphs in iOS which is similar to that used in Android Charts (RealtimeLineChartActivity)

@kscorpio
Copy link

but how to change the yaxis max value, and in project when i add point to line , it compress the line in x direction, so the point in view is become more and more, can it move to left dynamicly?

@pplavetzki
Copy link

Try removing the entry at the beginning of the dataset each time you add a new entry:

data.removeEntryByXIndex(0, dataSetIndex: 0)

This creates kind of a push and pop. Not sure this will meet your needs as this kinda makes the graph choppy.

@liuxuan30
Copy link
Member

Closing -- if you have updates, feel free to reopen it

@chris-gunawardena
Copy link
Contributor

Also self.lineChartView.setVisibleXRange(minXRange: CGFloat(1), maxXRange: CGFloat(50)) with
self.lineChartView.moveViewToX(CGFloat(i)) worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants