Very odd, it does look like the web server is doing something odd to the data. As you say, jpgraphs seems to be generating the image correctly, but what the web server is sending out can not be interpreted as an image by the browser. No ideas really!

What happens if you don't use the JPGraph Cache but instead let each request generate the graph? Have you tried that? I don't even bother with the cache...unless you have thousands of hits/hr on your site, pretty much any web service provider can handle the php load.

After looking at Steve's web site today, I have made a small change to the wind direction graph - it now plots the average direction on top of the instant direction. I made this change to the copy on my web server some time ago and forgot to include it in the distribution. Only the graphWdir.php files have changed.

the php log (before the change) was showing "Undefined index: uom in .........." and now it shows an error "Undefined index: units in ............." so obviously this did not resolve the issue.Question: Is it possible that the problem is caused by using the units km/h?

the php log (before the change) was showing "Undefined index: uom in .........." and now it shows an error "Undefined index: units in ............." so obviously this did not resolve the issue.Question: Is it possible that the problem is caused by using the units km/h?

Your solar graph has the same problem, it too has an extended character in it - try sending the files to the web server again, but force your client to send them as binary, it may be sending them as 'text files' and helpfully changing the encoding for you.

Enough thanks can't be piled upon all the contributors, especially Steve and Mark. Lately I've been putting a lot of time into redoing my site. Cumulus MX, Raspberry Pi, MySql database and server generated graphs have been the impetus.

I've had to rely on others to lead me to solutions for most of of my problems but I think I might have a minor and insignificant contribution.

I had been having problems with the wind rose graph not creating a "png" image in the cache. Discovered that the line in the PHP file$graph = new WindroseGraph(400,400); should b $graph = new WindroseGraph(400,400,auto,1); it needs , width, height, name, time.

Finally manage to figure it out.When I made that last post, I thought about the fact that the standard Mac install of Apache and PHP is not like a standard web server one.After doing a bit of digging, it works out that TTF support is NOT part of the standard install that they supply.After transferring all the files over to a hosted website, it all came good and is working fine.

Thanks for everyones efforts on this and I really apologise for the fact that I should have dug a bit further before asking all those questions.

f4phlyer wrote:Enough thanks can't be piled upon all the contributors, especially Steve and Mark. Lately I've been putting a lot of time into redoing my site. Cumulus MX, Raspberry Pi, MySql database and server generated graphs have been the impetus.

I've had to rely on others to lead me to solutions for most of of my problems but I think I might have a minor and insignificant contribution.

I had been having problems with the wind rose graph not creating a "png" image in the cache. Discovered that the line in the PHP file$graph = new WindroseGraph(400,400); should b $graph = new WindroseGraph(400,400,auto,1); it needs , width, height, name, time.

Without a time value jpgraphs won't save an image in the cache.

Ah, yes thanks, looking more closely at the WindRose script (a later contribution) I see there are a number of improvements that I can make. I'll update the source code...