Quick Image_Graph question (again)

From: 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 hadn’t installed the true type fonts :-) Yah, I know – I’m probably blind, it’s late and I’m tired etc. But I can’t figure out how to do a relatively simple thing like make a graph with datasets side by side. I’m 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. There’s mention of a lot in the api, but I can’t get any of them to work. There must be something with the combination of different ways to create the datasets, but I can’t see what. And I can’t find an exaple simple enough for me to disassemble and tune. I’d 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, I’m 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."

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