I use AWStats for website statistics for a lot of sites and I'm perfectly happy with the software. AWStats can be run as a CGI or standalone for the creation of static html pages with statistics.
The chart capabilities of AWStats are fairly limited, however. So I searched for a plug-in to replace the complicated tables for barcharts in AWStats with Google Chart API images to reduce the html page size and to provide cleaner charts.
Such a plug-in didn't exist, so I build my own based on the graphapplet.pm which is provided which AWStats, but experimental, and displays charts using a Java applet. I'm not a big fan of using Java in web pages as the plug-in tends to slow down the loading and introduces security troubles.
So here it is, a first version of the Google Chart API plugin for AWStats. It is fairly simple and it works very fast. Also it reduces the main statistic html page from about 70 KB to around 40 KB, so it loads much faster.
Disclaimer: no warranties, use a your own risk, your milage may very, etc., etc.
To use the plug-in, use a AWStats with version 6 or up. To install the plug-in, replace the graphapplet.pm file in the plugin directory of the AWStats installation with the one below. Backup the original file to be safe. I can't add a module with a different name because that would require changes to the core AWStats module itself.
Also activate the loading of the plugin using the following directive in your AWStats config file:
Update 13-12-2010: AWStats 7.0 release with Google charts
Comments or suggestions? Please let me know.
Submitted by George Moses on Sat, 2009-11-07 11:20
This is a personal blog of George Moses. George is a webdeveloper specialized in Drupal and partner of Dynamic Presentations, an Internet Solutions Provider based in The Netherlands.
More about MO6.me.
MO6 in Dutch: MO6.nl