View unanswered posts | View active topics It is currently Sat Apr 27, 2024 11:54 pm



Reply to topic  [ 2 posts ] 
“The image <name> cannot be displayed, it contains errors 
Author Message
New pChart user
New pChart user

Joined: Mon Jul 15, 2013 5:56 pm
Posts: 2
Post “The image <name> cannot be displayed, it contains errors
I am trying to use the pchart package (over php) to build graphs/charts. At this time, I am just trying to run their provided example , where I just have replaced the final:
Code:
include("class/pData.class.php");
include("class/pDraw.class.php");
include("class/pImage.class.php");

$MyData = new pData(); 
$MyData->addPoints(array(VOID,3,4,3,5));
$myPicture= new pImage(700,230,$MyData);
$myPicture->setGraphArea(60,40,670,190);
$myPicture->setFontProperties(array("FontName"=>"fonts/Forgotte.ttf","FontSize"=>11));
$myPicture->drawScale();
$myPicture->drawSplineChart();
$myPicture->Stroke();
// $myPicture->Render("toto.png");

?>


With Render, I have a pictures with the graph but I can't diplay it on the web and when I try with Stroke, I get:" The image cannot be displayed because it contains errors" on the browser. If I leave the original $Test->Render(...) the generated image is OK. (but not sent)

If your answer is to generate the image and then send it afterwards, please but accurate on how to do this.

I am new to this, sorry advance if it's obvious...;-)


Mon Jul 15, 2013 6:07 pm
Profile
New pChart user
New pChart user

Joined: Mon Jul 15, 2013 5:56 pm
Posts: 2
Post Re: “The image <name> cannot be displayed, it contains error
up


Thu Jul 18, 2013 3:31 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron