score:2

Accepted answer

the jsfiddle you point to in your question has this...

vis.append('svg:rect')
    .attr('width', w)
    .attr('height', h)
    .attr('fill', 'white');

this makes sure there's always something drawn no matter where you are. you need to adjust your code accordingly. you can make it opacity 0 if you don't like white and then you won't see it, but it does need to be there.


Related Query