wonderway

Members
  • Content count

    5
  • Joined

  • Last visited

Posts posted by wonderway


  1. Hi,

     

    Could you please try once by disposing the chart object instance, just before rendering all the charts ?

     

    Ref. JavaScript code to dispose a chart:

    FusionCharts("myChartId").dispose();
    

    In case if this is what is not able to resolve your issue, please provide us the relevant scaled down sample (as ZIP file), so that we can test and replicate the issue from our end.

     

    Awaiting your valuable response.

     

    i found the solution --> "resizing Max Post Size in Glassfish Server" :D

     

    thanks for all supreme being who trying to help me  :lol:


  2. Hi,

     

    Welcome to FusionCharts Forum.

     

    Could you please provide some more information on your issue?

     

    a. The server-side technology used

     

    b. Whether you are using trying to export Flash or JavaScript charts

     

    c. The version of FusionCharts is being used at your end

     

    d. Relevant code snippet of "how you are exporting the chart image/PDF to server"

     

    Awaiting your valuable inputs.

     

     

    a. Well, I'm doing Batch Export Chart, image saving in server disk. When ChartId1 is done exporting, the Chart is changing with ChartId2 in the same div, and if ChartId2 is finish rendering, ChartId2 is start exporting.

     

    b. I'm trying to export Flash chart

     

    c. i'm using FusionCharts XT (v3.3.1 - Service Release 1)

     

    d. Sample Code:

    startExport("ChartId1");
    
    function startExport(param){
    	var chart = FusionCharts.getObjectReference(param);
        if (chart.hasRendered()==true){
            chart.exportChart();
        }else{
            alert("Please wait for the chart to finish rendering");
        }
    }
    
    function FC_Exported ( statusObj )
    {
    	var area = Ext.getCmp('AreaTypeSlide').rawValue;
    	var time = Ext.getCmp('TimeTypeSlide').rawValue;
    	console.log(statusObj);
        if (statusObj.statusCode == "1" )
        {
        	if(statusObj.DOMId == "ChartId1") {
        		var SMSPPT = new FusionCharts("../Ext-4/Charts/MSCombiDY2D.swf", 'ChartId2', "785", "538", "0", "1");
        		SMSPPT.setJSONUrl('./Services/SMSTrend/'+area+'/'+time+'/PPT'+'?zoom=0');
        		SMSPPT.render("SlideDiv");
        		SMSPPT.addEventListener("Rendered", function () {
        			 FusionCharts("ChartId2").exportChart(); 
        		});
        		chartsImg = statusObj.fileName.substring(22);
        	} else {
        		chartsImg = chartsImg + "|" + statusObj.fileName.substring(22);
        		window.open("./Services/trafficRptService/"+chartsImg);
        	}
        	console.log(chartsImg);
        }
        else
        {
            alert("Problem");
        }
    }

    hope you understand, and i'm waiting for your valuable answer