on-internet
← Community

D3.JS time-series line chart with real-time data, panning and zooming

Stack Overflow ·

FIDDLE <<<< this has more up to date code than in the question. I am trying to create a real-time (live-updating) time-series chart in d3, that can also be panned (in X) and zoomed. Ideally the functionality that I want is if the the right-most part of the line is visible to the user, then when new data is added to the graph, it will pan sideways automatically to include the new data (without changing axis scales). My d3.json() requests should return JSON arrays that look like this : [{"timestamp":1399325270,"value":-0.0029460209892230222598710528},{"timestamp":1399325271,"value":-0.0029460209

Comments

Sign in or sign up to comment and upvote.

No comments yet.