maks
Members-
Content count
43 -
Joined
-
Last visited
About maks
-
Rank
Advanced Member
-
Sudipto: Thank you for the reply. When I select more than 10 charts, all the selected charts initiate export progress bar and 100% export is completed successfully(know from progress bar). Even after completion of export I can save individual file one by one if I want. But I can't save all charts together as a single file. When I click the "Save all charts together" after few sec thumb disappears....... Thanking You, Maksuda
-
Dear Fusion Chart Team: I posted an issue several days before and waiting to get some solution. Do you have any solution of the following issue please - Thanking You, Maksuda...
-
Thanks Sudipto for the reply. What I have to do to solve it ? Should I raise the Issue again? I'm using IE 7.0.5730.13 Flash Player version - 8 OS is Windows XP (SP3) Thanking You, Maksuda...
-
Hi Rohit: Sorry for the late answer, I was busy with other staffs. I was trying to follow your code that you posted here. Thing is my chart IDs are in an array. What I did, created two arrays, one for chart ID and another for chart Caption: var chartIds = document.getElementById("ctl00_ContentPlaceHolder1_txtNumberOfCharts").value; //Zone IDs as chart IDs var chartCaptions=document.getElementById("ctl00_ContentPlaceHolder1_txtZoneName").value; //Zone Names as Chart Captions var arrChartId=new Array(); var arrChartCaps=new Array(); arrChartId=chartIds.split(","); arrChartCaps=chartCaptions.split(","); myExportComponent.sourceCharts = arrChartId; var numberOfCharts=arrChartId.length; for(var i=0;i<numberOfCharts-1;i++) { myExportComponent.setExportOverrides({arrChartId[i]: {meta:{caption:arrChartCaps[i]}} }) } to Override the caption. It's not working By the way what did you mean by- Should I have to replace my existing FusionChartsExportComponent.js file with the FusionChartsExportComponent.js file which was in sample example ? I replaced FusionChartsExportComponent.js when I was trying, just to make sure that you asked the same thing what I did. I have another issue, when I export multi charts, it's exporting properly and during individual save its working fine.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> But when I want to save all charts together as single a file it works only when I generate chart for few Zones. What I mean, I can generate multi chart for selected Zones. I have 36 Zones. So users may want to generate all Zones chart or for selected Zones chart from a List of Check Box. When selected Zones are 7/8 I can save all charts as s single file. When selected charts are more than 10 I can't save all charts together as a single file. Please let me know if any help is available for both case. I always appreciate Fusion Chart team
-
Thanks Shamasis for the reply. I didn't understand Is it possible to modify the chart caption after chart creation ? Would you please post a sample code how can I do it? Thanking you, Maksuda...
-
Thanks Madhumita for your reply.I actually I'm using exportFileName='filename' to save the exported individual file which is working, but the label of the individual file (not the name of saved file) is Caption of the chart which I want to customize. How please let me know. Thanking You, Maksuda...
-
Thank you very much Shamasis for the reply. I'm realy glad that it's working now. We can customize the saveAllTitle, is it possible to customize the title of single save? When I'm trying for both options (Individual and Batch), Caption of each chart is showing as single save title and I need to change the title. Thanks for all supports. Regards, Maksuda...
-
Hi Shamasis: Thanks for the links. I tried for the client side batch-export. What I'm doing first, in a hidden field I collect all selected Ids from GridView : txtNumberOfCharts .Value += row.Cells[0].Text+ ",";Then from txtNumberOfCharts I get all values in my JavaScript Function as I'm passing these Ids as Chart ID in my code. Here is my code <div id="fcexpDiv" align="center">FusionCharts Export Handler Component</div> <script type="text/javascript"> //Initialize Batch Exporter with DOM Id as fcBatchExporter var myExportComponent = new FusionChartsExportObject("fcBatchExporter", "FusionCharts/FCExporter.swf"); var chartIds = document.getElementById("ctl00_ContentPlaceHolder1_txtNumberOfCharts").value; var arrChartId=new Array(); arrChartId=chartIds.split(","); var numberOfCharts=arrChartId.length; var newCharIds =" "; for( var i=0;i<numberOfCharts-1;i++) { if(i==0) newCharIds+="'"+arrChartId[i]+"'"; else newCharIds+=","+"'"+arrChartId[i]+"'"; } myExportComponent.sourceCharts =[newCharIds]; alert(newCharIds); myExportComponent.componentAttributes.fullMode='1'; //Set saving mode as both. This allows users to download individual charts/ as well as download all charts as a single file. myExportComponent.componentAttributes.saveMode='both'; //Show allowed export format drop-down myExportComponent.componentAttributes.showAllowedTypes = '1'; //Customize the component properties //Width and height myExportComponent.componentAttributes.width = '400'; myExportComponent.componentAttributes.height = '120'; //Background color myExportComponent.componentAttributes.bgColor = 'ffffdd'; //Border properties myExportComponent.componentAttributes.borderThickness = '2'; myExportComponent.componentAttributes.borderColor = '0372AB'; //Font properties myExportComponent.componentAttributes.fontFace = 'Arial'; myExportComponent.componentAttributes.fontColor = '0372AB'; myExportComponent.componentAttributes.fontSize = '12'; //Message - caption of export component myExportComponent.componentAttributes.showMessage = '1'; myExportComponent.componentAttributes.message = 'Export the chart first, and then click on this button to save'; //Button visual configuration myExportComponent.componentAttributes.btnWidth = '200'; myExportComponent.componentAttributes.btnHeight= '25'; myExportComponent.componentAttributes.btnColor = 'E1f5ff'; myExportComponent.componentAttributes.btnBorderColor = '0372AB'; //Button font properties myExportComponent.componentAttributes.btnFontFace = 'Verdana'; myExportComponent.componentAttributes.btnFontColor = '0372AB'; myExportComponent.componentAttributes.btnFontSize = '15'; //Title of button myExportComponent.componentAttributes.btnSaveTitle = 'Save this chart' myExportComponent.componentAttributes.btnSaveAllTitle = 'Save all charts together' myExportComponent.componentAttributes.btnDisabledTitle = 'Waiting for export'; myExportComponent.Render("fcexpDiv"); //Define a function, which will be invoked when user clicks the batch-export-initiate button function initiateExport(){ myExportComponent.BeginExport(); } </script> I called JavaScript Function in my button <input id="btnExportChart" runat="server" onclick="javascript:initiateExport();" style="width: 90px; font-family: 'Frutiger LT 45 Light'; height: 28px" type="button" value="Export Chart" /> It's not working for me. Do you have any idea what is the problem here. Need your help pls. Thanking You, Maksuda...
-
Hi: I like the forum as people here answer quickly with good idea. Thanks for the support guys...... I have a problem exporting chart. For exporting a single chart my code works fine. Now I have a GridView with List of Zones. Users check the check box and charts genereate for the selecting zones.( I'm using ASP.net and C#.net). In foreach loop I did this. My multichart generating code is working great and I'm getting all the charts for the Zone that are selected. No I want to export all the charts in one button click. How can I do that. I tried using my existing code with some changes. But it exports only on chart at a time which I don't want. What I'm doing: I'm adding all the chart IDs in a hidden field txtNumberOfCharts's value in my Foreach loop txtNumberOfCharts.Value += myChartId.ToString() + ","; Then I have created a javascript like: function ExportChartId(){ var chartIds = document.getElementById('txtNumberOfCharts').value; var temp = new Array(); temp = chartIds.split(","); var numberofCharts = temp.length; for (var i=0; i<numberofCharts; i++){ exportHandler(temp[i]);} } [code] Now instead of calling exportHandler(ChartID) I'm calling this javascript function on button click event. Please I need your help regarding this issue. Thanking You, Maksuda...
-
I can't see the any export format when right click the mouse
maks replied to maks's topic in Javascript Problems
Thanks you very much Sudipto. It's working now. Thanks a lot for the help. Maksuda... -
I can't see the any export format when right click the mouse
maks replied to maks's topic in Javascript Problems
Thanks Rajroop, Actually I tried chart.exportChart({exportFormat:'JPG'}); It was my typing mistake before when I post it on the forum. It's not working........... Any other suggesion pls...... Thanking You, Maksuda -
I can't see the any export format when right click the mouse
maks replied to maks's topic in Javascript Problems
Actually for this case if I use chart .exportChart({exportFormat:'JPG}); ........it doesn't work. It gives me .png extention to save image. Only chart .exportChart({exportFormat:'PDF'}); is working. How can I make .jpg format working , pls........ Thanking You, Maksuda -
I can't see the any export format when right click the mouse
maks replied to maks's topic in Javascript Problems
Thanks Madhumita for the reply. Yes I tried with no luck. Still getting the same problem......... Pls any idea ......... Thanking You, Maksuda -
I can't see the any export format when right click the mouse
maks replied to maks's topic in Javascript Problems
Thanks Rahul for the reply. For the latest version of Bar2D it's working. I'm disappointed for the Grid chart though. I've two more things that I need to fix for exporting chart as image. First, I have a button for exporting the chart before enabling save button. When I click the button it exports the chart and enables Save button. After clicking the Save button a popup screen comes up for saving the chart. But the extention of the image is .png which I don't want. Is there any way I can set the image save extention as I want (it could be JPEG or PDF). Second, when I right click on the chart it gives me the scope for "Exporting as Image" with 3 options - JPEG,PDF and PNG. When I select PDF and export chart, I can save as .PDF by clicking save button. When I select JPEG I can't save as JPEG. It gives .PNG extention. Even I tried avoiding PNG from the "Exporting as Image" options (exportFormats='JPEG=Export as JPEG|PDF=Export as PDF). Still save type gives me .PNG extention when I select JPEG. I can change .png as .jpeg but it's not logical that I select JPEG image type and it gives me PNG. Do you have any idea why it's happening please? Here is my code for importing charts and saving images. <div id="fcexpDiv" align="center">FusionCharts Export Handler Component</div> <script type="text/javascript"> var myExportComponent = new FusionChartsExportObject("fcExporter1", "FusionCharts/FCExporter.swf"); myExportComponent.componentAttributes.width = '330'; myExportComponent.componentAttributes.height = '60'; myExportComponent.componentAttributes.bgColor = 'ffffdd'; myExportComponent.componentAttributes.borderThickness = '2'; myExportComponent.componentAttributes.borderColor = '0372AB'; myExportComponent.componentAttributes.fontFace = 'Frutiger LT 45 Light'; myExportComponent.componentAttributes.fontColor = '0372AB'; myExportComponent.componentAttributes.fontSize = '12'; myExportComponent.componentAttributes.showMessage = '1'; myExportComponent.componentAttributes.message = 'Export the chart first, and then click on this button to save'; myExportComponent.componentAttributes.btnWidth = '150'; myExportComponent.componentAttributes.btnHeight= '25'; myExportComponent.componentAttributes.btnColor = 'E1f5ff'; myExportComponent.componentAttributes.btnBorderColor = '0372AB'; myExportComponent.componentAttributes.btnFontFace = 'Frutiger LT 45 Light'; myExportComponent.componentAttributes.btnFontColor = '0372AB'; myExportComponent.componentAttributes.btnFontSize = '15'; myExportComponent.componentAttributes.btnsavetitle = 'Save the chart' myExportComponent.componentAttributes.btndisabledtitle = 'Waiting for export'; myExportComponent.Render("fcexpDiv"); </script> <script type="text/javascript"> function exportHandler(chartID) { var n = document.getElementById('fcExportDiv'); n.innerHTML = " "; var chart = getChartFromId(chartID); if (chart.hasRendered()==true){ chart.exportChart(); }else{ alert("Please wait for the chart to finish rendering before you can invoke exporting"); } } </script> <div id="fcExportDiv" align="center"> </div> In my HTML button I called the JS function as : onclick ="exportHandler('14DaysEventTotal');"I configured XML for client-side export as : xmlData.Append("<chart......"); xmlData.Append(" exportEnabled='1' exportShowMenuItem='1' exportAtClient='1' exportHandler='fcExporter1' exportFormats='JPEG=Export as JPEG|PDF=Export as PDF|PNG=Export as PNG' exportFileName='14 days detailed for ' "); xmlData.Append(" exportDialogColor='e1f5ff' exportDialogBorderColor='0372ab' exportDialogFontColor='0372ab' exportDialogPBColor='0372ab' exportDialogMessage='Exporting chart'>"); Thanking you, Maksuda... -
I can't see the any export format when right click the mouse
maks posted a topic in Javascript Problems
Hi: I posted it under Miscellanius forum, but I didn't get any reply. So I'm posting it here again. I have a drilldown chart (Bar2D chart) that I need to save in PDF/JPEG format and I tried it to save the same way as I did for other charts. When I enabled the chart and right click the mouse on the chart it doesn't show any export formats - JPEG, PNG or PDF (Save Image as ... are not appearing). I did the following things: 1. Added FusionChartsExportComponent.js to my .aspx file - <script language="JavaScript" src="FusionCharts/FusionChartsExportComponent.js" type="text/javascript"></script>2. Set the registerWithJS attribute as 1 (true) 3. Set attribute exportEnabled='1' like: xmlData.Append(" exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1' exportFormats='JPEG=Export as JPEG|PDF=Export as PDF|PNG=Export as PNG' exportFileName='14 days detailed chart' "); xmlData.Append(" exportDialogColor='e1f5ff' exportDialogBorderColor='0372ab' exportDialogFontColor='0372ab' exportDialogPBColor='0372ab' exportDialogMessage='Exporting chart'>"); //these properties are for Configuring export dialog box I'm wondering if there is any problem exporting Bar2D chart...... I also have a Grid chart which giving me the same problem. Would someone please let me know the way I can save Bar2D and Grid Chart as image. Need your help pls. Thanking You, Maksuda...