Chart Me Up
September 21, 2010 8:31 AM   Subscribe

Need recommendations for producing charts within a web page. Snowflake details: Must produce an image (JOG, PNG, GIF) so that the entire page can be exported to a PDF. Must work with SSL. Google Charts works great but does not allow for SSL.
posted by juggler to Computers & Internet (7 answers total) 1 user marked this as a favorite
 
Flot is a jQuery-based Javascript charting library. You can print the page with the charts to PDF normally from the browser; if by "exported to PDF" do you mean with wkhtmltopdf or PDFReactor it wouldn't work.
posted by nicwolff at 8:40 AM on September 21, 2010


Response by poster: Actually, I am using ActivePDF to convert the page to a PDF, so the JavaScript doesn't render. Unfortunately, this eliminates any JS based graphing.
posted by juggler at 8:47 AM on September 21, 2010


What's your server-side environment? It seems like gnuplot would meet some of your needs, if you can install it on your server and safely execute it from your web app framework. I mainly use it in the context of LaTeX docs, so I'm not sure re: integration with various web app platforms, but it might be something to look into.
posted by Alterscape at 9:21 AM on September 21, 2010


Can you just use a JavaScript solution that uses a canvas element (like I would imagine most javascript charting libraries would) and then call the toDataURL element to get an image source, and then replace the canvas with an image before you render to PDF?
posted by Maxwell_Smart at 10:19 AM on September 21, 2010


Best answer: I have used Flot and it's excellent but it sounds like it won't work for you. I've also used 'chart director' which makes images and is very flexible and has interfaces in many languages. It's not free for commercial use, though, but not very expensive. They have good support - I was trying to do a very complicated chart that didn't fit any of their examples in manual, and I got helpful response within a day.
posted by rainy at 1:20 PM on September 21, 2010


Oh, but chart director doesn't look as good as Flot. Look at their screenshots and see if it's good enough..
posted by rainy at 1:21 PM on September 21, 2010


Response by poster: Thanks everyone. We are going with Chart Director.
posted by juggler at 1:48 PM on September 21, 2010


« Older How do I get the music from my mac-formatted ipod...   |   Playas in De Wallen Newer »
This thread is closed to new comments.