panda

Time To Render Chart

Recommended Posts

Guest Sashibhusan

How do I calculate time taken to render a fusion chart in div ?

 

Hi,

 

Using JavaScript object "Date()" you can get the current time using the code snippet below:

 

Ref. Code:

var d=new Date();
var currTime = d.getTime();

 

 

So, using the above code you can get the current time before creating the FusionCharts JavaScript Object instance and after the chart has rendered completely in the browser (by listening to the event "Rendered") and then calculate the time difference between this two to get the time consumed by FusionCharts to render in a DIV.

 

For more information on "FusionCharts JavaScript API - Events", please follow the link below:

http://docs.fusioncharts.com/charts/contents/?JavaScript/API/Events.html

 

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