redraw graph when data is updated remotely