Sign in to follow this  
jaideep

Realtime charts - data file

Recommended Posts

Hi,

We are trying to configure real time charts, the documentation says that the file containing data be an asp, vb.net file etc.

Can the data file be a text file, which gets refreshed on the server?

 

thanks,

Jaideep

Share this post


Link to post
Share on other sites
Hi Jaideep,

 

If you want to feed data to the chart at server side, then you need to use any of the scripting languages like Classic ASP, ASP.NET (C# or VB), ColdFusion, PHP, JSP, J2EE, RoR etc. to provide the incremental data. The page created using such language act as real-time data provider page which provides data in the required format. The path of such a page is provided in the attribute "dataStreamURL" of the XML/JSON data.

 

You cannot use a simple text file as a data provider page since such file can not be executed to generate the updated data.

 

Data can be provided to the chart at client-side using JavaScript too, instead of real-time data provider page. The format of data feed, however, should be the same as that outputted by the real-time data provider page.

 

For more information, please refer the documentation link : http://docs.fusioncharts.com/widgets/Contents/DataStreaming/Overview.html

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi Jaideep,

 

We tried to create a sample using a text file to provide data to a Real-time chart. It seems that the chart receives the data from the file but it cannot get updated data like in the case of scripting languages.

 

Please find the attached sample of the same. 

 

You may use it if it satisfies your requirement.

Real-time charts.zip

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