Open samartsevigor opened 1 year ago
Is there a way you could provide a min reproducible example online (you can follow this doc) ?
@romfrancois
https://glitch.com/edit/#!/delightful-orange-domain https://delightful-orange-domain.glitch.me
I prepared a demo version and reproduced the error. I would like to see best practices for React, Angular, Vue, for updating orders and positions on the chart in the documentation. Would appreciate help with my problem. As you can see, the positions are duplicated instead of removing the previous lines and showing the new ones. As far as I understand, we can't just update, we need to delete the old ones and draw new ones.
Probably my implementation is too complex and everything can be done much simpler
The community is not active at all (
There is almost no information on the internet how to update lines with positions, maybe we should add an example to the documentation? This is a very capricious point.
I seem to be doing everything right, but why my lines are not deleted? The reference to the object does not change. But my behavior is that new lines are created but previous lines are not deleted. How to fix it and what is the reason? Maybe someone has an example of implementation?
My test function is called every 5 seconds and should clear the lines and draw again, but it doesn't ((
If I do it like this, the line removal works. I don't see anything on the screen. But why doesn't it work through Map? The reference to the object remains the same