mokalovesoulmate

Members
  • Content count

    11
  • Joined

  • Last visited

  • Days Won

    1

About mokalovesoulmate

  • Rank
    Junior Member
  1. IE8 auto-export to server JavaScript Problem

    Hello, I am still stuck until now how to resolve this problem in IE8. For FusionCharts Team please solve this problem because my clients is still stay at IE8 Thank you !
  2. IE8 auto-export to server JavaScript Problem

    Ok, here you go : This is the execution code : var totalCharts = 2; var exportedCharts=0; var allExportOK = true; var returnValue=""; var intervlId = {}; var chartObjects = {} /** * This function is called by every chart when it is fully rendered. * Upon rendering, we initiate the exporting of the chart. * */ function FC_Rendered(DomID) { chartObjects[DomID] = getChartFromId(DomID); intervlId[DomID] = setInterval(function() {CheckRender(DomID);}, 10); }; function CheckRender(DomID) { //If this Properties are True that means the Chart Became Updated if(chartObjects[DomID] && chartObjects[DomID].hasRendered && chartObjects[DomID].hasRendered()){ window.clearInterval(intervlId[DomID]); //exporting the chart chartObjects[DomID].exportChart(); } }; /** * This Function is will be called after exporting chart with its results. * this function is decleared as a exportCallback atribute in the charts xml. */ function myCallBackFunction(exporStatus) { //seving the name of the exported image in a variable seperated by ';' //here we use the substring function to deduct the domain name from file location returnValue += exporStatus.fileName+';'; //Counting the number of chart exported by increasing this variable exportedCharts++; //checking the Status of the export and set the variable 'allExportOK' as false if there has any error if(exporStatus.statusCode != '1') allExportOK = false; //when all charts are exported give a messege whether there has any error or not? if(exportedCharts == totalCharts) { //if there is no error then we call a function show_popup() to marge all the exported image into one image if(allExportOK == true) alert("All Charts Are Exported Successfully."); else alert("All Charts Are Not Exported Successfully."); } }; That's all. I hope I can get quick reply from you, Thanks! Moses Kurniawan
  3. Hello, I have a page that using auto-render then export to server method to make a report. The script works perfectly almost all major browsers (FF, Chrome, Safari, Opera, IE6, IE7) but not IE8. Here is my script (I get it from this forum too and currently using it) function FC_Exported(exporStatus) { //seving the name of the exported image in a variable seperated by ';' //here we use the substring function to deduct the domain name from file location returnValue += exporStatus.fileName+';'; //Counting the number of chart exported by increasing this variable exportedCharts++; //checking the Status of the export and set the variable 'allExportOK' as false if there has any error if(exporStatus.statusCode != '1') allExportOK = false; //when all charts are exported give a messege whether there has any error or not? if(exportedCharts == totalCharts) { //if there is no error then we call a function show_popup() to marge all the exported image into one image if(allExportOK == true) show_popup(); else alert("All Charts Are Not Exported Successfully. You cannot export to PDF because the charts is still not complete. Please contact Administrator."); } }; If I execute code above on all browsers (FF, Chrome, Safari, Opera, IE6, IE7) the charts are exported successfully, but in IE8 it will display error as stated by "else alert" at the code above. In short, it fails. I am using the FusionCharts Developer Edition. Any solution? Thanks!
  4. Export chart to JPG then throw it into PDF

    Hi, thanks for the reply. Another problem ... hehehe. Each script given in this thread, is automatically export the chart on each page load. How to make the script active when something clicked (not on page load)? Thanks!
  5. Export chart to JPG then throw it into PDF

    Hello, Wow, still no reply then. I've been 90% troubleshoot my problem. Now I will simplify my problem so it will easy to answer. I have a multiple charts, then I want to save it into the server's disk, but I dont want it combined (like the sample provided before this post) So I want each chart exported as single JPG, not combined JPG. I am using FusionWidgets Developer Edition. Thanks!
  6. Export chart to JPG then throw it into PDF

    Hello, Sorry, I've just read the forum back and just almost 50% solving my problem Ok, new problem. I've been able to export all charts into JPG file in the specified directory. Now, how to change the filenaming schema of JPG exporting (because I did not find it on the documentation). For example I want the export filename become user1_221009_16-36-chart1.jpg, user1_221009_16-36-chart2.jpg, user1_221009_16-36-chart3.jpg, user1_221009_16-36-chart4.jpg, user1_221009_16-36-pie1.jpg. And then after exporting process already done and the images has been on the specified folder, the page automatically redirect to a page that will render to PDF but the page which will render PDF must remember the filename and path previously generated by the export button. Any suggestion and help will be appreciated.... Thanks!
  7. Hello, I have a problem to export charts and pie to JPG and render it directly to PDF. I have a single layout page contains 4 angular chart and 1 pie chart, and a button to generate the page into PDF. The library I am using to convert HTML to PDF is FPDF. FPDF can render the HTML script into PDF with same layout as the webpage (if you write the same code). FPDF can also insert the JPG image to be rendered on PDF file. Now I want to automatically export that 4 angluar and 1 pie to 4 JPG of angular and 1 JPG to a folder and let the FPDF render it as PDF. The problem is, to the point, I dont understand how to make them automatically export (I dont need to right click > export as blabla at the chart) to JPG then system put the generated JPG file into a folder and redirect the browser to load the PHP page that contains FPDF code, to render to PDF file within HTML and JPG file generated by the chart. Any helps would be appreciated. Thanks!
  8. Set default Pie 3D view as 2D, and sliced

    Hoho...unfortunately Pie2D cannot switch to 3D, but the 3D version can switch to 2D and this is I want. Its ok then. I will use 3D as default appearance only for now. Thanks !
  9. Set default Pie 3D view as 2D, and sliced

    Hello, I have using Pie3D on my sample data, I want to make it from first page load, the pie appears: 1. 2D 2. Sliced. I've been done already with sliced part but they still appear 3D when first pageload. Any solution how to make the pie appear 2D for each first page load? I am searching on the manual but I didnt find it. Thanks.
  10. Keep the angular max value display to specified string

    Hoho, Its ok, thanks. Hopefully it will be implemented on the next FusionCharts releases. This is my client request but I will trying to find another way or just leaving it like that. Thanks.
  11. Hello, I am a user of fusioncharts developer edition. I have an angular which described below : For example the minimum data is 0, and maximum is 200. If I set the value over 200, for example 250, the angular and dial is displaying morreee than 250. I have no problem with showValue because it just displaying the value. What do I want is : When the value is more than 200, for example 250, the angular and dial must still display 200, no more. showValue must not be have a problem because it just get and display the 250 value. Any solution? THanks!