Bulb not updating in real time.
Posted 02 April 2009 - 04:06 AM
We're currently evaluation the Fusionwidgets and although I have all the other charts working in real time no matter what I do I cannot get Bulb updating in realtime, it always sticks with the initial value, here is the config that I am using:
<title>FusionWidgets Chart Gallery - Real-Time Line Chart</title>
<link rel='stylesheet' href='Contents/Styles.css' />
<div id="chartdiv13" align="center" class="text">
FusionWidgets needs Adobe Flash Player to run. If you're unable to see the chart here, it means that your browser does not seem to have the Flash Player Installed. You can downloaded it <a href="http://www.adobe.com/products/flashplayer/" target="_blank"><u>here</u></a> for free.
var myChart13 = new FusionCharts("Charts/Bulb.swf", "myChartId13", "100", "100", "0", "0");
<chart bgColor="C4D283, FFFFFF" decimalPrecision="0" numberSuffix="%25" lowerLimit="0" upperLimit="100" dataStreamURL="DataProviders/Bulb.asp" refreshInterval="4">
<color minValue="0" maxValue="50" name="Normal" code="8BBA00"/>
<color minValue="50" maxValue="75" name="Warning" code="F6BD0F"/>
<color minValue="75" maxValue="100" name="Danger" code="FF654F"/>
Content of Bulb.asp:
When I load the page the bulb stays at 52%.
Can you tell me if I'm doing anything wrong?
I have checked from the webserver and all the file permissions are correct, I have even tried using the HTML & XML from your site and this does not apear to work either.
When I run this on a page with other real time charts, all the other charts are updating at the correct intervals.
Posted 02 April 2009 - 06:09 AM
Welcome to the forum.
We checked your code at our lab, it is just fine. Therefore, the problem might be lying in the source of the data, that is, Bulb.asp .
Could you please send us the code being used in the same? Thank you.
Posted 02 April 2009 - 07:54 AM
$ cat Bulb.asp
I am using the same method to input the data as 12 other charts on the same page which all work. I event pointed the URL at your 'demo bulb souirce' from your website and this didn't work either.
Could there be a problem just with the evaluation version?
Posted 02 April 2009 - 08:01 AM
I get the value:
So that is fine......
We're looking at purchasing a license iminantly this is the only outstanding issue.
Posted 02 April 2009 - 09:39 AM
Thank you for your keen interest in FusionWidgets.
As regards the issue at hand, could you please try adding a cache-killing query string to the chart URL, and try again?
The format would be as follows:
Bulb.swf?noCache=(milliseconds passed since midnight)
The problem might be due to cache-related issues.
To stop caching, we need to pass unique values to the query string. To do this, milliseconds past since midnight is a preferable solution because it effectively generates a new number every time.
You will be able to get this value from standard date/time objects or functions provided by any server side or client side scripting languages.
I look forward to your reply.
Posted 03 April 2009 - 01:54 AM
As advised, please note that the Bulb.asp file is actually just a text file, let me change the filename to Bulb.txt so there is no confusion. In the file Bulb.txt there is just the contents:
No script generates this value. I have another 12 of these "DataProviders" which work fine for other chart types.
Posted 03 April 2009 - 01:41 AM
could you please chekc the ASP file once.
You would need to generate the value from the ASP.
response.write "&value=" & (int(Rnd()*100))
I code, therefore I am.
Posted 14 April 2009 - 05:32 AM
Did you try the same data provider source file for all charts so that we can locate the issue specifically ?
We have tested the same data provider as you have specified but all worked fine in our labs.
Please also see whether you are not putting any new line character after the value in the data provider file. This would stop update.
I code, therefore I am.