-
-
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
A way to add data to chart data entries in real time ? #609
Comments
You maybe want to update your datasource for chartview. |
can you give me a quick sample ? in objective-c |
Can you describe want you want to achieve in details please? |
I have a line chart, |
Can you try [_chartView notifyDataSetChanged] every time new data comes? |
Alright ill take a look at that, I suppose I just change the chart.data then call that function ? |
I think that this function triggers redraw chart with data in arrays. So if you have new data, then new data will be in chart |
try search issues, there are some answers alerady, with some APIs, like addEntry, addDataSet, moveViewToX, etc. Setting data will trigger notifyDataSetChanged if not empty. Be aware that there might be performance drop if you add huge amount of values in a very short time. There is some people asked they will add many values in one second. |
@liuxuan30 does adding an entry, actually draw it on the chart? or do we need to call something to redraw? clarification: I do .addEntry(_) on my dataSet but nothing happens on the chart itself. When I force call notifyDataSetChanged(), the data is updated but it "blink". That means the data is reset |
Does iOS Charts work with real time data? I couldn't find the answer anywhere, I searched the git issues no mention of it.
The text was updated successfully, but these errors were encountered: