fusioncharts導出圖片和pdf(v3.3)

數據爲XML:在chart元素上加"exportEnabled="1" exportAtClient="1" exportDialogMessage="正在生成..."

exportHandler="fcExporter3" exportFormats="JPG=生成JPG圖片|PDF=生成PDF文件"" code

頁面JS: component

//導出每一年度 本身分配 圖 
		var myExportComponent3 = new FusionChartsExportObject('fcExporter3','/lgfczj/FusionCharts/Charts/FCExporter.swf');
		myExportComponent3.componentAttributes.btnColor = 'EAF4FD';
		myExportComponent3.componentAttributes.btnBorderColor = '0372AB';
		myExportComponent3.componentAttributes.btnFontFace = 'Verdana';
		myExportComponent3.componentAttributes.btnFontColor = '0372AB';
		myExportComponent3.componentAttributes.btnFontSize = '12';
		myExportComponent3.componentAttributes.btnsavetitle = '另存爲';
		myExportComponent3.componentAttributes.btndisabledtitle = '右鍵生成圖片';
		myExportComponent3.Render('exporterDiv3');
導入:FusionChartsExportComponent.js
相關文章
相關標籤/搜索