STM71
Members-
Content count
4 -
Joined
-
Last visited
Everything posted by STM71
-
Client side export not working - Errors in FusionChartsExportComponent.js
STM71 posted a topic in FusionCharts and PHP
The FusionCharts XT client side export features no longer works or our Drupal 6 site. The web console shows the following errors in the FusionChartsExportCompenent.js. TypeError: _FCEO.trace is not a function TypeError: _FCEO.initializeComponent is not a function I believe these errors occur when the following line of code is executed. var myExportComponent = new FusionChartsExportObject("fcExporter1", "/FusionCharts/FCExporter.swf"); Until recently we were able to export Flash and javascript charts without a problem. Neither option works now and I have no idea what changed. Please help. The ability to export client side reports is very important to us. We are using FusionCharts XT (v3.3.1 - Service Release 1). The chart page has been attached. Here's the XML data, $strXML = "<graph xAxisName='Time' PYAxisName='Inside Temp (deg. F)' SYAxisName='Outside Temp.' bgColor='C5B470' canvasBgColor='C5B470' rotateNames='1' numdivlines='11' showValues='0' decimalPrecision='0' bgcolor='F3f3f3' bgAlpha='70' showColumnShadow='1' showShadow='0' divlinecolor='c5c5c5' divLineAlpha='60' showAlternateHGridColor='1' alternateHGridColor='f8f8f8' alternateHGridAlpha='60' PYAxisMinValue='59' PYAxisMaxValue='71' SYAxisMinValue='-16' SYAxisMaxValue='15' exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1'> <categories> <category name='March' /> <category name='April' /> <category name='May' /> <category name='June' /> <category name='July' /> </categories> <dataset seriesName='Product A' color='AFD8F8' showValues='0'> <set value='60' /> <set value='61' /> <set value='62' /> <set value='63' /> <set value='68' /> </dataset> <dataset seriesName='Product B' color='F6BD0F' showValues='0' > <set value='70' /> <set value='69' /> <set value='68' /> <set value='67' /> <set value='65' /> </dataset> <dataset seriesName='Total Quantity' color='8BBA00' showValues='0' parentYAxis='S' > <set value='-5' /> <set value='-14' /> <set value='14' /> <set value='10' /> <set value='12' /> </dataset> </graph>" Any assistance you can provide would be appreciated. -
Client side export not working - Errors in FusionChartsExportComponent.js
STM71 replied to STM71's topic in FusionCharts and PHP
Feel free to remove this post. The issue was related to an internal conflict. I would remove if I could. -
Chart Renders With Flash But Will Not With Javascript In Drupal 6.25
STM71 posted a topic in General usage
Please help. The example below, which was more or less copied from the FusionCharts site, works just fine when rendered with Flash, but will not render with Javascript. When I attempt to render with Javascript using "FC_SetRenderer( "javascript");" I get the message, "Loading Chart. Please Wait" that never goes away. The jquery.min, FusionCharts.HC & FusionChart.HC.Chart JavaScript files are present in the same directory as FusionCharts.js. We are currently using the trail version of FusionCharts XT, but will move to the paid version if we can get this issue worked out. Any assistance you can provide would be greatly appreciated. <?php drupal_add_js('/FusionCharts/FusionCharts.js'); ?> <?php //We have included ../Includes/FusionCharts.php, which contains functions //to help us easily embed the charts. include("../includes/FusionCharts.php"); ?> <?php // Store Name of Products $arrData[0][1] = "Product A"; $arrData[1][1] = "Product B"; $arrData[2][1] = "Product C"; $arrData[3][1] = "Product D"; $arrData[4][1] = "Product E"; $arrData[5][1] = "Product F"; // Store sales data for current year $arrData[0][2] = 567500; $arrData[1][2] = 815300; $arrData[2][2] = 556800; $arrData[3][2] = 734500; $arrData[4][2] = 676800; $arrData[5][2] = 648500; // Store sales data for previous year $arrData[0][3] = 547300; $arrData[1][3] = 584500; $arrData[2][3] = 754000; $arrData[3][3] = 456300; $arrData[4][3] = 754500; $arrData[5][3] = 437600; // Now, we need to convert this data into multi-series XML. // We convert using string concatenation. // $strXML - Stores the entire XML // $strCategories - Stores XML for the <categories> and child <category> elements // $strDataCurr - Stores XML for current year's sales // $strDataPrev - Stores XML for previous year's sales // Initialize <chart> element $strXML = "<chart caption='Sales by Product' numberPrefix='$' formatNumberScale='1' rotateValues='1' placeValuesInside='1' decimals='0' >"; // Initialize <categories> element - necessary to generate a multi-series chart $strCategories = "<categories>"; // Initiate <dataset> elements $strDataCurr = "<dataset seriesName='Current Year'>"; $strDataPrev = "<dataset seriesName='Previous Year'>"; // Iterate through the data foreach ($arrData as $arSubData) { // Append <category label='...' /> to strCategories $strCategories .= "<category label='" . $arSubData[1] . "' />"; // Add <set value='...' /> to both the datasets $strDataCurr .= "<set value='" . $arSubData[2] . "' />"; $strDataPrev .= "<set value='" . $arSubData[3] . "' />"; } // Close <categories> element $strCategories .= "</categories>"; //Close <dataset> elements $strDataCurr .= "</dataset>"; $strDataPrev .= "</dataset>"; // Assemble the entire XML now $strXML .= $strCategories . $strDataCurr . $strDataPrev . "</chart>"; #FC_SetRenderer( "javascript"); // Create the chart - MS Column 3D Chart with data contained in strXML echo renderChart("/drupalcharting/FusionCharts/MSColumn3D.swf", "", $strXML, "productSales", 600, 300, true, true); ?> -
Can somebody tell me why a '+' plus sign does not display in the XAxis labels for a Multi-Series Column 3D charts? I'm using the the Drupal API module with array data. The array data contains credits such as AA+, A+, B+, etc.., but the labels for the outputted chart are AA, A & B. Is there a work around for this? The problem is enhanced because the showLabels = 0 setting does not seem to be working. I can't display the correct labels and I can't get the incorrect labels not to display. $info->settings = array('Caption' => 'Credit Detail', 'bgColor'=> 'ffccff', 'yAxisName' => '% Market Value', 'numberPrefix' => '$', 'showBorder' =>'1', 'borderThickness' => '10', 'outCnvBaseFont' => 'Arial', 'outCnvBaseFontSize' => '14', 'outCnvBaseFontColor' => '63628A', 'showLabels' => '0', ); Please help.