Revathy

php real time graph

Recommended Posts

I am trying to create real time line graph for the project. Do you know who to create real time graph using php?

<td><button value="<?php echo $currencyArrayWithSlashExplode[$cntAA]?>" class="clean blue-button table-btn-font" ><?php echo number_format($exchangeRates['forexList'][$cnt]['changes'], 4?></button></td>

This button contain an array of result --> I need to use this array to create a line graph, like the image attached

image.thumb.png.59275190471b16adfbdfbf1b15166d3f.png

Share this post


Link to post
Share on other sites

Hi,

 

Real-time charts automatically update themselves after every n seconds, without any page refreshes, by getting new data

You need to provide the data using the supported API method - feedData(). Refer to the below link for details : https://www.fusioncharts.com/dev/chart-guide/standard-charts/real-time-charts#feed-data-using-javascript

You can also check the API method list for further description : https://www.fusioncharts.com/dev/api/fusioncharts/fusioncharts-methods

To render charts in PHP environment, you need to use the FusionCharts PHP wrapper : https://www.fusioncharts.com/dev/getting-started/php/your-first-chart-using-php

 

Also find a sample for reference : https://www.dropbox.com/s/4ckr69hxtc0n7e4/realtimeline.zip?dl=0

 

Thanks,

Akash.

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