How can I get a pchart
in a specific location on my HTML page? right now when I follow the example and use
$myPicture->autoOutput();
It just overwrites my entire page and just shows the graph.
Looking at the pChart
source I found inside pImage.class.php
a relevant function
function stroke()
{
if ( $this->TransparentBackground ) { imagealphablending($this->Picture,false); imagesavealpha($this->Picture,true); }
header('Content-type: image/png');
imagepng($this->Picture);
}
I tried to change it to this but it seems to return null and I'm getting a bunch of errors about
Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in**
function stroke()
{
ob_start(NULL,4096);
$this->Picture;
header('Content-type: text/html');
return base64_encode(ob_get_clean();
}