Re: Image_Graph problem

From: Date: Thu, 27 Apr 2006 19:20:00 +0000
Subject: Re: Image_Graph problem
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23869@lists.php.net to get a copy of this message
Hi Frank, You most likely need the correct fonts. This should work by default on a Windows box, but the TTF fonts are not available under Un*x by default. Copy these fonts to the Image/Canvas/Fonts/ folder of Image_Canvas or set the IMAGE_CANVAS_SYSTEM_FONT_PATH constant to the location of your TTF files (BEFORE you include Image/Graph.php and/or Image/Canvas.php). Regarding "- after discovering that having html code before the code making the graphs garbles them -", just for the record: this has nothing to do with Image_Graph, but is how HTML operates! The images are not embedded in the HTML they are linked/referred via another HTTP request! This is similar if you would display an image in a normal HTML page by copying the binary data from the image into the HTML code. regards Jesper Veggerby Frank Høvin wrote:
Ok, I know this is still in beta, but it obviously seems to work for others. I’m trying the examples at http://pear.veggerby.dk/samples/, since there are no documentation at the PEAR site. I get them to work, sort of – after discovering that having html code before the code making the graphs garbles them – except that I can’t get the titles and labels to show on the graphs. I’ve been playing around with the simple bar chart, but even though I use the exact same code as the examples, no text is showing. That is, the title and labels are blank when I run the code, but when I run the examples from the veggerby site, they are showing. F.ex: This line $Plot =& $Plotarea->addNew('bar', array(&$Dataset)); should display the title ”bar” under the chart. But it doesen’t. And the same goes with all the other examples when I run them myself – titles, labels etc. are all blank. Any ideas? "One of the major reasons for the fall of the Roman empire was that, lacking the number zero, they had no way to effectively terminate their C programs."


« previous php.pear.general (#23869) next »