Pallav

DataStreamURL - Update on load?

Recommended Posts

I have a some graphs that I want to start with a blank slate. The problem is that since the data is initially 0 it takes whatever my refresh period is for the graphs to hit the stream url and update. Is there a way to get the graphs to hit the url once immediately at load time?

 

 

 

-Eric

Share this post


Link to post
Share on other sites

Alright. So, .... I have a web site which displays some CPU monitors, etc. The web page itself is generated dynamically through javascript and that is also where the XML files for the graphs get pushed into the graphs. The problem is that the javascript file has no idea what the "initial"/current value of the cpus is. I have set up a streaming data URL that has the CPU values on it, but I don't really want to hit those more than once a minute. So I set my data url and set my time to 60 seconds. The problem is that since I have no data and the update time is 60 seconds it takes 60 seconds for the graph to have any data on it. What I want it to do is to get the graph to actually get its first datapoint from the stream URL. Is this possible?

Share this post


Link to post
Share on other sites

Hi,

If you set the refresh interval as 60, the chart will get it's first data after 60 seconds only. If you need to add data before that, you can use the JavaScript API to push individual data to chart (provided, you've access to the data in your JavaScript code).

Share this post


Link to post
Share on other sites
Pallav (5/7/2007)
Hi,

 

 

 

If you set the refresh interval as 60, the chart will get it's first data after 60 seconds only. If you need to add data before that, you can use the JavaScript API to push individual data to chart (provided, you've access to the data in your JavaScript code).

 

 

 

Right, I realize that. But my point is that in this case I don't have access to the data from the JS, so it would be useful to have a way of initializing the graph with a dataStream.

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