﻿<?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 v3 / Using FusionCharts / FusionCharts and PHP  / GRAPH DOESN'T APPEAR IN THE PAGE / 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>Wed, 03 Dec 2008 02:17:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>the address should have been&lt;br&gt;&lt;br&gt;[url]http://www.theneuralinvestor.com/system.php[/url]&lt;br&gt;&lt;br&gt;I have found a way to do this in wordpress.  I have used the wordpress get_header, get_footer, get_sidebar functions to keep the same theme, but accessed them on a page not creadted in wordpress by adding the following php code&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;require('wp-blog-header.php');&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;instead of making a template.&lt;br&gt;&lt;br&gt;The code now runs to create the chart, so it had something to do with WP templates.&lt;br&gt;&lt;br&gt;Now that this is working (as you can see from the link), it is an amazing product!&lt;br&gt;&lt;br&gt;</description><pubDate>Sat, 07 Jun 2008 14:54:34 GMT</pubDate><dc:creator>theneuralinvestor</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Here is a link to the page&lt;br&gt;&lt;br&gt;[url]http://www.theneuralinvestor.com/system/[/url]</description><pubDate>Sat, 07 Jun 2008 03:36:43 GMT</pubDate><dc:creator>theneuralinvestor</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Hi thanks for quick reply.  &lt;br&gt;&lt;br&gt;Indeed, i did get to teh point where by right clicking i could see "Movie not loaded in greyed" out text with another link to Flash 9&lt;br&gt;&lt;br&gt;I suspect it is not a path issue, becuase i can get this to work on a standard page using teh same paths... agree?&lt;br&gt;&lt;br&gt;If so, must be the wordpress security issue you mention... any ides on what thismight be??&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Sat, 07 Jun 2008 03:32:22 GMT</pubDate><dc:creator>theneuralinvestor</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Could you please attache here a screenshot of the screen that's being shown?&lt;/P&gt;&lt;P&gt;In any case if you let us the live wordpress URL where you are implementing this we would try debugging this live.&lt;/P&gt;&lt;P&gt;If you are getting a blank space in the place of the chart (while using renderChartHTML)_could you please try right clicking on that sapce to find if its showing "Movie Not Loaded"? If so its surely that the movie could not be loaded due to some path issue ro security issue in WordPress.</description><pubDate>Sat, 07 Jun 2008 03:07:48 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>i believe i am - as i mentioned i can get teh chart to work ok if i do not use a wordpress page.&lt;br&gt;&lt;br&gt;What i have done is created a template page that i can assign in wordpress.  On this template page i want to include the fusion charts charts.  If i try to create the charts in the template they do not work.  If I just use a standard page structure it works fine.&lt;br&gt;&lt;br&gt;How can i get this to work in my template?  It should not really make a difference but after 12 hours straight at trying to fix it i gave up.</description><pubDate>Sat, 07 Jun 2008 03:00:13 GMT</pubDate><dc:creator>theneuralinvestor</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Coudl you please make sure that you are using proper PATH to FusionCharts.js and other SWF files?</description><pubDate>Sat, 07 Jun 2008 00:38:26 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Also, here is my code for data and rendering &lt;br&gt;I have also attached my header file where i have placed the includes (note that the header file is called from the man script)&lt;br&gt;&lt;br&gt;Been all day and night on this one! still cant get the charts to render in this script (i can using a simple page structure, but that is no good to me because i want to inclde the charts in my wordpress blog)&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 06 Jun 2008 20:52:08 GMT</pubDate><dc:creator>theneuralinvestor</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Hi.  I also get just 'Chart.' showing.&lt;br&gt;&lt;br&gt;I have included the FusionCharts.js in the header and FusionCharts.php above the header.&lt;br&gt;&lt;br&gt;attached  is the section of code in the page source created by visiting the URL.&lt;br&gt;&lt;br&gt; (had to attach it as this forum executes the code and outputs - guess what... - "Chart.")&lt;br&gt;&lt;br&gt;As you can see my data is being created, but the chart just will not render.&lt;br&gt;&lt;br&gt;Any help appreciated.</description><pubDate>Fri, 06 Jun 2008 19:39:49 GMT</pubDate><dc:creator>theneuralinvestor</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>This is exactly what happens. Could you make a note on the manual about it? I came across the problem because I had indented the string in PHP to make options more readable...</description><pubDate>Mon, 31 Mar 2008 06:27:25 GMT</pubDate><dc:creator>Moranar</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Well yes,&lt;/P&gt;&lt;P&gt;New line characters would terminate the string in JavaScript. RenderChart() uses JavaScript to render charts. The whole XML is passed as a string. If you pass DataXML with newline characters in PHP that would mean a termination in stirng. Your error console in Firefox would surely show this. This would stop the execution and hence the chart wont be rendered. Rather the chart container DIV with text "Chart" remains.</description><pubDate>Mon, 31 Mar 2008 01:12:34 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Ahem, no. The file FusionCharts.js was there, and it was loaded as soon as I removed the newlines from the code. And this was straight PHP code, no AJAX involved. For the record, this is Windows XP SP2, Apache 2.2, PHP 5.2.5, the error visible on both Firefox 2.0.0.12 and IE 7.</description><pubDate>Thu, 27 Mar 2008 08:32:46 GMT</pubDate><dc:creator>Moranar</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Hi,&lt;P&gt;This may happen due to either of the 2 reasons.&lt;/P&gt;&lt;P&gt;1. You are not using FusionCharts.js or its not loaded : RenderChart() requires FusionCharts.js to be included in the page. Could you please try adding this to your Application Page using &amp;lt;script&amp;gt; tag?&lt;/P&gt;&lt;P&gt;2. You might be using ASP.NET.AJAX or some Tool of of ASP.NET.AJAX where this texts comes if you use RenderChart() method. For AJAX you should be using RenderChartHTML().</description><pubDate>Wed, 26 Mar 2008 06:51:53 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>I just discovered that FusionCharts seems to choke and output "Chart" if the string passed to renderChart (but not to renderChartHTML) contains newlines (the  character, in particular).</description><pubDate>Tue, 25 Mar 2008 12:09:38 GMT</pubDate><dc:creator>Moranar</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>hi,&lt;/P&gt;&lt;P&gt;1. RenderChartHTML is a basic function which adds a chart to a page using HTHML embedding method. This means the method will generate an HTML string that will contain help loading the chart. This is dones using &amp;lt;object&amp;gt;/&amp;lt;embed&amp;gt; elements. The returned strin might have similar structure.: (Injecting direct HTML to a page)&lt;BR&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;object ......&amp;gt;&lt;BR&gt;  &amp;lt;param name='movie' value='chart.swf'&amp;gt;&lt;BR&gt;  &amp;lt;param name='...' value='...'&amp;gt;&lt;BR&gt;...&lt;BR&gt;&amp;lt;embed src='chart.swf' .....&amp;gt;&amp;lt;/object&amp;gt;&lt;/P&gt;&lt;P&gt;** RenderChartHTML eariler did not supprort RegisterWithJS fucntionality of the charts. The new version of the ASP.NET 20. method found in InfoSoftGLobal.FusionCharts class has made this available.&lt;/P&gt;&lt;P&gt;2.Whereas  RenderChart uses JavaScript embedding method. (This method is used to override the IE - "Click Here to Activate.." ). It creates a DIV and a some lines of JavaScript codes that creats a FusionCharts JavaScript Object.Using this object the charts is rendered inside the DIV. So this is path HTML and path JavaSCript injecting. The JavaScript will handle the injecting of the &amp;lt;object&amp;gt;/&amp;lt;embed&amp;gt; tages for the charts. &lt;/P&gt;&lt;P&gt;This method will render string close to this :&lt;/P&gt;&lt;P&gt;&amp;lt;div id="name_div" &amp;gt;THIS TEXT WILL BE REPLACED BY THE CHART&amp;lt;/div&amp;gt;&lt;BR&gt;&amp;lt;script type="text/javascipt" lanuage="javascript"&amp;gt;&lt;BR&gt;   var chrt_name=new FusionChrts("chart.SWG","name_id","......);&lt;BR&gt;   if( strURL==true){&lt;/P&gt;&lt;P&gt;        chrt_name.setDataURL(URL);&lt;/P&gt;&lt;P&gt;}else{&lt;/P&gt;&lt;P&gt;        chrt_name.setDataXML(strXML);&lt;BR&gt;}&lt;/P&gt;&lt;P&gt;chrt_name.render("name_div");&lt;BR&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;**** You need to add/include FusionCharts.js file (to &amp;lt;head&amp;gt; ) in HTML page.Otherwise the chart will not render.&lt;/P&gt;&lt;P&gt;[ Note that when you add a inject a javascript using another javascript, the injected javascript will not be executed. Hence we recommend not to use RenderChart in AJAX callback, since AJAX is JavaScript and this javascript wont execute the javascript injected by RenderChart() (Untill and unless you write code to extract out all JavaSctipt code and eval() them).</description><pubDate>Thu, 21 Feb 2008 05:03:35 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Hello Sudipto,&lt;br&gt;&lt;br&gt;I was having the same problem as outlined in this thread and when I stumbled across this post I changed renderChart to renderChartHTML and it started working (well almost, invalid XML  now but thats for another thread I guess) .. so that is good. Could you please explain the differences between renderChart and renderChartHTML please?&lt;br&gt;&lt;br&gt;Many thanks</description><pubDate>Wed, 20 Feb 2008 03:02:18 GMT</pubDate><dc:creator>Sir P</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>thanks. =)</description><pubDate>Tue, 05 Feb 2008 10:07:41 GMT</pubDate><dc:creator>ethnocide</dc:creator></item><item><title>RE: GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;You need to provide an id to the chart:&lt;/P&gt;&lt;P&gt;echo renderChart("../FusionCharts/FCF_Line.swf", "", $strXML, &lt;STRONG&gt;"ChartID1"&lt;/STRONG&gt;, 600, 300,false,false);&lt;/P&gt;&lt;P&gt;Also did you include the FusionCharts.js file?&lt;/P&gt;&lt;P&gt;&amp;lt;SCRIPT LANGUAGE="Javascript" SRC="../FusionCharts/FusionCharts.js"&amp;gt;&amp;lt;/SCRIPT&amp;gt;&lt;/P&gt;&lt;P&gt;If not you can try using renderChartHTML once :&lt;/P&gt;&lt;P&gt;echo renderChartHTML("../FusionCharts/FCF_Line.swf", "", $strXML, &lt;STRONG&gt;"ChartID1"&lt;/STRONG&gt;, 600, 300,false);</description><pubDate>Tue, 05 Feb 2008 00:28:16 GMT</pubDate><dc:creator>Sudipto Choudhury</dc:creator></item><item><title>GRAPH DOESN'T APPEAR IN THE PAGE</title><link>http://www.fusioncharts.com/forum/Topic4353-31-1.aspx</link><description>line graph doesn't appear in the page. the only thing that appears in the page instead of the line graph is a text "Chart.". i cant figure out what is wrong with my code..&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;	include("../Includes/FusionCharts.php");&lt;br&gt;	include("../Includes/DBConn.php");&lt;br&gt;&lt;br&gt;$patientID = $_GET['patientID'];&lt;br&gt; $strXML = "&lt;graph caption='Disease Activity Scoring Index of ". $patientID . "subCaption='By DAS Index' xAxisName='Date of Consultation' yAxisMinValue='0' yAxisName='DAS 28' decimalPrecision='0' formatNumberScale='0' showNames='1' showValues='0' showAlternateHGridColor='1' AlternateHGridColor='ff5904' divLineColor='ff5904' divLineAlpha='20' alternateHGridAlpha='5'&gt;";&lt;br&gt;&lt;br&gt;$get_das = mysql_query("SELECT DISTINCT DASSCORE, CONSULTDATE FROM CONSULTATION WHERE PATIENTID='$patientID' ORDER BY CONSULTDATE ASC");&lt;br&gt;		  $index = 0;&lt;br&gt;		  if(mysql_num_rows($get_das) == 0){&lt;br&gt;		  	 echo "asa";&lt;br&gt;		  }&lt;br&gt;		  else{&lt;br&gt;		  	while($get_result = mysql_fetch_array($get_das, MYSQL_NUM))&lt;br&gt;				{&lt;br&gt;				$das_index[$index] = $get_result[0];&lt;br&gt;				$date[$index] = $get_result[1];&lt;br&gt;				$strXML .= "&lt;set name='" . $date[$index] . "' value='" . $das_index[$index] . "' hoverText='" . $date[$index] . "' /&gt;";&lt;br&gt;					&lt;br&gt;                                $index++;&lt;br&gt;				}&lt;br&gt;			}&lt;br&gt;				&lt;br&gt;$strXML .= "&lt;/graph&gt;";&lt;br&gt;					&lt;br&gt;echo renderChart("../FusionCharts/FCF_Line.swf", "", $strXML, "", 600, 300);&lt;br&gt;					&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;please help me with these. thanks.</description><pubDate>Mon, 04 Feb 2008 10:01:49 GMT</pubDate><dc:creator>ethnocide</dc:creator></item></channel></rss>