Live-updating graphs using the d3 javascript library