You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see lots of issues and resolutions for realtime charts that use addEntry and notifyDataSetChanged and that is all fine and good.
What about updating the current last entry. Say I have a 30 minute bar with open,high,low, close.
If it is 10:15am I will be getting updated prices of that bar for the next 15 minutes and I do not want to add an entry until 10:30am when the new bar starts. What I want to do is check the current price that comes in, several times in a minute, and update the open,high,low, close of the 10:00am bar if necessary.
The text was updated successfully, but these errors were encountered:
So I was thinking that I could pop the last entry off then addEntry to add it back it with the new values then notifyDataSetChanged. Unless there is a better way than that?
you just get whatever data you want and simply re-create the data or just update your entry, and then refresh the chart.
If you take a look at draw() method, it simply render everything
I see lots of issues and resolutions for realtime charts that use addEntry and notifyDataSetChanged and that is all fine and good.
What about updating the current last entry. Say I have a 30 minute bar with open,high,low, close.
If it is 10:15am I will be getting updated prices of that bar for the next 15 minutes and I do not want to add an entry until 10:30am when the new bar starts. What I want to do is check the current price that comes in, several times in a minute, and update the open,high,low, close of the 10:00am bar if necessary.
The text was updated successfully, but these errors were encountered: