Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

graph plot

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

graph plot

Postby roxy007 » Wed May 08, 2013 8:35 am

How to plot graph in php? plz give the settings too for any particular graph tool.
roxy007
New php-forum User
New php-forum User
 
Posts: 1
Joined: Tue Apr 30, 2013 7:57 am

Re: graph plot

Postby sandeep605085 » Wed May 08, 2013 9:57 am

Hi,

check if this simple tool helps you.

Download phplot-6.0.0.zip from below link
http://sourceforge.net/projects/phplot/?source=dlp

unzip the above zip file

then inside phplot directory where all code is present there create a test.php and write the below code
<?php
require 'phplot.php';
$plot = new PHPlot();
$data = array(array('', 0, 0), array('', 1, 9));
$plot->SetDataValues($data);
$plot->SetDataType('data-data');
$plot->DrawGraph();
?>

then run the test.php from browser and check it plots the graph.

Thanks,
Sandeep Agrawal
Mindfire Solutions.
User avatar
sandeep605085
New php-forum User
New php-forum User
 
Posts: 44
Joined: Tue Feb 26, 2013 6:00 am
Location: Mindfire Solutions


Return to PHP coding => General

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron