Re: [Image_Graph] Empty graphs
| From: | Jesper Veggerby Hansen | Date: | Thu, 02 Dec 2004 18:04:04 +0000 |
| Subject: | Re: [Image_Graph] Empty graphs | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15969@lists.php.net to get a copy of this message | ||
No it's not possible in the current version(s), however it's an interesting point, seing that dynamic data isn't 'always there'. I'm not sure if writing 'no data' would be the best idea in all cases, but maybe implement some kind of 'no-data'-handler, which could either print out no-data, show a picture of Queen Elizabeth, or what-ever.
So basically, I agree that we should implement some kind of method for handling this case. I acually ran into it myself with the project I use Image_Graph on, what I did was basically to scale the axis so they still made sense, but there were just no graph visible.
Regards
Jesper
James Nunnerley wrote:
Hi Jesper (et al), Sorry to bother you again, but I've got one last question regarding Image_Graph. Is it possible to produce a graph or message saying "no data" when no data is passed to the graph? Cheers Nunners _____ From: Nunners [mailto:webmaster@jnsolutions.co.uk] Sent: 23 November 2004 15:08 To: 'Jesper Veggerby Hansen' Cc: 'pear-general@lists.php.net' Subject: [Image_Graph] Different chart types Jesper (or anyone else), Is there anymore documentation on how to create each of the different types of graph? For instance, when I try and create a Pie chart, it comes up with the following error: Notice: Undefined variable: totalY in C:\www\pear\pear\Image\Graph\Plot\Pie.php on line 140 Thanks James