You might be interested in Chart Director (www.advsofteng.com).
It has a Perl version for Windows and Linux. The free version is fully functional with an inobtrusive watermark.
The Perl command set resembles ImageMagick.