I use jquery
and d3.js
to draw a chart inside a message dialog.
How can I resize the d3.js
chart without redrawing the entire chart?
The current solution works but is really inefficient: http://jsfiddle.net/L6UGn/61/ I did not figure out how to update the width, height without redrawing the entire chart.
My idea was update the width and height of the svg
. Any idea how to approach it?
d3.select('#msg_dialog > svg') //.selectAll("g")
.attr('width', width)
.attr('height', height);