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.