Sign in to follow this  
Vova

How can I save three charts as images using one JavaScript

Recommended Posts

I have 3 charts in 1 page. I need to save them as images in a defined order. But I found that these charts are saved in a random order. I need them in a pre-defined order to include into the pdf report. How can I save three charts as images using one JavaScript in a defined order?

 

 

 

I use this Javascript:

 

 

 

 

function SaveChartAsImage(){

 

var chtRURSave = getChartFromId('chtRUR');

 

chtRURSave.saveAsImage();

 

var chtRRRSave = getChartFromId('chtRRR');

 

chtRRRSave.saveAsImage();

 

var chtRCRSave = getChartFromId('chtRCR');

 

chtRCRSave.saveAsImage();

 

};

 

 

 

 

Images are saved in this order: chtRRR, then chtRUR and chtRCR.

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