I've found two jQuery charts plugins I like - flot and jqPlot. I'm thinking of using one of these on the front-end of my web site.
However, I also need to be able to allow users to export data in PDF format. I'm ideally looking for a pure Python solution, but could run to Java or PHP at a push. The quality of the generated charts is the most important factor.
Options I've considered are:
- Generate charts on the server, and create a PDF using those charts. I've looked at matplotlib and several other python charting packages, but the charts don't look anywhere near as polished as flot or jqPlot will make.
- Use Rhino and Env.js to run the same jQuery code on the server, and somehow capture the generated charts and insert those into PDFs. Is this possible with Rhino? How difficult is it likely to be? I've seen the Rhino-canvas project, but it looks way out of date.
What would be the best way of doing this? If I can get the Rhino solution to work that'd be great since it'd maintain consistency between the front-end and generated PDFs.