drawing graph with svg TODO: animate updates