Search the Community
Showing results for tags 'fcexporter'.
Found 3 results
-
Hello, We are currently using FusionCharts in our php web application, it works well and we really like it. But we need to save the charts as images as they are rendered in the page to later on create a pdf with these images. We are using the php-wrapper to render the charts and i am trying to use the php-export-handler lib provided with the fusioncharts package. I use this script to export a chart to image: <script type="text/javascript"> function ExportMyChart() { var chartObject = FusionCharts('chartResumenCompletoID'); if( chartObject.hasRendered() ) chartObject.exportChart(); } </script> My PHP code is as: $arrDataResumenCompleto = array( "chart" => array( "caption" => "", "theme" => "fint", "paletteColors" => "#989830", "yAxisName" => "Porcentaje Logro (%)", "xAxisName" => "", "yAxisMaxValue" => "100", "yAxisMinValue" => "0", "plotSpacePercent" => "40", "numberSuffix" => "%", "labelDisplay" => "auto", "useEllipsesWhenOverflow" => "0", "xAxisNameFontSize" => "13", "yAxisNameFontSize" => "13", "exportEnabled" => "1", "exportAtClient" => "0", "exportHandler" => WP_PLUGIN_URL . '/wp-aprendo/lib/fusioncharts/export-handlers/php-export-handler/FCExporter.php', "exportAction" => "save", "exportShowMenuItem"=>'0', "exportFormat" => "png", "animation" => "0" ), "data" => array() ); /** *More code to fill the data array with values. */ <div class="apChart" id="<?php echo "chartResumenCompleto"; ?>"></div> <input type="button" value="Export My Chart" onclick="ExportMyChart()" /> /* JSON Encode the data to retrieve the string containing the JSON representation of the data in the array. */ $jsonEncodedData = json_encode($arrDataResumenCompleto); /* Create an object for the column chart using the FusionCharts PHP class constructor. Syntax for the constructor is ` FusionCharts("type of chart", "unique chart id", width of the chart, height of the chart, "div id to render the chart", "data format", "data source")`. Because we are using JSON data to render the chart, the data format will be `json`. The variable `$jsonEncodeData` holds all the JSON data for the chart, and will be passed as the value for the data source parameter of the constructor. */ $columnChart = new FusionCharts("bar2d", "chartResumenCompletoID", "100%", "300", "chartResumenCompleto", "json", $jsonEncodedData); // Render the chart $columnChart->render(); The chart is well rendered. My first problem, when i click on the button to export, is that I see in firebug the following message: &DOMId=&height=0&width=0&fileName=&statusMessage= Export Resource not found.&statusCode=0 After digging in the code of FCExporter.php, we see that $exporterResource = "FCExporter_IMAGE-DATA2PNG.php". We don't know why. After hardcoding in FCExporter.php $exporterResource = "FCExporter_RLE2IMG.php" for purposes of testing. It saves an image in server with only light blue background. Can you please help us with this? It is really urgent... Greetings, Nicolas Daumalle.
-
Capturing Processes Not Started Before I Move The Scrollbar Down
guoguo929 posted a topic in FusionCharts and JSP
These days I am working with fcexporter to export images from fusioncharts on my JSP web page, and I got this problem: when I need to export several images that my IE browser cannot display all of them and needs to move the scrollbar down to see the charts, the fcexporter only starts to export the charts I can see in the current IE window. When I move down the scrollbar after a long time, I see the rest charts are starting to be exported at the progress from zero. How can I solve this problem? Thanks~! -
Hello, I am using client-side export handler for saving charts to images/pdfs. Everything functions well. The only issue I have is that the Export Component (FCExporter.swf) doesn't display friendly chart names in the left column: If I were to set "caption" attribute on my charts, then Export Component will show it in the left column, but my charts must have no captions. I have set "exportFileName" attribute on my charts and clicking on Save button will display the proper file name, but it is impossible to tell which chart is behind the Save button by looking at the Export Component UI. Is there a way to tell Export Component how to "name" each chart in the left column instead of showing generic "ChartImage #"? I initialize Export Component as: fcExporter = new FusionChartsExportObject('fcExporterSwf', '@Url.Content("~/Content/FusionCharts/FCExporter.swf")', { fullMode: '1', saveMode: 'both', showAllowedTypes: '1' }); I have tried setting "caption" attribute via JS as shown below, but that didn't help at all. function FC_ExportReady(DOMId) { fcExporter.exportAttributes.caption = "my friendly report name for DOMId"; } What can be done without setting chart's "caption" attribute? Why doesn't Export Component fall back to using value of "exportFileName" or accept "fcExporter.exportAttributes.caption"? I am using FCExporter.swf from FusionCharts XT Intranet version 3.3.1 (4th April, 2013). Swf file itself is 24,726 bytes, last modified on Thursday, April 04, 2013, 8:44:12 PM. Regards, Ilya
- 3 replies
-
- FCExporter.swf
- FCExporter
- (and 4 more)