ok I made some progress on animated graphs, just dont fully understand how to reload the images properly