A GPLed clone of the Google Chart API
Google Chart is great! However, you may not want to have to depend upon external websites (even the ubiquitous Google) to generate charts for your own website.
KupoChart to the rescue!
KupoChart is a PHP clone of the Google Chart API. It's written in PHP and uses Image_Graph at its core.
Presently, KupoChart is in very early development, and supports only pie charts and line graphs. However, it is quite stable and (at least for SVG or small PNG output) should be sufficiently fast for virtuallly all purposes.
Documentation
The complete end-user documentation, as distributed with KupoChart, is available via the web here.
Output examples:
kupochart.php?cht=p&chd=t:60,40&chs=150x150&chco=1a0044,6100ff

kupochart.php?chs=125x125cht=p&chd=t:10,20,30,40&outputmode=svg
kupochart.php?chs=325x200&cht=lxy&chd=t:0,20,30,50,100|10,20,30,40,50|0,20,30,50,100|30,25,38,62,90

Download KupoChart:
- KupoChart 0.1.5: Released 15 April 2008.
- Changed default max width/height from 1600x1600 to 2400x1200, more appropriate for large line graphs.
- Added the ability to tell KupoChart that a given axis contains Un*x-style timestamps, which will be interpreted as (and displayed as) dates. Added several settings pertaining to this feature.
- Added a user-settable Y-axis margin (space between the high/low points of the graph and the top/bottom edges of the plot area)
- Added a 'DO_NOTHING' flag that supplementary tools like colourslist.php can set. This allows scripts to pull in kupochart.php without it actually plotting anything.
- Modified colourslist.php to pull the colours directly out of kupochart.php, rather than having to maintain a redundant (and possibly out-of-date) copy within itself.
- Included a new 'http_poster.pl' in the tools directory. This is a tool to easily allow a user to pass data to a web service (such as KupoChart) via POST instead of GET, allowing data submissions of virtually unlimited size (GET is limited to several kilobytes on most systems, due to hardcoded URL length limits and the like)
- Added 'xpad' and 'ypad' options for line charts.
- Added 'xlabelangle' and 'ylabelangle' options for line charts.
- Included a new 'line-graph-by-time.php' demonstration file, showing a practical way to graph time-based data.
- Added 'docs/TODO' Addition of 2D X/Y line. Code cleanup and internal documentation. Changed order of default colours to move the light and potentially difficult-to-read yellow colour towards the end of the list. Added detection of bad input for pie data type. Fixed handling of named colour values (e.g. 'red' as opposed to 'FF0000')
- KupoChart 0.1.0: Released 12 April 2008.
-
Addition of 2D X/Y line. Code cleanup and internal documentation. Changed order of default colours to move the light and potentially difficult-to-read yellow colour towards the end of the list. Added detection of bad input for pie data type. Fixed handling of named colour values (e.g. 'red' as opposed to 'FF0000')
- KupoChart 0.0.1: Released 03 April 2008.
- First release. Supports pie charts only.