I must be missing something obvious. Turning to SO after a day of frustrated headbanging ;-) :
Given that I have created a time domain axis using
d3.svg.axis, how can I later modify the size of my axis by changing the range? (Keeping the domain but in effect changing the size of the resulting axis)
I have read and followed many different examples, but either they do not use a time scale, or just change the domain. The closest I got is http://bl.ocks.org/d3noob/7030f35b72de721622b8, but I can't seem to get the pattern from that example to work.
I have a codepen at http://codepen.io/anon/pen/MaZJYM The code is a bit funny since I have cut bits and pieces out of my code which is in an ES6 class, but it shows the problem exactly: Press the button. Nothing (Except a strange text anchor change??) happens when I change the range and re-run the axis calls as in the linked example.