﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionCharts Free / XML Issue  / Problem with rendering StackBar2d / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FusionCharts Forum</description><link>http://www.fusioncharts.com/forum/</link><webMaster>support@fusioncharts.com</webMaster><lastBuildDate>Tue, 02 Dec 2008 05:56:29 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Problem with rendering StackBar2d</title><link>http://www.fusioncharts.com/forum/Topic7030-41-1.aspx</link><description>Thanks for your feedback! I've spent couple of days trying to make it working and went back to the other option of building my setXML alone.&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 06 Jul 2008 01:41:14 GMT</pubDate><dc:creator>lipilates</dc:creator></item><item><title>RE: Problem with rendering StackBar2d</title><link>http://www.fusioncharts.com/forum/Topic7030-41-1.aspx</link><description>Hi,&lt;BR&gt; &lt;BR&gt;Please note that you would need to include FusionCharts.js in order to render the chart.&lt;BR&gt; &lt;BR&gt;As we go through the code we find that color for datasets are defined in various invalid ways:&lt;BR&gt; &lt;BR&gt;color=#FF0000 or color=black etc.&lt;BR&gt; &lt;BR&gt;Could you please note that you need to use only HEX coded color values WITHOUT hash # and &lt;BR&gt;not color names &lt;BR&gt; &lt;BR&gt;Please follow this format : &lt;BR&gt;e.g. color=F6BD0F&lt;BR&gt; &lt;BR&gt; &lt;BR&gt;We could not understand the code :&lt;BR&gt; &lt;BR&gt;$retHTML= &amp;lt;&amp;lt; # Render Chart&lt;BR&gt;$FC-&amp;gt;renderChart();&lt;BR&gt;Chartsection;&lt;BR&gt; &lt;BR&gt;return $retHTML;&lt;BR&gt; &lt;BR&gt; &lt;BR&gt;Are you using any function up here to return the rendered chart to another page or so?&lt;BR&gt; &lt;BR&gt;the PHP is invalid as per PHP coding in :&lt;BR&gt; &lt;BR&gt;$retHTML= &amp;lt;&amp;lt; # Render Chart&lt;BR&gt;$FC-&amp;gt;renderChart();&lt;BR&gt;Chartsection;&lt;BR&gt; &lt;BR&gt;You can not put functions in there and should be using &amp;lt;&amp;lt;&amp;lt;.&lt;BR&gt; &lt;BR&gt;So far returning is concerned, renderChart() prints the chart HTML and does not return anyting. &lt;BR&gt; &lt;BR&gt;Hence, i am afraid, as of now, you can not do things in this fashion. &lt;BR&gt;</description><pubDate>Thu, 03 Jul 2008 03:21:33 GMT</pubDate><dc:creator>Arindam</dc:creator></item><item><title>RE: Problem with rendering StackBar2d</title><link>http://www.fusioncharts.com/forum/Topic7030-41-1.aspx</link><description>hi</description><pubDate>Thu, 03 Jul 2008 03:13:06 GMT</pubDate><dc:creator>Arindam</dc:creator></item><item><title>RE: Problem with rendering StackBar2d</title><link>http://www.fusioncharts.com/forum/Topic7030-41-1.aspx</link><description>Thanks!&lt;br&gt;&lt;br&gt;Essentially I'm trying to render using the FusionCharts_Gen.php class with the $myvar-&gt;renderCharts() function in my PHP application but can't make it working...it's probably VERY sensitive to the js and swf location and also to the setDataXML structure. Enclose please fine the stackbar (I need one bar with dynamic sections as you can see from the code that coming from Mysql database HOWEVER I'M getting an EMPTY PAGE when I'm trying to call it inside the application. If you can help me what I need to check and make it working it will be great!&lt;br&gt;&lt;br&gt;&lt;?php&lt;br&gt;&lt;br&gt;  # Include FusionCharts PHP Class&lt;br&gt;  require_once('./Includes/FusionCharts_Gen.php');&lt;br&gt;  # Create Multiseries Column3D chart object using FusionCharts PHP Class&lt;br&gt;  $FC = new FusionCharts("StackedBar2D","350","120");&lt;br&gt;&lt;br&gt;  # Set the right range from the database...in this example I converted it to constant results to allow checking it&lt;br&gt;&lt;br&gt;  	$fullscale = 10;&lt;br&gt;	$Score = 6.4;&lt;br&gt;	$LRange = 3;&lt;br&gt;	$RRange = 7.8;&lt;br&gt;&lt;br&gt;$RiskRange = $LRange - 0;&lt;br&gt;$LeftNormalSide = $Score - $RiskRange ;&lt;br&gt;$MarkedPosition = 0.041;&lt;br&gt;$RightNormalSide = $RRange - ($Score - $MarkedPosition);&lt;br&gt;$GoodRange = $fullscale - $RRange- .1;&lt;br&gt;  &lt;br&gt;  # Set the relative path of the swf file ---- What is the current reference of the PHP file, the Class or my main php program???&lt;br&gt;&lt;br&gt;  $FC-&gt;setSWFPath("./Charts/");&lt;br&gt;&lt;br&gt;  # Store chart attributes in a variable&lt;br&gt;  $strParam="caption=;subcaption=;xAxisName=;yAxisName=Scale;numberPrefix=;decimalPrecision=0;showValues=0";&lt;br&gt;&lt;br&gt;  # Set chart attributes&lt;br&gt;  $FC-&gt;setChartParams($strParam);&lt;br&gt;&lt;br&gt;  # Add category names&lt;br&gt;  $FC-&gt;addCategory("Category 1");&lt;br&gt;&lt;br&gt;  # Create a new dataset&lt;br&gt;  $FC-&gt;addDataset("Risk","color=#FF0000");&lt;br&gt;  # Add chart values for the above dataset&lt;br&gt;  $FC-&gt;addChartData($RiskRange);&lt;br&gt;  &lt;br&gt;  # Create second dataset&lt;br&gt;  $FC-&gt;addDataset("Normal", "color=F6BD0F");&lt;br&gt;  # Add chart values for the second dataset&lt;br&gt;  $FC-&gt;addChartData($LeftNormalSide);&lt;br&gt;  &lt;br&gt;  # Create a new dataset&lt;br&gt;  $FC-&gt;addDataset("You are here", "color=black");&lt;br&gt;  # Add chart values for the above dataset&lt;br&gt;  $FC-&gt;addChartData($MarkedPosition);&lt;br&gt;  &lt;br&gt;  # Create second dataset&lt;br&gt;  $FC-&gt;addDataset("", "color=F6BD0F");&lt;br&gt;  # Add chart values for the second dataset&lt;br&gt;  $FC-&gt;addChartData($RightNormalSide);&lt;br&gt;  # Create a new dataset&lt;br&gt;  $FC-&gt;addDataset("Good", "color=#00CC00");&lt;br&gt;  # Add chart values for the above dataset&lt;br&gt;  $FC-&gt;addChartData($GoodRange);&lt;br&gt;  &lt;br&gt;?&gt;&lt;br&gt;    &lt;script language='javascript' src='./JSClass/FusionCharts.js'&gt;&lt;/script&gt;&lt;br&gt;&lt;?&lt;br&gt;$retHTML= &lt;&lt;&lt;Chartsection &lt;br&gt;     # Render Chart&lt;br&gt;      $FC-&gt;renderChart();&lt;br&gt;Chartsection;&lt;br&gt;&lt;br&gt;return $retHTML;&lt;br&gt;?&gt;</description><pubDate>Thu, 26 Jun 2008 14:51:09 GMT</pubDate><dc:creator>lipilates</dc:creator></item><item><title>RE: Problem with rendering StackBar2d</title><link>http://www.fusioncharts.com/forum/Topic7030-41-1.aspx</link><description>Hi lipilates,&lt;BR&gt;   here you are using Multi serise stack chart so you must provide Multi serise type of XML. please use Multi Serise type of XML DATA insight updateChart function. please see the code.&lt;/P&gt;&lt;P&gt;function updateChart(domId){&lt;BR&gt;   // Multi Serise type of XML DATA&lt;/P&gt;&lt;P&gt;   updateChartXML(domId,"&lt;FONT color=#dd3333&gt;&amp;lt;graph&amp;gt;&amp;lt;categories&amp;gt;&amp;lt;category name='' /&amp;gt;&amp;lt;/categories&amp;gt;&amp;lt;dataset seriesName='Update Value' color='#00FF00' showValues='0'&amp;gt;&amp;lt;set name='A' value='32' /&amp;gt;&amp;lt;/dataset&amp;gt;&amp;lt;/graph&amp;gt;&lt;/FONT&gt;");&lt;BR&gt;   &lt;/P&gt;&lt;P&gt;    //Disable the button&lt;BR&gt;    this.document.frmUpdate.btnUpdate.disabled = true;&lt;BR&gt;  }</description><pubDate>Thu, 26 Jun 2008 00:55:13 GMT</pubDate><dc:creator>Arindam</dc:creator></item><item><title>Problem with rendering StackBar2d</title><link>http://www.fusioncharts.com/forum/Topic7030-41-1.aspx</link><description>I'm trying to use the StackBar2d.swf and can't get it to work (similar with simple Column chart works)&lt;br&gt;&lt;br&gt;&lt;HTML&gt;&lt;br&gt;&lt;HEAD&gt;&lt;br&gt;	&lt;TITLE&gt;FusionCharts Free &amp; JavaScript - Updating chart using updateChartXML() Method&lt;/TITLE&gt;	&lt;br&gt;	&lt;style type="text/css"&gt;&lt;br&gt;	&lt;!--&lt;br&gt;	body {&lt;br&gt;		font-family: Arial, Helvetica, sans-serif;&lt;br&gt;		font-size: 12px;&lt;br&gt;	}&lt;br&gt;	--&gt;&lt;br&gt;	&lt;/style&gt;&lt;br&gt;	&lt;SCRIPT LANGUAGE="Javascript" SRC="./inc/js/FusionCharts.js"&gt;&lt;/SCRIPT&gt;&lt;br&gt;	&lt;SCRIPT LANGUAGE="JavaScript"&gt;&lt;br&gt;		/*&lt;br&gt;		 * updateChart method is called, when user clicks the button&lt;br&gt;		 * Here, we generate the XML data again and build the chart.		  &lt;br&gt;		 *	@param	domId	domId of the Chart&lt;br&gt;		*/&lt;br&gt;		function updateChart(domId){&lt;br&gt;			//using updateChartXML method defined in FusionCharts.js&lt;br&gt;			updateChartXML(domId,"&lt;graph&gt;&lt;set name='A' value='32' /&gt;&lt;/graph&gt;");&lt;br&gt;			//Disable the button&lt;br&gt;			this.document.frmUpdate.btnUpdate.disabled = true;&lt;br&gt;		}&lt;br&gt;	&lt;/SCRIPT&gt;&lt;br&gt;&lt;/HEAD&gt;&lt;br&gt;&lt;BODY&gt;&lt;br&gt;	&lt;CENTER&gt;&lt;br&gt;		&lt;h2&gt;FusionCharts Free &amp; JavaScript - Updating chart using updateChartXML() method&lt;/h2&gt;&lt;br&gt;		&lt;br&gt;		&lt;div id="chart1div"&gt;&lt;br&gt;			FusionCharts&lt;br&gt;		&lt;/div&gt;&lt;br&gt;		&lt;script language="JavaScript"&gt;					&lt;br&gt;			var chart1 = new FusionCharts("./inc/Charts/Charts/FCF_StackedBar2D.swf", "chart1Id", "400", "300", "1", "1");		   			&lt;br&gt;			chart1.setDataXML("&lt;graph xAxisName='' yAxisName='' caption='' subCaption='' &lt;br&gt; decimalPrecision='0' rotateNames='1' numDivLines='3' numberPrefix='' showValues='0' formatNumberScale='0'&gt;&lt;categories&gt;&lt;category name='' /&gt;&lt;/categories&gt;&lt;dataset seriesName='Risk Range' color='#FF0000' showValues='0'&gt;&lt;set value='5' /&gt;&lt;/dataset&gt;&lt;dataset seriesName='Normal'  color='F6BD0F' showValues='0'&gt;&lt;br&gt;&lt;set value='1.3' /&gt;&lt;/dataset&gt;&lt;/graph&gt;");&lt;br&gt;			chart1.render("chart1div");&lt;br&gt;		&lt;/script&gt;&lt;br&gt;		&lt;BR /&gt;&lt;br&gt;		&lt;form name='frmUpdate'&gt;&lt;br&gt;		&lt;input type='button' value='Change Data' onClick="javaScript:updateChart('chart1Id');" name='btnUpdate' /&gt;		&lt;br&gt;		&lt;/form&gt;&lt;br&gt;	&lt;/CENTER&gt;&lt;br&gt;&lt;/BODY&gt;&lt;br&gt;&lt;/HTML&gt;&lt;br&gt;</description><pubDate>Thu, 26 Jun 2008 00:16:28 GMT</pubDate><dc:creator>lipilates</dc:creator></item></channel></rss>