Sign in to follow this  
Guest Basundhara Ghosal

hasRendered isn't a function

Recommended Posts

This FC blog article says that the new FC swf's will give me a bunch of javascript methods but I can't seem to get it to work. I've got the whole FusionCharts package downloaded, Version.txt says 3.1.

 

 

 

when I use

 

b = new FusionCharts("/FusionCharts/MSColumn2D.swf", "blah", 500, 500, "0", "1")

 

If I try to, for instance say:

 

b.hasRendered()

 

I get

 

TypeError: Result of expression 'b.hasRendered' [undefined] is not a function.

 

 

 

I don't seem to have any of the API methods, but setDataXML and setDataURL. What's going on? For now i've included my own hasRendered boolean var to the FC object but this isn't ideal. I mainly need the hasRendered() function. I'm updating multiple charts constantly through ajax and I need to know if they've rendered so I don't call render every time the data uploads. I can't remember but calling render every time seems to mess up a chart? Is that right? What does render really do?

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