Sign in to follow this  
unicron

multiple charts - print as single page or export as single page PDF?

Recommended Posts

I have 4 charts on my page that fill up the 4 quadrants of the window.

 

 

 

I want to be able to print/export all the charts as they show on the screen.

 

I have looked through the batch export examples, but there is no PRINT option.

 

PDF export doesn't work for my client either, because its a 4 page PDF with 1 chart on each page.

 

 

 

charts.jpg

 

 

 

I got the bright idea to build a single fusionchart using MultipleCharts.fla, which is what you see above. This allowed me to send a generic printChart() command that gave me hope, even though it printed a solid black page behind the charts :)

 

 

 

However, the MultipleCharts way does not work the same way as a single chart would. The methods are all missing ( such as exportChart() ).

 

 

 

Can you advise the best way to proceed to achieve the above picture as a printout/PDF/image?

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please send us the XML codes that you are using?

Also, could you please let us know, which scripting language you are using?

Awaiting your reply.

Share this post


Link to post
Share on other sites

Hi, I am using Javascript to render the multiplechart.swf

 

 

 

I am assigning random sample XML for data1-data4, but this is not relevant to the particular issue. All 4 individual XML pieces work fine and can export individually.

 

 

 


myChart = new FusionCharts("MultipleCharts.swf",'myChartId',width,height,'0','1');

myChart.addVariable("xml1",data1);

myChart.addVariable("xml2",data2);

myChart.addVariable("xml3",data3);

myChart.addVariable("xml4",data4);

myChart.render('reportCardwhitegrid');

 

 

 

I am trying to find a way to export the whole screen as one item, not 4 separate ones.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

This would be a really naive method, but a workaround for now.

You can use the chart SWFs of the different charts separately, arrange them in the HTML page as in the screen-shot and then print the whole page using the browsers print option.

You can also mail us at [email protected] and see if our developers can help you out with this. Also, please attach the necessary files with the mail.

Awaiting your reply.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this