D3 Panning Chart with Dates
问题 I'm trying to get a multi-line date based chart to pan nicely across the X date axis and I simply cannot figure out what the problem is. I have the zoom behaviour set up in the code but it's just not performing as expected. If you click on a point in a line and scroll it appears to be scrolling the axis, if it click on the labels in the axis it also scrolls but the actual visualisation of data doesn't scroll. var zoom = d3.behavior.zoom() .x(x) .scaleExtent([1, 1]) .on("zoom", function () {