babuu

Members
  • Content count

    25
  • Joined

  • Last visited

Everything posted by babuu

  1. Hi Team, How to javascript click evet in legend of PIE CHAR? Please help me. Thanks Babu
  2. Click Event Supported Lengend

    Please help me......
  3. Click Event Supported Lengend

    Please help on this
  4. Hi, We are used pure javascript fusion charts(without flash).Working fine. we are using latest of fusioncharts. 1.we have implemented exporting images in our application by using php(Highcharts).Here one problem facing how to controling php site after saving images in localpath,its going php site how to solve this. 2.what is diffrent between SetDataXML and setDataURL? Problems are below please check it.Please help on these. Here we are observered. setDataXML-- one fired DrawComplete while click buuton. See once below code FusionCharts.setCurrentRenderer('JavaScript'); var myChart = new FusionCharts(path, "myChart123", width, height,'0', '1'); myChart.setDataXML(xml.join("")); myChart.render(divId); FusionCharts("myChart123").addEventListener ("DrawComplete" , myChartListener ); }; setDataURL-- everytime fired DrawComplete while click buuton. FusionCharts.setCurrentRenderer('JavaScript'); var myChart = new FusionCharts(path, "myChart123", width, height,'0', '1'); myChart.setDataURL("/app/p4p/sample.xml"); myChart.render(divId); FusionCharts("myChart123").addEventListener ("DrawComplete" , myChartListener ); }; Please help me. Thanks Babu
  5. Hi, we have done exporting images from php code(sample app configured in wamp server for saving image in local path) by using pure javascript (without flash). we have problem with redirect php site while downloading images.Need to be page itself. Dont go php site. How to solve this redirect problem? Please check it once below php code for saving image in local path. <?php /** * This file is part of the exporting module for Highcharts JS. * www.highcharts.com/license * * * Available POST variables: * * filename string The desired filename without extension * tempName string The name of the file that get stored in the server temporary location * type string The MIME type for export. * width int The pixel width of the exported raster image. The height is calculated. * svg string The SVG source code to convert. */ // Options define ('BATIK_PATH', 'batik-rasterizer.jar'); /////////////////////////////////////////////////////////////////////////////// ini_set('magic_quotes_gpc', 'off'); $type = $_POST['type']; $svg = (string) $_POST['svg']; $filename = (string) $_POST['filename']; // prepare variables if (!$filename) $filename = 'chart'; if (get_magic_quotes_gpc()) { $svg = stripslashes($svg); } $tempName = md5(rand()); // allow no other than predefined types if ($type == 'image/png') { $typeString = '-m image/png'; $ext = 'png'; } elseif ($type == 'image/jpeg') { $typeString = '-m image/jpeg'; $ext = 'jpg'; } elseif ($type == 'application/pdf') { $typeString = '-m application/pdf'; $ext = 'pdf'; } elseif ($type == 'image/svg+xml') { $ext = 'svg'; } $outfile = "babu/$tempName.$ext"; if (isset($typeString)) { // size if ($_POST['width']) { $width = (int)$_POST['width']; if ($width) $width = "-w $width"; } // generate the temporary file if (!file_put_contents("babu/$tempName.svg", $svg)) { die("Couldn't create temporary file. Check that the directory permissions for the /temp directory are set to 777."); } // do the conversion $output = shell_exec("java -jar ". BATIK_PATH ." $typeString -d $outfile $width babu/$tempName.svg"); // catch error if (!is_file($outfile) || filesize($outfile) < 10) { echo "<pre>$output</pre>"; echo "Error while converting SVG for menlo....."; } // stream it else { //header("Content-Disposition: attachment; filename=$filename.$ext"); //header("Content-Type: $type"); //echo file_get_contents($outfile); //echo $_SERVER['SERVER_NAME']; //echo $_SERVER['REQUEST_URI'];exit; file_put_contents("D:/sample/$tempName.$ext", file_get_contents($outfile)); } // delete it unlink("babu/$tempName.svg"); unlink($outfile); // SVG can be streamed directly back } else if ($ext == 'svg') { //header("Content-Disposition: attachment; filename=$filename.$ext"); //header("Content-Type: $type"); //echo $svg; file_put_contents("D:/sample/$tempName.$ext", $svg); } else { echo "Invalid type"; } ?> -------------------------------------------------------------------------------------------------- xml file -------- <chart caption='Monthly Revenue' xAxisName='Month' yAxisName='Revenue' numberPrefix=' showValues='0' exportAtClient="0" html5ExportHandler="http://localhost:8088/export/charts/index.php" exportEnabled='1' exportAction='save' exportShowMenuItem='1' exportCallback="FC_Exported"> <set label='Jan' value='420000' /> <set label='Feb' value='910000' /> <set label='Mar' value='720000' /> <set label='Apr' value='550000' /> <set label='May' value='810000' /> <set label='Jun' value='510000' /> <set label='Jul' value='680000' /> </chart> chart render code ----------------- FusionCharts.setCurrentRenderer('JavaScript'); var myChart = new FusionCharts( "charts/Column2D.swf", "myChartId", "300", "300", "0", "1" ); myChart.setDataURL("charts/Data.xml"); myChart.render("chartContainer"); Click download button ---------------- var chartObject1 = getChartFromId('myChartId'); if( chartObject1.hasRendered() ) { chartObject1.exportChart(); } Thanks Babu
  6. Thank you very much for response. port:8088 worked on php site for "http://localhost:8088/export/charts/index.php" ,This url used in xml for exporting images. java application Url.. http://localhost/app...oye_profile.jsp. thanks babu
  7. header("Location: http://localhost/app/employe_profile.jsp"); //This is local url
  8. Thanks for reply. I have used header() in php but page refreshed while click download button. when click download button,we are able saving images in local path but struct at php site. Please find attachment for reference. Thanks Babu
  9. Ipad Fusioncharts Not Working

    Hey, Please clear cache for all browsers. Earlier i got this error. Thanks
  10. Problem With Dual Y

    Hey, Please check it once (MSCombiDY2D.swf). http://docs.fusioncharts.com/charts/contents/guide-for-web-developers/csnet/CS_BasicExample.html thanks babu
  11. Ipad Fusioncharts Not Working

    Hey Please active line FusionCharts.setCurrentRenderer('JavaScript'); in code ,if use javascript chart (without flash) of latest version works fine. Thanks Babu
  12. Thanks for response. Please give me your mailid, i am sending sample app to ur mail . Thanks Babu
  13. Showing Data On Pie

    Hey muralikanth, Could u provide sample for that. Thanks babu
  14. Pie Chart

    Hey, Added Listener while rendering.find below code . function myChartListener(eventObject, argumentsObject) { /// add code for popup } /// render code FusionCharts.setCurrentRenderer('JavaScript'); var chartId = "ChartId"+ Math.floor(Math.random() * (new Date()).getTime() + 1); var chiefExecutiveChart = new FusionCharts(path, chartId, width,height,'0', '1'); chiefExecutiveChart.setDataXML(xml.join("")); chiefExecutiveChart.render(divId); FusionCharts(chartId).addEventListener("click", myChartListener); thanks babu
  15. Hi, Page not refreshed while click download button. Please help me.
  16. Page not refreshed while click download button. Please advice.
  17. Thank you very much for replay. I am implemented header but refreshed page because java application through call php site (export images), here urls dynamically changing. Please advice..
  18. Error In Chrom Console

    Hi all, I am working on pure javascript fusion charts for all browsers. FF and IE Working fine but Chrome not working I am getting this error in chrome. XMLHttpRequest cannot load file:///C:/wamp/www/export/charts/Data.xml. Origin null is not allowed by Access-Control-Allow-Origin. Could any help....
  19. Error In Chrom Console

    Thank you for response.
  20. Error In Chrom Console

    Sorry forgot chart type, Column2D.swf
  21. Error In Chrom Console

    Thanks for reply , 1. Version fusioncharts/3.2.3-sr3.5347 2. <script type="text/javascript"> FusionCharts.setCurrentRenderer('JavaScript'); var myChart = new FusionCharts( "charts/Column2D.swf", "myChartId", "300", "300", "0", "1" ); myChart.setXMLUrl("charts/Data.xml"); myChart.render("chartContainer"); --> </script> 3. (chart XML) <chart caption='Monthly Revenue' xAxisName='Month' yAxisName='Revenue' numberPrefix=' showValues='0' exportAtClient="0" html5ExportHandler="http://localhost/export/charts/index.php" exportEnabled='1' exportAction='save' exportShowMenuItem='1'> <set label='Jan' value='420000' /> <set label='Feb' value='910000' /> <set label='Mar' value='720000' /> <set label='Apr' value='550000' /> <set label='May' value='810000' /> <set label='Jun' value='510000' /> <set label='Jul' value='680000' /> </chart> Please check above details as per asked. Thanks Babu