For better frontend performance, we need to stop completely replacing the graph every time a filter changes, or the graph type changes. We should try and update the current nodes:
Also should handle whenever a user updates an event, or deletes an event, should likely not make a backend call, but instead should calculate and update the graph locally
For better frontend performance, we need to stop completely replacing the graph every time a filter changes, or the graph type changes. We should try and update the current nodes:
https://medium.com/ninjaconcept/interactive-dynamic-force-directed-graphs-with-d3-da720c6d7811