-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
How to add new real-time data to lineChart ? #2773
Comments
here is an example if it can help you |
@thierryH91200 Thanks man, but I think you misunderstand me, I already had a drawn chart, but in separate view I need to get the data with JSON parsing.
after I wrote this snippet from your code, I didn't get the line chart. this is my code after the parsing succeeded :
|
it should be better
|
Didn't work, I think it would be from one of the attributes of the chartView.
Could you please take a look and tell if you see anything wrong ? |
chartDataEntries is empty ??? => put chartView.data = lineData to the end
|
I put these at the end of
and about your question here: I'll fill
The same, didn't draw anything, but I have a question here to where should I put
with this lines
but the same, nothing happened :( |
<=== chartDataEntries is empty No data
|
Thanks a lot, I appreciate everything you did write to help me, but the problem was from my JSON data: (x = the past 24 hours from this hour)
as you notice the x property wasn't ordered ascending, this made the line chart go crazy. |
I have changed the date to integer then resort |
this will be a good thread for people asking real time chart. Thanks @thierryH91200 ! |
Here my code to update the chart, but there's nothing happened :(
The text was updated successfully, but these errors were encountered: