This topic is locked
[SOLVED]

 Real Time Charting

2/9/2011 10:43:01 AM
PHPRunner General questions
S
SirMoby author

I know that FusionCharts has some widgets that provide realtime charts for things like stock tickers that can be automatically updated every 10 seconds or so. Is there a way to do this using PHP Runner charts?
Thank you.

Sergey Kornilov admin 2/9/2011

In PHPRunner you can use 'Autoupdate' feature. The minimum interval is 1 minute (though you can change that in source code).
More info:

http://xlinesoft.com/phprunner/docs/chart_appearance.htm

S
SirMoby author 2/11/2011



In PHPRunner you can use 'Autoupdate' feature. The minimum interval is 1 minute (though you can change that in source code).
More info:

http://xlinesoft.com/phprunner/docs/chart_appearance.htm



Thank you. I'll go poking around in the final source. I started with just the chart_variables.php page but that only does it by the full minute even when I change the value to .1 or something like that. However, you've put me on the right path and I'll figure it out and post the results here.
Thanks much!

Sergey Kornilov admin 2/11/2011

Check include/xtempl.php file.

function xt_showchart($params)

{

$width=700;

$height=530;

if(array_key_exists("custom1",$params))

$width=$params["custom1"];

if(array_key_exists("custom2",$params))

$height=$params["custom2"];

*$refresh=GetTableData($params["table"],".ChartRefreshTime",10)60000;**


If you replace 60000 with 1000 it will interpret interval value as seconds.

S
SirMoby author 2/12/2011



Check include/xtempl.php file.
If you replace 60000 with 1000 it will interpret interval value as seconds.



Thank you! That works perfectly. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=56437&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />