I managed to solve your problem!
Check out this jsFiddle .
Try resizing the panels to see them in action.
Basically, you call a function that responds to window resizing:
$(window).resize(respondCanvas);
which initiates the selection of the width and height of the parent element that it is encapsulated, and then redraws the chart.
function respondCanvas() { c.attr('width', jQuery("#daily").width()); c.attr('height', jQuery("#daily").height());
You can customize all the tiny bits like your own identifiers, classes, width and height.
acudars
source share