JPGraph+Help

Thread Solved

Join Date: Apr 2008
Posts: 24
Reputation: tessy7 is an unknown quantity at this point 
Solved Threads: 0
tessy7's Avatar
tessy7 tessy7 is offline Offline
Newbie Poster

JPGraph+Help

 
0
  #1
Apr 10th, 2008
Am gettin an error msg like this-->
The image “http://localhost/linegrph.php” cannot be displayed, because it contains errors.
while tryin 2 run my code on localhost..

Wen I comment d statemnt, $graph->Stroke(), nthng at all displys..
Plseeee do tell me a solution..

Thnks in advance
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 187
Reputation: phper is an unknown quantity at this point 
Solved Threads: 15
phper's Avatar
phper phper is offline Offline
Junior Poster

Re: JPGraph+Help

 
0
  #2
Apr 10th, 2008
What error messages are you getting? Can you post them on here.
If my post is useful please add to my reputation.
Thanks.

Ajtrichards Web Solutions | http://www.ajtrichards.co.uk
Retenovate | http://www.retenovate.com
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 24
Reputation: tessy7 is an unknown quantity at this point 
Solved Threads: 0
tessy7's Avatar
tessy7 tessy7 is offline Offline
Newbie Poster

Re: JPGraph+Help

 
0
  #3
Apr 11th, 2008
As I postd earlier, this is d error msg am getting..

The image “http://localhost/filename.php” cannot be displayed, because it contains errors.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 569
Reputation: ryan_vietnow is an unknown quantity at this point 
Solved Threads: 71
ryan_vietnow's Avatar
ryan_vietnow ryan_vietnow is offline Offline
Posting Pro

Re: JPGraph+Help

 
0
  #4
Apr 11th, 2008
Please post the code for filename.php
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 24
Reputation: tessy7 is an unknown quantity at this point 
Solved Threads: 0
tessy7's Avatar
tessy7 tessy7 is offline Offline
Newbie Poster

Re: JPGraph+Help

 
0
  #5
Apr 11th, 2008
This is d sample pgm I hav taken frm d tutorials..

<?php
include ("jpgraph.php" );
include ("jpgraph_line.php");

// Some data
$ydata=array(11,3, 8,12,5 ,1,9, 13,5,7 );

// Create the graph. These two calls are always required
$graph=new Graph(350, 250,"auto");
$graph->SetScale("textlin");

// Create the linear plot
$lineplot=new LinePlot($ydata);
$lineplot->SetColor("blue");

// Add the plot to the graph
$graph->Add($lineplot);

// Display the graph
$graph->Stroke();
?>
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 569
Reputation: ryan_vietnow is an unknown quantity at this point 
Solved Threads: 71
ryan_vietnow's Avatar
ryan_vietnow ryan_vietnow is offline Offline
Posting Pro

Re: JPGraph+Help

 
1
  #6
Apr 11th, 2008
I think the class itself has the error.Try to check them more intensively to find out why it is not working.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC