Sign in to follow this  
Pallav

Updating FI2_RT_Column using

Recommended Posts

Hi,

 

We have been using FusionCharts instrumentation suite. As a change we are removing use of "dataStreamURL=" and trying to update data using javascript function.

 

 

 

When i amtrying to update FI2_RT_Column type the values get displayed one over another. That is columns are getting compeletely overlapped.i Can only see single column which is updating with every ajax call.

 

Same logic works with updating FI2_RT_Line and FI2_RT_StkArea types.

 

 

 


function updateChartData(responsexml){

setValue("id", "&name="+currentTime+"&value="+value);



}



function getObject(objectName) {

	 if (navigator.appName.indexOf ("Microsoft") !=-1) {

		 return window[objectName]

	} else {

		 return document.embeds[objectName];

	}

}



	  function setValue(objFlash, intValue){

		    //This function sets the updated value of the chart.

		    //Get a reference to the movie

		    var FCObject=getObject(objFlash);

		    //Set the data

		    FCObject.SetVariable("_root.Value",intValue);

		    //Go to the required frame

		    FCObject.TGotoLabel("/", "NewDataHandler"); 

		}

Edited by Guest

Share this post


Link to post
Share on other sites

Thanks our client did the upgrade and now its working.

 

 

 

i have one more query

 


function setValue(objFlash, intValue){

       //This function sets the updated value of the chart.

       //Get a reference to the movie

       var FCObject=getObject(objFlash);

       FCObject.SetVariable("_root.bgColor","666666");

       FCObject.SetVariable("_root.baseFontColor","ddeeff");

       FCObject.SetVariable("_root.bgAlpha","100");

       //Go to the required frame

       FCObject.TGotoLabel("/", "NewDataHandler"); 

   }

 

 

 

i am trying this to change colors based on user switching theme but its not working?

 

Is it possible to do like this to a real time dynamiclly updating charts.

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