D3 v4 GANTT zoom x-axis

483 views
Skip to first unread message

Magnus Emmoth

unread,
Feb 15, 2017, 3:32:03 AM2/15/17
to d3-js
Hi,
I am trying to get a GANTT diagram zoomable in the x-axis using version 4 of d3.
It seems to be so easy with version 3, but I haven't been able make it work in v4 nor to find a good example with the latest version.


Here is the GANTT example that I have been basing the work on:

And here is my jsfiddle version of the above code. I am new to jsfiddle so I guess that's why I didn't get the buttons to work.

Here is a couple of d3 v3 GANTT that work.


How do I make the v4 GANTT zoomable in the x-axis?

Vlado Z

unread,
Feb 27, 2017, 12:33:28 PM2/27/17
to d3-js
I think you are searching for something like Zoom to Domain:

https://bl.ocks.org/mbostock/431a331294d2b5ddd33f947cf4c81319
https://bl.ocks.org/mbostock/4015254

if you could combine those two :)
Reply all
Reply to author
Forward
0 new messages