Good afternoon. Sorry for the beginner doubt, but I wonder if it's possible to use the onresize javascript event to resize a div / container.
I'm using this code:
var resizeTimer;
window.onresize = function (event) {
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function () {
var s = d3.selectAll('g');
s = s.remove();
set_vars();
drawGraphic();
}, 100);
}
but it only resizes the content if I increase / decrease the browser window.
Thanks in advance!