Resize on Web and iPAD browser


« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Tony Murphy on 17th February 2013
Hi,

Is there an easy way to resize the graphs when the browser is re-sized and also when they are displayed on tablet devices such as iPADs and Androids?

cheers
Tony
Posted by RGraph support on 18th February 2013
Hi there,

There's no "built in" way, but you could add a window.onresize event listener that resizes the canvas when the window is resized. Make sure you set the HTML size attributes though - not the CSS styles. Then, since resizing the canvas will clear it, you will need to call

RGraph.Redraw();

Richard, RGraph support
RGraph - HTML5 and Javascript charts
www.rgraph.net

Add a reply

 




« Back to message list
RGraph on social media