score:1

one way to handle this is as lars kotthoff told you can redraw the treemap.

for that first you should specify the width and height parameters as your graph containers width and height before that you should specify container width and height in percentage. and wrap the zoomable map drwing script inside a function (let's call it as zoomabletreemap())

then you should call the zoomabletreemap() function for the window resize event using javascript. before calling the javascript you should remove the old graph also.

$(window).resize(function () {
            var div = document.getelementbyid("my-svg-div"); //id of the div we are appending to the chart container to contain the svg
            div.parentnode.removechild(div);
            zoomabletreemap();
            });

here is the working example for the same i explained above


Related Query