maks

Members
  • Content count

    43
  • Joined

  • Last visited

Everything posted by maks

  1. Hi: I have devloped charts using FusionCharts in ASP.Net (C#.net) which are working fine. I need to develop data table as well for viewing data which are using in the chart. I can create data table using Crystal Report (CrossTab report) which is different application. Is it possible to develop that (CrossTab report) in FusionChart ? Please need idea. Code sample is highly appreciated. Thanking you Maksuda
  2. 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...
  3. 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
  4. 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...
  5. 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...
  6. 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...
  7. 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
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. Thanks you very much Sudipto. It's working now. Thanks a lot for the help. Maksuda...
  13. 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
  14. 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
  15. Thanks Madhumita for the reply. Yes I tried with no luck. Still getting the same problem......... Pls any idea ......... Thanking You, Maksuda
  16. Hi: I have created several FusionCharts and they all are working fine. I have a drilldown chart (Bar2D chart) that I need to save in PDF/JPEG format and I tried the same way I did for one of my charts. When I enabled the chart for export, the chart context menu 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 2D Bar and Grid Chart as image. Need your help pls. Thanking You, Maksuda...
  17. 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...
  18. Hi: In my asp.net application FusionChart is working fine. Now I'm trying to export chart as image. Using 'Exporting Charts as PDF or Images > Client-side export > Simple Example' example from the FucionChart website, I can export my chart. But when I'm trying to export using 'Exporting charts as PDF/Images > Exporting from JavaScript' example it's not working. It does not say anything, no error, nothing. I checked ChartID, also RegisterWithJS parameter while initializing my chart is set to '1' for the charts to respond to the JavaScripts. it's ok but I'm not able to export it. I'm using IE7. For exporting I'm using the following JavaScript: <script type="text/javascript"> function ExportMyChart() { var chartObject = getChartFromId('MonthlyEventTotal'); if( chartObject.hasRendered()) chartObject.exportChart(); } </script> then calling this function from html button as: <input type="button" value="Export My Chart" onclick="ExportMyChart()" /> Why it's not working.........need help pls. Thanking You, Maksuda...
  19. At last I made it !!!!! Yes I can export and save chart using JavaScript. Now another thing I need to fix... After capturing the chart two dropdpwn lists are appeared, one with chart name and another with chart save options like pfd,JPEG. But both the dropdownlist are appeared at the very top of the page which I don't want. How can I fix the position of the dropdownlists?
  20. Thanks Madhumita for the reply. I enabled my Global Security Settings. Still no progress. In the example (the link you sent) I saw after exporting a dropdownlist is appeared with the saving format options. I don't get that option. Just show export popup screen. Need help pls........ Thanking You, Maksuda...
  21. Thanks Basundhara for the relpy. I checked them. 1 and 3 are ok. I have Flash Player 10 and FusionCharts ver3.1. Also I have FusionChartsExportComponent.js file latest version. I'm not sure about 2. I couldn't find the global security. Would you please help me finding Global security settings of Flash Player? Will someone please help me understanding the following line that is in Fusion Chart's doc ? (image export using js) ............. click on the "Export My Chart" button and the chart will start exporting all by itself! What does it mean? does it export only without any popup screen or what? Thanks again for the help. Regards, Maksuda
  22. I don't know what happened, now it's showing the exporting dialog box with percentage of export without asking anything about saving the export. So I can't find where it's exporting and also the format it's exporting
  23. Hi: Can someone tell me the maximum character size of cahrt tooltip. I am displaying a database comment field as tooltip in my chart. But sometime chart does not appear and I know this is because of the tooltip text size. I have no idea about the max character length of tooltip. Also I can't see the whole tooltip text (begining text is disappeared) How can I make set the tooltip text in broken line so that the whole comment can be viewed. Thanks in advance. Maksuda
  24. Tooltip max character size

    Hi Sudipto: Thanks for your reply. You asked me to send my script to your support group. I'm sending my all my script (XML, .aspx and aspx.cs code). Thanking you, Maksuda...
  25. Tooltip max character size

    Hi Dhruva : Thank you for the mail. I'm afraid I may not do that. The project is running on company database which has all live data. And according to company rule nobody allows to do that. So I can't help you regarding this. Is there anything that I can do that will let you helping me to solve the prob? Thanking You, Maksuda...