Quick Image_Graph question (again)
| From: | Frank Høvin | Date: | Fri, 28 Apr 2006 00:46:03 +0000 |
| Subject: | Quick Image_Graph question (again) | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23874@lists.php.net to get a copy of this message | ||
Thanks for the previous help, with the (obvious) sollution that I hadnt
installed the true type fonts :-)
Yah, I know Im probably blind, its late and Im tired etc. But I cant
figure out how to do a relatively simple thing like make a graph with
datasets side by side.
Im using the example code, like this:
$Datasets = array(
Image_Graph::factory('random', array(5, 2, 15, false)),
Image_Graph::factory('random', array(5, 2, 15, false))
);
$Plot =& $Plotarea->addNew('bar', array($Datasets));
This works fine and dandy, by just creating two and two graphs with random
values, side by side. However, I want to do something as mindbogglingly
simple as type in the numbers the size of the bars. No mathematical
functions, vectors or random values. F.ex 5 data sets, with two bars each,
with specific values: 5 and 8, 10 and 5, 7 and 6 etc.
Theres mention of a lot in the api, but I cant get any of them to work.
There must be something with the combination of different ways to create the
datasets, but I cant see what. And I cant find an exaple simple enough for
me to disassemble and tune.
Id like to be able to f.ex just send a multidimentional array to a method,
and have it create a dataset for each element in the array.
As allways, Im grateful for any hints and help.
"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."