Sign in to follow this  
vlad

Real-Time Chart Problem

Recommended Posts

Hello,

 

I am trying to build a streaming chart based on RealTimeLine.swf. I use XML code from http://www.fusioncharts.com/widgets/Gallery/RealTimeLine1.html.

I want to get streaming data from PHP. So I took a PHP example from the online documentation:

 

<?php

$randomValue =rand(30,35);

$dateTimeLabel = date('h:i:s');

print "&label=" . $dateTimeLabel . "&value=" . $randomValue;

?>

 

But the chart shows text "$dateTimeLabel." instead of dates on axis X and doesn't show plots at all.

I've checked the PHP. It generates data in correct format: &label=17:45:41&value=52

To test the problem I've created an XML data file and put the text: &label=17:45:41&value=52 there; Pointed dataStreamURL to this file. The chart works fine.

 

What could be a solution for that problem?

 

Thank you

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

First of all, we would like to thank you for showing interest in FusionCharts.

 

Could you please send us the generated XML data to look into the issue?

 

Awating for your response.

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