Sign in to follow this  
Guest Basundhara Ghosal

Call .render after document resizing

Recommended Posts

I have a html page that contains several previously rendered charts.  If the user resizes the page I want to resize the charts.  I am able to get a handle to the chart object via getChartFromId, but when I try calling .render(containerid) on the chart object i get an "Object doesn't support this property or method" error.  Can you do the following?  ( I haven't shown the resizing code yet, I just want to get the call to .render working first

var

chartObj = getChartFromId(graph.id);

chartObj.render(graphContainer.id);

Thanks very much.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Please try the following steps to resize the chart with the resizing of the browser:-

1) Please render the chart on your browser page.

2) On browser resize please aplly the setDataXML() method by setting the "animation" attribute of the <chart> element to '0'.

Hope this helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this