milo

Members
  • Content count

    1
  • Joined

  • Last visited

About milo

  • Rank
    Forum Newbie
  1. FusionCharts is essentially a Flash movie that reads XML data at client side and then renders it as a chart. As such, you cannot directly generate a server-side image of the chart. The only way would be to have the charts rendered at client side and then post the bitmap data to server (either using user interaction or JS method) and then save it as an image for inclusion in PDF. Base on the suggestion above, I was able to send the bitmap image to the server (running ruby on rails), however, the problem is I need to put two images in the resulting pdf. The situation is like this, I have 2 graphs on my page, a line chart and a pie chart. I need to print a pdf containing both charts. My plan was to trigger a javascript that will initiate the printing of the line chart, once completed, the server side code will return a javascript that will initiate the printing of the pie chart, and lastly the server side code will return a javascript that will render the pdf containing both charts. Unfortunately, their is no way to return a javascript from the server code that was invoked by fusionchart. Once saveAsImage calls the server, it just redirects to another page which is not my intention in the first place. Is there a way to do this?