shamasis

height property

Recommended Posts

I'd like to adjust the height of my chart and have it re-render based on the new height. I've put in code to adjust the height and the height changes, but when it re-renders it renders as if the height was still the original. Thus, I may change the height from 300 to 150 but the chart renders as if 300 so it is cut off at the 150.

Share this post


Link to post
Share on other sites

I had to make a mod to the DOM, but I finally made it work.

 

 

 

I added an event, OnGetHeight="MyHeightFunc" to the chart declaration.

 

 

 

Then added this to the DOM in method _FCD.processTag = function(a)

 

 

 

if ((b.ongetheight) && (b.ongetheight != ''))

 

{

 

var ongetheighteval = 'b.height =' + b.ongetheight;

 

eval(ongetheighteval);

 

}

 

 

 

MyHeightFunc varies depending which page I am on.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Mark,

We are glad that your issue is resolved.

Thanks for sharing the idea.

Happy FusionCharting. :)

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