I was looking for some data the other day (unrelated to this), and on someone’s website, at the bottom of their left menu, they had a nice little Sunrise and Sunset data box that also had a colored pie chart of sunlight and darkness hours.
Should have bookmarked it because now I cannot find it. Ring a bell with anyone? Is the script for this available?
Thanks.
No. The pie was similar, but a lot smaller and it, plus the Sunrise and Sunset times were together in a little box near the bottom of the websites left side menu.
It turns out it was the one I have on my site. Someone else came up with the graph and posted it on one of the forums several years ago and used that along with some WD tags on the bottom of my menu.
Thanks Jim. I’ve been busy today so hadn’t even had a chance to work on it yet or email you back about posting it here.
Didn’t figure you would mind but always want to make sure first.
Thanks, Jim. The variables were in my testtags.php file. Somehow the string for the image got mangled because of the white space and new lines. I eliminated the extra characters, and suddenly the string worked. It’s live now toward the bottom of my menubar.
It looks like you’ll need to tweak the css in the code … I had to do some funky stuff to get everything to display the way I wanted. It looks like Rick’s worked out ok.
I have it on my site now with code tweaks to fit my site colours/ layout, including rotating the chart to show daylight hours starting at the top (zero degrees) and adding the actual hours to the chart as well as percentages. I didn’t get the chart to show until I put the Google API chart code all on one line without spaces.