There are many JavaScript plugins to plot charts and graphs. For examples, see http://www.queness.com/post/10781/13-chart-and-graph-plotting-javascript-plugins.
I would like to create a chart and convert it to an image. I have experimented with converting them to PDFs with http://code.google.com/p/wkhtmltopdf/ and it is working great. For installation, I used http://www.amberdms.com/?cms=opensource_linux_repositories.
Now, converting to an image. I installed the sister product wkhtmltoimage. amberdms didn't have this in their repo, so I just used a static binary. It coverts simple pages without charts, but when trying a page with a chart, it doesn't include the JavaScript chart in the image, and I get the following errors:
[root@localhost ~]# /usr/bin/wkhtmltoimage-amd64 --load-error-handling ignore http://www.bobo.com/lib/plugins/jqPlot/examples/area.html var/www/html/images/example_amd64.jpg
Loading page (1/2)
QPixmap: Cannot create a QPixmap when no GUI is being used ] 86%
....
QPixmap: Cannot create a QPixmap when no GUI is being used
Rendering (2/2)
Error: Could not write to output file
Segmentation fault
[root@localhost ~]#
Does anyone have any suggestions?
PS. I am operating Centos 5.8 86x64, and have tried both wkhtmltoimage-i386 and wkhtmltoimage-amd64.
Does anyone have any suggestions?
Thank you