pChart 2.x forum
http://wiki.pchart.net/forum/

$myPicture->stroke()
http://wiki.pchart.net/forum/viewtopic.php?f=3&t=292
Page 1 of 1

Author:  bgorden [ Fri Feb 25, 2011 6:48 pm ]
Post subject:  $myPicture->stroke()

I am trying to embed a graph into my portal. According to the pChart documentation, I should be able to use the stroke() function to render to browser.
Code:
$myPicture->stroke;

Then I am supposed to be able to invoke the script within an <img> tag.
Code:
<img src='mypic.php' />


Currently, the graph is working, but it is the only thing being displayed in the browser window. Could somebody please tell me what I am doing incorrectly. Help would be greatly appreciated. Here is summarized view of my code.
----------------------------------------------------------------------------------------------------------------------
netsales.php
Code:
<?php
include("../class/pData.class.php");
include("../class/pDraw.class.php");
include("../class/pImage.class.php");

/* query sales, create pData, create new pImage */

$myPicture->stroke();
?>

----------------------------------------------------------------------------------------------------------------------
index.php
Code:
<?php include ('netsales.php'); ?>
<html>
<body>
     <div id="wrapper">
          <div id="content"><img src="netsales.php" /></div>
     </div>
</body>
</html>

Author:  bgorden [ Fri Feb 25, 2011 8:18 pm ]
Post subject:  Re: $myPicture->stroke()

I figured it out. Thanks for nothing Forum

Author:  mice32 [ Fri Feb 25, 2011 9:05 pm ]
Post subject:  Re: $myPicture->stroke()

> I figured it out. Thanks for nothing Forum
You said nothing. We just were not able help you! Here. In another topic you posted code. And problem was found in index.php: Just remove this: <?php include ('netsales.php'); ?>.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/