﻿<?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 / FusionCharts Free and PHP  </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>Fri, 16 May 2008 01:30:02 GMT</lastBuildDate><ttl>20</ttl><item><title>Accents make me crazy! Really!</title><link>http://www.fusioncharts.com/forum/Topic6270-43-1.aspx</link><description>Sorry to post again a question about accent. But really after reading all topics about accent problems, I really think I miss it!&lt;br&gt;&lt;br&gt;I'm working with Drupal 6.2 generating some data. Creating the XML file which is accessible from an URL (/data). On top of my XML generation function I added the Drupal header function :&lt;br&gt;- drupal_set_header('Content-type: text/xml; charset=utf-8');&lt;br&gt;My Firefox confirms that, really.&lt;br&gt;&lt;br&gt;And my call to the SWF is like this :&lt;br&gt;&lt;br&gt;[quote]&lt;br&gt;&amp;lt;!-- START Code Block for Chart abdc --&amp;gt;&lt;br&gt;&amp;lt;object classid=&amp;quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&amp;quot; codebase=&amp;quot;http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0&amp;quot; width=&amp;quot;500&amp;quot; height=&amp;quot;400&amp;quot; id=&amp;quot;abdc&amp;quot;&amp;gt;&lt;br&gt;  &amp;lt;param name=&amp;quot;allowScriptAccess&amp;quot; value=&amp;quot;always&amp;quot; /&amp;gt;&lt;br&gt;  &amp;lt;param name=&amp;quot;movie&amp;quot; value=&amp;quot;/swf/MSStackedColumn2D.swf&amp;quot;/&amp;gt;		&lt;br&gt;  &amp;lt;param name=&amp;quot;FlashVars&amp;quot; value=&amp;quot;&amp;amp;chartWidth=500&amp;amp;chartHeight=400&amp;amp;debugMode=1&amp;amp;dataURL=http://localhost:8888/data&amp;quot; /&amp;gt;&lt;br&gt;  &amp;lt;param name=&amp;quot;quality&amp;quot; value=&amp;quot;high&amp;quot; /&amp;gt;&lt;br&gt;  &amp;lt;embed src=&amp;quot;/swf/MSStackedColumn2D.swf&amp;quot; FlashVars=&amp;quot;&amp;amp;chartWidth=500&amp;amp;chartHeight=400&amp;amp;debugMode=1&amp;amp;dataURL=http://localhost:8888/data&amp;quot; quality=&amp;quot;high&amp;quot; width=&amp;quot;500&amp;quot; height=&amp;quot;400&amp;quot; name=&amp;quot;abdc&amp;quot; allowScriptAccess=&amp;quot;always&amp;quot; type=&amp;quot;application/x-shockwave-flash&amp;quot; pluginspage=&amp;quot;http://www.macromedia.com/go/getflashplayer&amp;quot; /&amp;gt;&lt;br&gt;&amp;lt;/object&amp;gt;&lt;br&gt;&amp;lt;!-- END Code Block for Chart abdc --&amp;gt;&lt;br&gt;[/quote]&lt;br&gt;&lt;br&gt;And I still have thoses dummies characters!&lt;br&gt;&lt;br&gt;PLEASE PLEASE HELP !!!&lt;br&gt;&lt;br&gt;Thank you guys!&lt;br&gt;&lt;br&gt;Jérémy</description><pubDate>Thu, 15 May 2008 11:32:56 GMT</pubDate><dc:creator>jchatard</dc:creator></item><item><title>Gantt Chart (php + MySQL)</title><link>http://www.fusioncharts.com/forum/Topic6257-43-1.aspx</link><description>Hi, &lt;P&gt;After several experiments with the gantt chart to receive data from MySQL passed by php, I got - "Chart" as text without chart.&lt;/P&gt;&lt;P&gt;I will really appreciate any help to solve this!&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mariela</description><pubDate>Wed, 14 May 2008 11:56:15 GMT</pubDate><dc:creator>mariela</dc:creator></item><item><title>Using Charts to grab from database and show times</title><link>http://www.fusioncharts.com/forum/Topic6149-43-1.aspx</link><description>Well i have a game that shows amounts of money that everyone has.&lt;br&gt;&lt;br&gt;Im using the chart to show that amount of money in the game. The problem I have is I dunno how to make it show the dates...so you will be able to see the amount of money in the game yesterday and the amount today. Im not sure how to add that and I need some help. you can visit this link to see what the chart looks like so far.&lt;br&gt;&lt;br&gt;www.crimesociety.com/Default.php</description><pubDate>Thu, 08 May 2008 16:08:38 GMT</pubDate><dc:creator>Alpo</dc:creator></item><item><title>getXML() not returning xml</title><link>http://www.fusioncharts.com/forum/Topic6110-43-1.aspx</link><description>I can't seem to get $FC-&gt;getXML(); to work properly. I have a chart that is being rendered fine and is receiving the xml data properly, and I can see the xml data string in my javascript but in my php code I cannot seem to store the xml data. Is there something I'm doing wrong?&lt;br&gt;&lt;br&gt;Here's what I'm trying to do in the php file after i've set all chart params and created the instance of the chart:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;&lt;br&gt;# Create Line chart Object&lt;br&gt;$FC = new FusionCharts("MSLine","600","400");&lt;br&gt;&lt;br&gt;# set the relative path of the swf file&lt;br&gt;$FC-&gt;setSWFPath("./dl/chart/FusionCharts/");&lt;br&gt;&lt;br&gt;# (skipping addition of param setting code and addition of data, it's working as the chart renders)&lt;br&gt;&lt;br&gt;$xml = $FC-&gt;getXML();&lt;br&gt;    &lt;br&gt;# Render Chart&lt;br&gt;$FC-&gt;renderChart();&lt;br&gt;    &lt;br&gt;echo "xml : " . $xml;&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;The problem is I can't see my $xml variable that I wish to echo with the php file. Is there something I'm not doing write in my call to getXML(); ?</description><pubDate>Tue, 06 May 2008 10:48:40 GMT</pubDate><dc:creator>Mac</dc:creator></item><item><title>Multi Series from complex Query</title><link>http://www.fusioncharts.com/forum/Topic6099-43-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I have a query that selects data from a few tables, that I'm trying to get added to a multi series chart.&lt;br&gt;&lt;br&gt;Here's the query:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;select qjr.qjr_response, qjq.quickjournal_question_text, qjj.quickjournal_journal_date&lt;br&gt;from quickjournal_journals as qjj&lt;br&gt;join quickjournal_questions as qjq on qjj.quickjournal_id = qjq.quickjournal_id&lt;br&gt;join quickjournal_responses as qjr on&lt;br&gt;  (qjq.quickjournal_question_id = qjr.qjr_question_id and qjr.qjr_journal_id = qjj.quickjournal_journal_id)&lt;br&gt;  where qjj.uid = 551&lt;br&gt;  and qjj.quickjournal_journal_date &gt;= '2005-10-08' and qjj.quickjournal_journal_date &lt;= '2005-11-07'&lt;br&gt;  and qjq.quickjournal_question_id in (1, 2, 3, 4, 5, 6, 7, 8, 11, 13, 15, 16)&lt;br&gt;  order by qjq.quickjournal_question_text, qjj.quickjournal_journal_date ASC&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;Here's a sample of results returned:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;qjr_response 	quickjournal_question_text 	quickjournal_journal_date&lt;br&gt;6  	Concentration / Focus  	2005-11-01&lt;br&gt;8 	Concentration / Focus 	2005-11-02&lt;br&gt;192 	Daily Weight (lbs)	2005-11-01&lt;br&gt;191 	Daily Weight (lbs)	2005-11-02&lt;br&gt;8 	Hours of sleep 	2005-11-01&lt;br&gt;7 	Hours of sleep 	2005-11-02&lt;br&gt;8 	My Mood 	2005-11-01&lt;br&gt;5 	My Mood 	2005-11-02&lt;br&gt;6 	Pain and Soreness 	2005-11-01&lt;br&gt;9 	Pain and Soreness 	2005-11-02&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;And here's my code from my php file to get the information added to the LineMS chart type (multi series):&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;# Set Chart Data&lt;br&gt;$FC-&gt;addDatasetsFromDatabase($rs, "qjq.quickjournal_question_text", "qjr.qjr_response" );&lt;br&gt;&lt;br&gt;# Render Chart&lt;br&gt;$FC-&gt;renderChart();&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;All I'm getting is a chart with NaNM on the y-axis and nothing on the x-axis. Any thoughts on what I'm doing wrong?</description><pubDate>Mon, 05 May 2008 14:53:25 GMT</pubDate><dc:creator>Mac</dc:creator></item><item><title>"No Data to Display" when run on website, but it works correctly against local DB</title><link>http://www.fusioncharts.com/forum/Topic6049-43-1.aspx</link><description>Can anyone help with this? &lt;P&gt;I have a MySQL databse on my PC that is an exact replica of the one on my web hosting server. Before uploading the files I tested everything against the local database and the charts display correctly. When I move the files to the web server and run the application, the charts don't display. I get  "No Data to Display". &lt;/P&gt;&lt;P&gt;I'm using the dataURL method with PHP Class.&lt;/P&gt;&lt;P&gt;I've set the permissions on the files to 755 (owner can read, write and execute,the world can read and execute). The files all exist in the correct paths.&lt;/P&gt;&lt;P&gt;I've checked that DBConn.php has the correct information for host, user, password and database.&lt;/P&gt;&lt;P&gt;I've tried running the sql against the remote database and it produces the data I'm expecting. &lt;/P&gt;&lt;P&gt;What am I doing wrong?</description><pubDate>Thu, 01 May 2008 11:24:06 GMT</pubDate><dc:creator>qzgbd9</dc:creator></item><item><title>couldn't you make changes to you code that you have provided in particualr thread.</title><link>http://www.fusioncharts.com/forum/Topic5997-43-1.aspx</link><description>Suggestion that you have made( could you please download the FusionWidgets Blueprint Application code and refer to function buildXMLMonthlyRev() in DataGen.php) contains following code:&lt;/P&gt;&lt;P&gt;$MonthArray=array(); &lt;BR&gt; while($oRs=mysql_fetch_array($result)){&lt;BR&gt;     $MonthArray[$oRs['Month']]=$oRs['TotalSales'];&lt;BR&gt;  &lt;BR&gt; }&lt;BR&gt; // we again retireve the monthly revenue value form array and create set XML elements for each month&lt;BR&gt; for($i=1;$i&amp;lt;=12;$i++){&lt;BR&gt;  $strXML .= "&amp;lt;set value='" . $MonthArray[$i] . "' /&amp;gt;";&lt;BR&gt; }&lt;/P&gt;&lt;P&gt;Instead of $strXML I have used $strCat .&lt;/P&gt;&lt;P&gt;Means you have used for loop out of while loop.&lt;/P&gt;&lt;P&gt;In our categorywise sales example, you have used mysql_data_seek() function. I made &lt;/P&gt;&lt;P&gt;changes to the my code as per above code. But because of this for loop( which out of while loop) it does not display proper labels (means month labels) &amp;amp; I think this is because of&lt;/P&gt;&lt;P&gt;we are using mysql_data_seek($resultCat) . Could'nt you make changes to the your code?&lt;/P&gt;&lt;P&gt;(even though As my need is a bit different from the original design you had)</description><pubDate>Tue, 29 Apr 2008 02:58:22 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>can we show month also which dont have data?</title><link>http://www.fusioncharts.com/forum/Topic5995-43-1.aspx</link><description>&lt;IMG src="http://www.fusioncharts.com/forum/Uploads/Images/eb2a3df4-5e4f-45f9-8e5a-07ba.bmp"&gt;&lt;/P&gt;&lt;P&gt; can we show absent months also? Means In above bar chart January ,september, oct, dec.months  dont have data thats why they are absent but I want there labels there.(same code that you have posted in particular thread).</description><pubDate>Tue, 29 Apr 2008 01:10:41 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>can you solve this problem?</title><link>http://www.fusioncharts.com/forum/Topic5979-43-1.aspx</link><description>&lt;IMG height=139 src="http://www.fusioncharts.com/forum/Uploads/Images/03e142b5-a4cb-4524-be7d-5110.bmp" width=453&gt;&lt;/P&gt;&lt;P&gt;I have set the following code to display 0 for particular bar (same code that you have posted to particular thread)&lt;/P&gt;&lt;P&gt;while($arrCat[$mc++]&amp;lt;$ors{'months1'])&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;$strDataXML .="&amp;lt;set value='0.00001'/&amp;gt;";&lt;/P&gt;&lt;P&gt;  }</description><pubDate>Mon, 28 Apr 2008 06:55:09 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>No I want following solution for the pervious question?</title><link>http://www.fusioncharts.com/forum/Topic5971-43-1.aspx</link><description>&lt;IMG src="http://www.fusioncharts.com/forum/Uploads/Images/96950155-3397-42b0-8e2a-67bf.bmp"&gt;&lt;/P&gt;&lt;P&gt;I want 0 (zero) as shown above, means when there is no data present I want to show zero there. e.g. In picture for february month there is no data for other categories except for produce category. I want to show 0 (zero) as shown above for other category. Also I want to show 0 (zero) for month which dont have any data. e.g. I have shown March month.</description><pubDate>Mon, 28 Apr 2008 02:52:55 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>how to add zero ( or how to show zero) in bar chart when there is no data present</title><link>http://www.fusioncharts.com/forum/Topic5962-43-1.aspx</link><description>&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;&lt;P&gt;&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;&lt;/P&gt;&lt;/SPAN&gt;Below I have given picture of bar chart. I want to display zero for bar which don't have data.Means consider following case where Febuary month contains one category while others don't have data. I want zero (0) there. Also If there is not any data present in database for particular month, in that case I want to display zero there. In following case &lt;P&gt;march, april ,may etc. where there is not any data. I want to display there labels along with &lt;/P&gt;&lt;P&gt;zero (0) on top .&lt;/P&gt;&lt;P&gt;&lt;IMG style="WIDTH: 864px; HEIGHT: 358px" height=284 src="http://www.fusioncharts.com/forum/Uploads/Images/7c20fd56-2a79-4100-98e6-7687.bmp" width=864&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt; &lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;</description><pubDate>Mon, 28 Apr 2008 00:18:23 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>how to add zero ( or how to show zero) in bar chart when there is no data present</title><link>http://www.fusioncharts.com/forum/Topic5959-43-1.aspx</link><description>Below I have given picture of bar chart. I want to display zero for bar which don't have data.Means consider following case where Febuary month contains one category while others don't have data. I want zero (0) there. Also If there is not any data present in database for particular month, in that case I want to display zero there. In following case &lt;/P&gt;&lt;P&gt;march, april ,may etc. where there is not any data. I want to display there labels along with &lt;/P&gt;&lt;P&gt;zero (0) on top .&lt;/P&gt;&lt;P&gt;&lt;IMG style="WIDTH: 864px; HEIGHT: 337px" height=284 src="http://www.fusioncharts.com/forum/Uploads/Images/7c20fd56-2a79-4100-98e6-7687.bmp" width=864&gt;</description><pubDate>Sat, 26 Apr 2008 03:42:22 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>problem with example that you have given in FusionCharts Blueprint Application - PHP + MySQL version</title><link>http://www.fusioncharts.com/forum/Topic5930-43-1.aspx</link><description> got some problem with example you have given free php &amp;amp; mysql sample.(FusionCharts Blueprint Application - PHP + MySQL version)&lt;P&gt;This error contains in sales by category page (i.e. multiseries example).(pages that contains data to show multiseries charts are Data_SalesByCategory.php,Default.php  &amp;amp; DataGen.php)&lt;/P&gt;&lt;P&gt;I have changed tables fc_orders, fc_orderdetails &amp;amp; fc_products as follows.&lt;/P&gt;&lt;P&gt;I have changed orderdate to 2/5/1994 for orderid 10249 in fc_orders table. In fc_orderdetails table  orderid 10249 contains two productid 14 &amp;amp; 51. In fc_products table , productid 14's category id is 7 &amp;amp; productid 51's category id is 7.&lt;/P&gt;&lt;P&gt;Means bar chart should show Feb(means second month) data. But it does not show that data.&lt;/P&gt;&lt;P&gt;Because you have set flag $catXMLDone for only first product 'Beverages'. Can you find the solution</description><pubDate>Fri, 25 Apr 2008 03:37:18 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>have you got my previous question?</title><link>http://www.fusioncharts.com/forum/Topic5933-43-1.aspx</link><description>have you got my previous question? send me reply....I am waiting....</description><pubDate>Fri, 25 Apr 2008 05:58:45 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>problem with example that you have given in FusionCharts Blueprint Application - PHP + MySQL version</title><link>http://www.fusioncharts.com/forum/Topic5932-43-1.aspx</link><description>got some problem with example you have given free php &amp;amp; mysql sample.(FusionCharts Blueprint Application - PHP + MySQL version) &lt;P&gt;This error contains in sales by category page (i.e. multiseries example).(pages that contains data to show multiseries charts are Data_SalesByCategory.php,Default.php  &amp;amp; DataGen.php)&lt;/P&gt;&lt;P&gt;I have changed tables fc_orders, fc_orderdetails &amp;amp; fc_products as follows.&lt;/P&gt;&lt;P&gt;I have changed orderdate to 2/5/1994 for orderid 10249 in fc_orders table. In fc_orderdetails table  orderid 10249 contains two productid 14 &amp;amp; 51. In fc_products table , productid 14's category id is 7 &amp;amp; productid 51's category id is 7.&lt;/P&gt;&lt;P&gt;Means bar chart should show Feb(means second month) data. But it does not show that data.&lt;/P&gt;&lt;P&gt;Because you have set flag $catXMLDone for only first product 'Beverages'. Can you find the solution &lt;IMG src="http://www.fusioncharts.com/forum/Uploads/Images/c53dbc86-04fe-4000-9237-f2c8.bmp"&gt;</description><pubDate>Fri, 25 Apr 2008 05:40:04 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>problem with example that you have given in free php &amp; mysql</title><link>http://www.fusioncharts.com/forum/Topic5929-43-1.aspx</link><description>&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;I got some problem with example you have given free php &amp;amp; mysql sample. &lt;P&gt;This error contains in sales by category page (i.e. multiseries example). &lt;/P&gt;&lt;P&gt;I have changed tables fc_orders, fc_orderdetails &amp;amp; fc_products as follows.&lt;/P&gt;&lt;P&gt;I have changed orderdate to 2/5/1994 for orderid 10249 in fc_orders table. In fc_orderdetails table  orderid 10249 contains two productid 14 &amp;amp; 51. In fc_products table , productid 14's category id is 7 &amp;amp; productid 51's category id is 7.&lt;/P&gt;&lt;P&gt;Means bar chart should show Feb(means second month) data. But it does not show that data.&lt;/P&gt;&lt;P&gt;Because you have set flag $catXMLDone for only first product 'Beverages'. Can you find the solution &amp;amp; tell me what correction should I make?&lt;/SPAN&gt; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Fri, 25 Apr 2008 02:46:46 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>Please reply me for the following question that I have posted!!!!!!!</title><link>http://www.fusioncharts.com/forum/Topic5937-43-1.aspx</link><description>Reply me!!!!!!!!!!</description><pubDate>Fri, 25 Apr 2008 08:54:16 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>problem with example you have given in free php &amp; mysql</title><link>http://www.fusioncharts.com/forum/Topic5928-43-1.aspx</link><description>I got some problem with example you have given free php &amp;amp; mysql sample.&lt;/P&gt;&lt;P&gt;This error contains in sales by category page (i.e. multiseries example). &lt;/P&gt;&lt;P&gt;I have changed tables fc_orders, fc_orderdetails &amp;amp; fc_products as follows.&lt;/P&gt;&lt;P&gt;I have changed orderdate to 2/5/1994 for orderid 10249 in fc_orders table. In fc_orderdetails table  orderid 10249 contains two productid 14 &amp;amp; 51. In fc_products table , productid 14's category id is 7 &amp;amp; productid 51's category id is 7.&lt;/P&gt;&lt;P&gt;Means bar chart should show Feb(means second month) data. But it does not show that data.&lt;/P&gt;&lt;P&gt;Because you have set flag $catXMLDone for only first product 'Beverages'. Can you find the solution &amp;amp; tell me what correction should I make?</description><pubDate>Fri, 25 Apr 2008 01:59:51 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>problem with multiseries bar chart in php with mysql as database</title><link>http://www.fusioncharts.com/forum/Topic5907-43-1.aspx</link><description>&lt;IMG src="http://www.fusioncharts.com/forum/Uploads/Images/c539d6e9-4efa-4418-a2b0-2196.bmp"&gt;&lt;/P&gt;&lt;P&gt;Above bar chart does not display data according to query result. According to your suggestion I have checked  xml file, according to that xml file it shows correct output.&lt;/P&gt;&lt;P&gt;But my problem is with the flag that I am using for setting the day label( means 9,11,12 in above example).Above bar chart should show day 4 before 9 &amp;amp; one bar of orange color on that day.But it shows that on  day '9'  instead of day '4'. This is happening because &lt;/P&gt;&lt;P&gt;of flag that I have used for setting day label( I am using the flag $catXMLDone that you have used in php &amp;amp; mysql free example multiseries example i.e. get sales by product bar chart). I am giving the following php  code. can you tell me the solution?&lt;/P&gt;&lt;P&gt; $strXML = "&amp;lt;graph caption='Factory  Output ' subcaption='(In Units)' xAxisName='Date' formatNumberScale='0' decimalPrecision='0' palette='" . getPalette() . "' &amp;gt;";&lt;BR&gt; &lt;BR&gt;   //To store categories - also flag to check whether category is already generated&lt;BR&gt;  $catXMLDone = false;&lt;BR&gt; //Initialize XML elements&lt;BR&gt; $strCat = "&amp;lt;categories&amp;gt;";&lt;BR&gt; &lt;BR&gt; //First we need to get product type id from the database&lt;BR&gt;  $strSQL = "SELECT DISTINCT(p.product_type_id) as ids FROM products as p WHERE p.product_type_id &amp;gt;='3' GROUP BY ids ";&lt;/P&gt;&lt;P&gt; $result = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt; &lt;BR&gt;  //To store datasets and sets&lt;BR&gt;    $strDataXML = "";&lt;BR&gt; &lt;BR&gt;   if ($result) &lt;BR&gt;   {&lt;BR&gt;    &lt;BR&gt;         while($orsCat = mysql_fetch_array($result)) &lt;BR&gt;      {&lt;BR&gt;      &lt;BR&gt;            //Add this category as dataset&lt;BR&gt;            $strDataXML .= "&amp;lt;dataset seriesName='".$orsCat['ids']."' color='".getFCColor()."' &amp;gt;";&lt;/P&gt;&lt;P&gt;     $strSQL = "SELECT COUNT(oi.product_id) as Total,  Day(o.order_complete) as days,    p.product_type_id as typeid  FROM order_items as oi, orders as o,products as p WHERE p.product_type_id = '".$orsCat['ids']."' AND p.product_id = oi.product_id AND o.order_complete &amp;gt;= '2008-4-4 00:00:00' AND o.order_complete &amp;lt;= '2008-4-12 00:00:00' AND o.order_id = oi.order_id GROUP BY days";&lt;BR&gt;     //Execute it&lt;BR&gt;            $result2 = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt;            while($ors = mysql_fetch_array($result2))&lt;BR&gt;             {&lt;BR&gt;      &lt;BR&gt;                     //Append &amp;lt;category label=''&amp;gt; if not already done&lt;BR&gt;          &lt;BR&gt;                    if (!$catXMLDone) &lt;BR&gt;                    {&lt;BR&gt;                   $strCat .= "&amp;lt;category name='" .$ors['days']. "' /&amp;gt;";&lt;BR&gt;       &lt;BR&gt;                    }&lt;BR&gt;                 //Append data&lt;BR&gt;                   $strDataXML .= "&amp;lt;set value='" . $ors['Total'] . "'/&amp;gt;";&lt;BR&gt;            }&lt;BR&gt;            //Update flag that we've appended categories  &lt;BR&gt;            $catXMLDone = true;&lt;BR&gt;            //Clear up objects&lt;BR&gt;            mysql_free_result($result2);&lt;BR&gt;            //Close dataset element&lt;BR&gt;            $strDataXML .= "&amp;lt;/dataset&amp;gt;";&lt;BR&gt;        }&lt;BR&gt;    }&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;/categories&amp;gt;&lt;BR&gt; $strCat .= "&amp;lt;/categories&amp;gt;";&lt;BR&gt; //Create full XML&lt;BR&gt; $strXML .= $strCat.$strDataXML;&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;graph&amp;gt; element&lt;BR&gt;    $strXML .= "&amp;lt;/graph&amp;gt;";&lt;BR&gt; &lt;BR&gt;    //Create the chart - Column 2D Chart with data from strXML&lt;BR&gt; echo renderChart("FusionCharts/FCF_MSColumn3D.swf", "", $strXML, "FactoryDetailed", 600, 300, false, false);</description><pubDate>Thu, 24 Apr 2008 00:50:12 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>problem with multiseries bar chart in php with mysql as database</title><link>http://www.fusioncharts.com/forum/Topic5909-43-1.aspx</link><description>&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;&lt;IMG style="WIDTH: 647px; HEIGHT: 247px" height=236 src="http://www.fusioncharts.com/forum/Uploads/Images/c539d6e9-4efa-4418-a2b0-2196.bmp" width=650&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;SPAN&gt;&lt;P&gt;Above bar chart does not display data according to query result. According to your suggestion I have checked  xml file, according to that xml file it shows correct output.&lt;/P&gt;&lt;P&gt;But my problem is with the flag that I am using for setting the day label( means 9,11,12 in above example).Above bar chart should show day 4 before 9 &amp;amp; one bar of orange color on that day.But it shows that on  day '9'  instead of day '4'. This is happening because &lt;/P&gt;&lt;P&gt;of flag that I have used for setting day label( I am using the flag $catXMLDone that you have used in php &amp;amp; mysql free example multiseries example i.e. get sales by product bar chart). I am giving the following php  code. can you tell me the solution?&lt;/P&gt;&lt;P&gt; $strXML = "&amp;lt;graph caption='Factory  Output ' subcaption='(In Units)' xAxisName='Date' formatNumberScale='0' decimalPrecision='0' palette='" . getPalette() . "' &amp;gt;";&lt;BR&gt; &lt;BR&gt;   //To store categories - also flag to check whether category is already generated&lt;BR&gt;  $catXMLDone = false;&lt;BR&gt; //Initialize XML elements&lt;BR&gt; $strCat = "&amp;lt;categories&amp;gt;";&lt;BR&gt; &lt;BR&gt; //First we need to get product type id from the database&lt;BR&gt;  $strSQL = "SELECT DISTINCT(p.product_type_id) as ids FROM products as p WHERE p.product_type_id &amp;gt;='3' GROUP BY ids ";&lt;/P&gt;&lt;P&gt; $result = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt; &lt;BR&gt;  //To store datasets and sets&lt;BR&gt;    $strDataXML = "";&lt;BR&gt; &lt;BR&gt;   if ($result) &lt;BR&gt;   {&lt;BR&gt;    &lt;BR&gt;         while($orsCat = mysql_fetch_array($result)) &lt;BR&gt;      {&lt;BR&gt;      &lt;BR&gt;            //Add this category as dataset&lt;BR&gt;            $strDataXML .= "&amp;lt;dataset seriesName='".$orsCat['ids']."' color='".getFCColor()."' &amp;gt;";&lt;/P&gt;&lt;P&gt;     $strSQL = "SELECT COUNT(oi.product_id) as Total,  Day(o.order_complete) as days,    p.product_type_id as typeid  FROM order_items as oi, orders as o,products as p WHERE p.product_type_id = '".$orsCat['ids']."' AND p.product_id = oi.product_id AND o.order_complete &amp;gt;= '2008-4-4 00:00:00' AND o.order_complete &amp;lt;= '2008-4-12 00:00:00' AND o.order_id = oi.order_id GROUP BY days";&lt;BR&gt;     //Execute it&lt;BR&gt;            $result2 = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt;            while($ors = mysql_fetch_array($result2))&lt;BR&gt;             {&lt;BR&gt;      &lt;BR&gt;                     //Append &amp;lt;category label=''&amp;gt; if not already done&lt;BR&gt;          &lt;BR&gt;                    if (!$catXMLDone) &lt;BR&gt;                    {&lt;BR&gt;                   $strCat .= "&amp;lt;category name='" .$ors['days']. "' /&amp;gt;";&lt;BR&gt;       &lt;BR&gt;                    }&lt;BR&gt;                 //Append data&lt;BR&gt;                   $strDataXML .= "&amp;lt;set value='" . $ors['Total'] . "'/&amp;gt;";&lt;BR&gt;            }&lt;BR&gt;            //Update flag that we've appended categories  &lt;BR&gt;            $catXMLDone = true;&lt;BR&gt;            //Clear up objects&lt;BR&gt;            mysql_free_result($result2);&lt;BR&gt;            //Close dataset element&lt;BR&gt;            $strDataXML .= "&amp;lt;/dataset&amp;gt;";&lt;BR&gt;        }&lt;BR&gt;    }&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;/categories&amp;gt;&lt;BR&gt; $strCat .= "&amp;lt;/categories&amp;gt;";&lt;BR&gt; //Create full XML&lt;BR&gt; $strXML .= $strCat.$strDataXML;&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;graph&amp;gt; element&lt;BR&gt;    $strXML .= "&amp;lt;/graph&amp;gt;";&lt;BR&gt; &lt;BR&gt;    //Create the chart - Column 2D Chart with data from strXML&lt;BR&gt; echo renderChart("FusionCharts/FCF_MSColumn3D.swf", "", $strXML, "FactoryDetailed", 600, 300, false, false); &lt;/P&gt;&lt;/SPAN&gt;</description><pubDate>Thu, 24 Apr 2008 01:49:28 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>did you get my previous question?</title><link>http://www.fusioncharts.com/forum/Topic5910-43-1.aspx</link><description>Please reply to my previous question?</description><pubDate>Thu, 24 Apr 2008 02:35:44 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>multiseries bar chart with php. Reply me!!!!</title><link>http://www.fusioncharts.com/forum/Topic5913-43-1.aspx</link><description>&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;Reply me please!!!!!!!!!!!!&lt;IMG style="WIDTH: 650px; HEIGHT: 238px" height=236 src="http://www.fusioncharts.com/forum/Uploads/Images/c539d6e9-4efa-4418-a2b0-2196.bmp" width=650&gt;&lt;SPAN&gt; &lt;P&gt;Above bar chart does not display data according to query result. According to your suggestion I have checked  xml file, according to that xml file it shows correct output.&lt;/P&gt;&lt;P&gt;But my problem is with the flag that I am using for setting the day label( means 9,11,12 in above example).Above bar chart should show day 4 before 9 &amp;amp; one bar of orange color on that day.But it shows that on  day '9'  instead of day '4'. This is happening because &lt;/P&gt;&lt;P&gt;of flag that I have used for setting day label( I am using the flag $catXMLDone that you have used in php &amp;amp; mysql free example multiseries example i.e. get sales by product bar chart). I am giving the following php  code. can you tell me the solution?&lt;/P&gt;&lt;P&gt; $strXML = "&amp;lt;graph caption='Factory  Output ' subcaption='(In Units)' xAxisName='Date' formatNumberScale='0' decimalPrecision='0' palette='" . getPalette() . "' &amp;gt;";&lt;BR&gt; &lt;BR&gt;   //To store categories - also flag to check whether category is already generated&lt;BR&gt;  $catXMLDone = false;&lt;BR&gt; //Initialize XML elements&lt;BR&gt; $strCat = "&amp;lt;categories&amp;gt;";&lt;BR&gt; &lt;BR&gt; //First we need to get product type id from the database&lt;BR&gt;  $strSQL = "SELECT DISTINCT(p.product_type_id) as ids FROM products as p WHERE p.product_type_id &amp;gt;='3' GROUP BY ids ";&lt;/P&gt;&lt;P&gt; $result = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt; &lt;BR&gt;  //To store datasets and sets&lt;BR&gt;    $strDataXML = "";&lt;BR&gt; &lt;BR&gt;   if ($result) &lt;BR&gt;   {&lt;BR&gt;    &lt;BR&gt;         while($orsCat = mysql_fetch_array($result)) &lt;BR&gt;      {&lt;BR&gt;      &lt;BR&gt;            //Add this category as dataset&lt;BR&gt;            $strDataXML .= "&amp;lt;dataset seriesName='".$orsCat['ids']."' color='".getFCColor()."' &amp;gt;";&lt;/P&gt;&lt;P&gt;     $strSQL = "SELECT COUNT(oi.product_id) as Total,  Day(o.order_complete) as days,    p.product_type_id as typeid  FROM order_items as oi, orders as o,products as p WHERE p.product_type_id = '".$orsCat['ids']."' AND p.product_id = oi.product_id AND o.order_complete &amp;gt;= '2008-4-4 00:00:00' AND o.order_complete &amp;lt;= '2008-4-12 00:00:00' AND o.order_id = oi.order_id GROUP BY days";&lt;BR&gt;     //Execute it&lt;BR&gt;            $result2 = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt;            while($ors = mysql_fetch_array($result2))&lt;BR&gt;             {&lt;BR&gt;      &lt;BR&gt;                     //Append &amp;lt;category label=''&amp;gt; if not already done&lt;BR&gt;          &lt;BR&gt;                    if (!$catXMLDone) &lt;BR&gt;                    {&lt;BR&gt;                   $strCat .= "&amp;lt;category name='" .$ors['days']. "' /&amp;gt;";&lt;BR&gt;       &lt;BR&gt;                    }&lt;BR&gt;                 //Append data&lt;BR&gt;                   $strDataXML .= "&amp;lt;set value='" . $ors['Total'] . "'/&amp;gt;";&lt;BR&gt;            }&lt;BR&gt;            //Update flag that we've appended categories  &lt;BR&gt;            $catXMLDone = true;&lt;BR&gt;            //Clear up objects&lt;BR&gt;            mysql_free_result($result2);&lt;BR&gt;            //Close dataset element&lt;BR&gt;            $strDataXML .= "&amp;lt;/dataset&amp;gt;";&lt;BR&gt;        }&lt;BR&gt;    }&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;/categories&amp;gt;&lt;BR&gt; $strCat .= "&amp;lt;/categories&amp;gt;";&lt;BR&gt; //Create full XML&lt;BR&gt; $strXML .= $strCat.$strDataXML;&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;graph&amp;gt; element&lt;BR&gt;    $strXML .= "&amp;lt;/graph&amp;gt;";&lt;BR&gt; &lt;BR&gt;    //Create the chart - Column 2D Chart with data from strXML&lt;BR&gt; echo renderChart("FusionCharts/FCF_MSColumn3D.swf", "", $strXML, "FactoryDetailed", 600, 300, false, false); &lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;</description><pubDate>Thu, 24 Apr 2008 04:40:28 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>how to connect with mysql database and fusionchart with php?</title><link>http://www.fusioncharts.com/forum/Topic5906-43-1.aspx</link><description>i am a beginner.&lt;br&gt;pls tell me how to connect with mysql database and fusionchart with php.&lt;br&gt;my email is tharsoe@gmail.com.</description><pubDate>Wed, 23 Apr 2008 23:20:01 GMT</pubDate><dc:creator>tharsoe</dc:creator></item><item><title>multiseries bar chart with php</title><link>http://www.fusioncharts.com/forum/Topic5880-43-1.aspx</link><description>&lt;IMG src="http://www.fusioncharts.com/forum/Uploads/Images/9cca6318-4fc7-473c-8cc7-9171.bmp"&gt;&lt;P&gt;Above image displayed does not show proper data .&lt;/P&gt;&lt;P&gt;June (i.e Jun in graph) month should not contains orange bar. It should be present in Jul&lt;/P&gt;&lt;P&gt;month. Why this is happening? It shows proper data up to May Month.&lt;/P&gt;&lt;P&gt;I am giving my php code below. &lt;/P&gt;&lt;P&gt;    $strXML = "&amp;lt;graph caption='Passport'  subcaption='(In Units)' xAxisName='Date' yAxisName='Quantity' formatNumberScale='0' decimalPrecision='0'&amp;gt;";&lt;/P&gt;&lt;P&gt; &lt;BR&gt;   //To store categories - also flag to check whether category is&lt;BR&gt; //already generated&lt;BR&gt;   $catXMLDone = false;&lt;BR&gt; //Initialize XML elements&lt;BR&gt; $strCat = "&amp;lt;categories&amp;gt;";&lt;BR&gt; &lt;BR&gt; //First we need to get product type id(categories) &lt;/P&gt;&lt;P&gt; $strSQL = "SELECT DISTINCT(pt.product_type_id) as ids, pt.product_type_desc as description FROM product_type as pt, products as p WHERE pt.product_type_id &amp;gt;='3'  AND p.product_type_id = pt.product_type_id  ";&lt;/P&gt;&lt;P&gt;&lt;BR&gt;    $result = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt; &lt;BR&gt;  //To store datasets and sets&lt;BR&gt;    $strDataXML = "";&lt;BR&gt; &lt;BR&gt;   if ($result) &lt;BR&gt;   {&lt;BR&gt;        while($orsCat = mysql_fetch_array($result)) &lt;BR&gt;      {&lt;BR&gt;            //Add this category as dataset&lt;BR&gt;            $strDataXML .= "&amp;lt;dataset seriesName='".$orsCat['description']."' color='". getFCColor() ."'&amp;gt;";&lt;/P&gt;&lt;P&gt;    //Now, we get the data for that factory&lt;BR&gt;      $strSQL = "SELECT COUNT(oi.product_id) as Total, Month(o.order_complete) as months1 ,Year(o.order_complete) as years FROM order_items as oi, orders as o,products as p WHERE p.product_type_id = '".$orsCat['ids']."' AND p.product_id = oi.product_id AND Year(o.order_complete)='2008' AND o.order_id = oi.order_id AND oi.status_id &amp;lt;='6' GROUP BY months1";&lt;BR&gt;     //Execute it&lt;BR&gt;            $result2 = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt;            while($ors = mysql_fetch_array($result2))&lt;BR&gt;           {&lt;BR&gt;     &lt;BR&gt;   //Append &amp;lt;category label=''&amp;gt; if not already done&lt;BR&gt;                if (!$catXMLDone) &lt;BR&gt;                 {&lt;BR&gt;                   $strCat .= "&amp;lt;category name='" . MonthName($ors['months1'],true). "'/&amp;gt;";&lt;BR&gt;     &lt;BR&gt;                }&lt;BR&gt;      &lt;BR&gt;               //Append data&lt;BR&gt;                 $strDataXML .= "&amp;lt;set value='" . $ors['Total'] . "'/&amp;gt;";&lt;BR&gt;      &lt;BR&gt;    &lt;BR&gt;          }&lt;BR&gt;            //Update flag that we've appended categories  &lt;BR&gt;            $catXMLDone = true;&lt;BR&gt;            //Clear up objects&lt;BR&gt;            mysql_free_result($result2);&lt;BR&gt;            //Close dataset element&lt;BR&gt;            $strDataXML .= "&amp;lt;/dataset&amp;gt;";&lt;BR&gt;      }&lt;BR&gt; }&lt;BR&gt;      //Close &amp;lt;/categories&amp;gt;&lt;BR&gt; $strCat .= "&amp;lt;/categories&amp;gt;";&lt;BR&gt; //Create full XML&lt;BR&gt; $strXML .= $strCat.$strDataXML;&lt;/P&gt;&lt;P&gt;       //Close &amp;lt;graph&amp;gt; element&lt;BR&gt;    $strXML .= "&amp;lt;/graph&amp;gt;";</description><pubDate>Wed, 23 Apr 2008 06:49:10 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>Multiseries barchart in php with mysql database (problem with bar chart )</title><link>http://www.fusioncharts.com/forum/Topic5874-43-1.aspx</link><description>&lt;IMG style="WIDTH: 618px; HEIGHT: 209px" height=211 src="http://www.fusioncharts.com/forum/Uploads/Images/4438ed32-8653-4ca3-b3d2-e8a8.bmp" width=650&gt;&lt;/P&gt;&lt;P&gt;Above image displayed does not show proper data .&lt;/P&gt;&lt;P&gt;June (i.e Jun in graph) month should not contains orange bar. It should be present in Jul&lt;/P&gt;&lt;P&gt;month. Why this is happening? It shows proper data up to May Month.&lt;/P&gt;&lt;P&gt;I am giving my php code below. &lt;/P&gt;&lt;P&gt;    $strXML = "&amp;lt;graph caption='Passport'  subcaption='(In Units)' xAxisName='Date' yAxisName='Quantity' formatNumberScale='0' decimalPrecision='0'&amp;gt;";&lt;/P&gt;&lt;P&gt; &lt;BR&gt;   //To store categories - also flag to check whether category is&lt;BR&gt; //already generated&lt;BR&gt;   $catXMLDone = false;&lt;BR&gt; //Initialize XML elements&lt;BR&gt; $strCat = "&amp;lt;categories&amp;gt;";&lt;BR&gt; &lt;BR&gt; //First we need to get product type id(categories) &lt;/P&gt;&lt;P&gt; $strSQL = "SELECT DISTINCT(pt.product_type_id) as ids, pt.product_type_desc as description FROM product_type as pt, products as p WHERE pt.product_type_id &amp;gt;='3'  AND p.product_type_id = pt.product_type_id  ";&lt;/P&gt;&lt;P&gt;&lt;BR&gt;    $result = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt; &lt;BR&gt;  //To store datasets and sets&lt;BR&gt;    $strDataXML = "";&lt;BR&gt; &lt;BR&gt;   if ($result) &lt;BR&gt;   {&lt;BR&gt;        while($orsCat = mysql_fetch_array($result)) &lt;BR&gt;      {&lt;BR&gt;            //Add this category as dataset&lt;BR&gt;            $strDataXML .= "&amp;lt;dataset seriesName='".$orsCat['description']."' color='". getFCColor() ."'&amp;gt;";&lt;/P&gt;&lt;P&gt;    //Now, we get the data for that factory&lt;BR&gt;      $strSQL = "SELECT COUNT(oi.product_id) as Total, Month(o.order_complete) as months1 ,Year(o.order_complete) as years FROM order_items as oi, orders as o,products as p WHERE p.product_type_id = '".$orsCat['ids']."' AND p.product_id = oi.product_id AND Year(o.order_complete)='2008' AND o.order_id = oi.order_id AND oi.status_id &amp;lt;='6' GROUP BY months1";&lt;BR&gt;     //Execute it&lt;BR&gt;            $result2 = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt;            while($ors = mysql_fetch_array($result2))&lt;BR&gt;           {&lt;BR&gt;     &lt;BR&gt;   //Append &amp;lt;category label=''&amp;gt; if not already done&lt;BR&gt;                if (!$catXMLDone) &lt;BR&gt;                 {&lt;BR&gt;                   $strCat .= "&amp;lt;category name='" . MonthName($ors['months1'],true). "'/&amp;gt;";&lt;BR&gt;     &lt;BR&gt;                }&lt;BR&gt;      &lt;BR&gt;               //Append data&lt;BR&gt;                 $strDataXML .= "&amp;lt;set value='" . $ors['Total'] . "'/&amp;gt;";&lt;BR&gt;      &lt;BR&gt;    &lt;BR&gt;          }&lt;BR&gt;            //Update flag that we've appended categories  &lt;BR&gt;            $catXMLDone = true;&lt;BR&gt;            //Clear up objects&lt;BR&gt;            mysql_free_result($result2);&lt;BR&gt;            //Close dataset element&lt;BR&gt;            $strDataXML .= "&amp;lt;/dataset&amp;gt;";&lt;BR&gt;      }&lt;BR&gt; }&lt;BR&gt;      //Close &amp;lt;/categories&amp;gt;&lt;BR&gt; $strCat .= "&amp;lt;/categories&amp;gt;";&lt;BR&gt; //Create full XML&lt;BR&gt; $strXML .= $strCat.$strDataXML;&lt;/P&gt;&lt;P&gt;       //Close &amp;lt;graph&amp;gt; element&lt;BR&gt;    $strXML .= "&amp;lt;/graph&amp;gt;";</description><pubDate>Wed, 23 Apr 2008 05:44:20 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>can we set height &amp; width of individual bar in bar chart in multiseries example</title><link>http://www.fusioncharts.com/forum/Topic5805-43-1.aspx</link><description>I am using php  &amp;amp; mysql. I have prepared multiseries bar chart using mysql database.&lt;/P&gt;&lt;P&gt;How can we set the height &amp;amp; width of individual bar in bar chart ? does set element provide any attribute for that?</description><pubDate>Mon, 21 Apr 2008 05:32:40 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>Using array - how to add hyperlink?</title><link>http://www.fusioncharts.com/forum/Topic5494-43-1.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;When generating an array to use with addchartdatafromarray function, where do I put the link to another page/chart?&lt;/P&gt;&lt;P&gt;EG &lt;/P&gt;&lt;P&gt;&amp;lt;SNIPPET&amp;gt;&lt;/P&gt;&lt;P&gt; $twoweeksago = strtotime("15 days ago");&lt;BR&gt; $i=0;&lt;BR&gt; $nowie = strtotime("now");&lt;BR&gt; &lt;BR&gt; //echo date("d/m/Y",$twoweeksago);&lt;BR&gt; //echo date("d/m/Y",$nowie);&lt;BR&gt; // set up categoriy names and blank the data array&lt;BR&gt; while($twoweeksago&amp;lt;$nowie) {&lt;/P&gt;&lt;P&gt;&lt;BR&gt;  $fcatnames[$i]=date("d M", $twoweeksago);&lt;BR&gt;  $qstart=date("Y/m/d 00:00:00", $twoweeksago);&lt;BR&gt;  $qend=date("Y/m/d 23:59:59", $twoweeksago);&lt;BR&gt;  $twoweeksago+=86400;&lt;BR&gt;  $fcatdata[0][$i+2]=0;&lt;BR&gt;  $query = "SELECT sum(minutes) as minns from time_rec where who_inits = '".$who."' and date_posted &amp;gt; '".$qstart."' and date_posted &amp;lt; '".$qend."'";&lt;BR&gt;  $qry = mysql_query($query, $conn) or die(mysql_error());&lt;BR&gt;  $rows = mysql_fetch_array($qry);&lt;BR&gt;  $fcatdata[1][$i+2]=$rows[0]/6;&lt;BR&gt;  $i++;}&lt;/P&gt;&lt;P&gt; $FCa-&amp;gt;addChartDatafromArray($fcatdata,$fcatnames);&lt;BR&gt; $FCa-&amp;gt;renderChart();&lt;/P&gt;&lt;P&gt;&amp;lt;/SNIPPET&amp;gt;&lt;/P&gt;&lt;P&gt;Where within the array do I put the link url?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Millsey</description><pubDate>Tue, 08 Apr 2008 17:09:59 GMT</pubDate><dc:creator>Millsey</dc:creator></item><item><title>how to give different colour to bar chart in multiseries format</title><link>http://www.fusioncharts.com/forum/Topic5737-43-1.aspx</link><description>how to give different colour in multiseries format in php with mysql as database.I am using free fusioncharts version means fusioncharts free</description><pubDate>Thu, 17 Apr 2008 08:26:45 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>can we compare user date input with databae containing date column</title><link>http://www.fusioncharts.com/forum/Topic5825-43-1.aspx</link><description>I want to compare date user input with date column in database. But that date column contains date in the following format 2008/4/2 means date contains '/'.&lt;/P&gt;&lt;P&gt;Then in this case does php code give the valid bar chart. Because date contains '/' special character.</description><pubDate>Tue, 22 Apr 2008 08:03:42 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>multiseries bar chart with php &amp; mysql database</title><link>http://www.fusioncharts.com/forum/Topic5824-43-1.aspx</link><description>Following is the php code that I am using. Following example gives the multiseries bar chart according to  selected start date &amp;amp; end date. But suppose I have given $start_date='2008-4-1' &amp;amp; $end_date = '2008-4-12'   then following example gives the output (means bar) only for few dates between $start_date &amp;amp; $end_date. But following queries runs fine in database &amp;amp; gives correct output. But bar chart does not gives all records of queries. Tell me the &lt;/P&gt;&lt;P&gt;solution?&lt;/P&gt;&lt;P&gt;$strXML = "&amp;lt;graph caption='Passport And Visa Sales' subcaption='(In Units)' xAxisName='Date' yAxisName = 'Quantity'  formatNumberScale='0' decimalPrecision='0'&amp;gt;"&lt;BR&gt;    &lt;BR&gt; &lt;BR&gt;   //To store categories - also flag to check whether category is&lt;BR&gt; //already generated&lt;BR&gt;   $catXMLDone = false;&lt;BR&gt; //Initialize XML elements&lt;BR&gt;   $strCat = "&amp;lt;categories&amp;gt;";&lt;BR&gt; &lt;BR&gt; //First we need to get product type id (categories) &lt;/P&gt;&lt;P&gt; $strSQL = "SELECT DISTINCT(p.product_type_id) as ids, pt.product_type_desc as description FROM products as p, product_type as pt WHERE p.product_type_id &amp;gt;2  AND p.product_type_id = pt.product_type_id ";&lt;/P&gt;&lt;P&gt;&lt;BR&gt;    $result = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt; &lt;BR&gt;  //To store datasets and sets&lt;BR&gt;    $strDataXML = "";&lt;BR&gt; &lt;BR&gt;   if ($result) &lt;BR&gt;   {&lt;BR&gt;        while($orsCat = mysql_fetch_array($result)) &lt;BR&gt;       {  &lt;BR&gt;      &lt;BR&gt;            //Add this category as dataset&lt;BR&gt;            $strDataXML .= "&amp;lt;dataset seriesName='".$orsCat['description']."' color='". getFCColor() ."'&amp;gt;";&lt;/P&gt;&lt;P&gt;    //Now, we get the data for that passport &amp;amp; visa counts&lt;BR&gt;      $strSQL = "SELECT SUM(Total) as output,  days FROM(SELECT COUNT(oi.product_id) as Total,  Day(o.order_complete) as days FROM order_items as oi, orders as o,products as p WHERE p.product_type_id = '".$orsCat['ids']."' AND p.product_id = oi.product_id AND o.order_complete &amp;gt;='$start_date' AND o.order_complete &amp;lt;='$end_date'  AND o.order_id = oi.order_id AND oi.status_id &amp;lt;='6' GROUP BY days ORDER BY Total) as chart GROUP BY days  ";&lt;BR&gt;       &lt;BR&gt;            $result2 = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt;            while($ors = mysql_fetch_array($result2))&lt;BR&gt;          {&lt;BR&gt;   //Append &amp;lt;category label=''&amp;gt; if not already done&lt;BR&gt;                if (!$catXMLDone) &lt;/P&gt;&lt;P&gt;                 {&lt;BR&gt;                       $strCat .= "&amp;lt;category name='" .$ors['days']. "' /&amp;gt;";&lt;BR&gt;    &lt;BR&gt;                }&lt;BR&gt;                 //Append data&lt;BR&gt;                 $strDataXML .= "&amp;lt;set value='" . $ors['output'] . "' /&amp;gt;";&lt;BR&gt;          }&lt;BR&gt;            //Update flag that we've appended categories  &lt;BR&gt;           $catXMLDone = true;&lt;BR&gt;            //Clear up objects&lt;BR&gt;            mysql_free_result($result2);&lt;BR&gt;            //Close dataset element&lt;BR&gt;            $strDataXML .= "&amp;lt;/dataset&amp;gt;";&lt;BR&gt;   &lt;BR&gt;         }&lt;BR&gt;   }&lt;BR&gt;   // mysql_close($link);&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;/categories&amp;gt;&lt;BR&gt; $strCat .= "&amp;lt;/categories&amp;gt;";&lt;BR&gt; //Create full XML&lt;BR&gt; $strXML .= $strCat.$strDataXML;&lt;/P&gt;&lt;P&gt;    //Return&lt;BR&gt; //return $strXML;&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;graph&amp;gt; element&lt;BR&gt;    $strXML .= "&amp;lt;/graph&amp;gt;";</description><pubDate>Tue, 22 Apr 2008 07:12:59 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>how to set width &amp; height of individual bar in bar chart</title><link>http://www.fusioncharts.com/forum/Topic5820-43-1.aspx</link><description>&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;I am using php  &amp;amp; mysql. I have prepared multiseries bar chart using mysql database. &lt;P&gt;How can we set the height &amp;amp; width of individual bar in bar chart ? does set element provide any attribute for that?&lt;/SPAN&gt;</description><pubDate>Tue, 22 Apr 2008 02:15:27 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>Fatal error:Call to undefined function getFCColor()</title><link>http://www.fusioncharts.com/forum/Topic5711-43-1.aspx</link><description>I am new to FusionCharts. I'm working through the examples but when I try anything under PHP/BasicExamples instead of seeing the chart I see the error above. I have checked that the path to FC_Color.php and FC_Color.asp is correct. (I tested it by adding an echo statement to FusionCharts.php which is in the same directory. That statement displays when I point my browser to SingleSeries.htm). I have also tried copying FC_COLOR.php and FC_Color.asp to the same directory where SingleSeries.php sits and changing the include statement so that it only references the file and not the path. I've done this separately for both the asp and the php versions on FC_Color. It makes no difference. Has anyone else seen this issue? Can anyone help to to debug this? Thanks in advance for any insights you can share.</description><pubDate>Wed, 16 Apr 2008 13:50:19 GMT</pubDate><dc:creator>qzgbd9</dc:creator></item><item><title>Change Currency Symbol</title><link>http://www.fusioncharts.com/forum/Topic5808-43-1.aspx</link><description>Hi guys, I just want to 1st say thanks for this great product, this sales me a great deal of time &amp; effort! :)&lt;br&gt;&lt;br&gt;Right, I'm trying to change the $ (dollar) symbol to a £ (uk pound) symbol in the output.  Any help would be greatly appreciated, I've tried searching on the forums &amp; in the documentation but to no avail.&lt;br&gt;&lt;br&gt;Cheers.</description><pubDate>Mon, 21 Apr 2008 10:14:00 GMT</pubDate><dc:creator>shasto100</dc:creator></item><item><title>Make correction to your following file FC_Colors.php</title><link>http://www.fusioncharts.com/forum/Topic5801-43-1.aspx</link><description>You forgot to add keyword php on first line of file FC_Colors.php.&lt;/P&gt;&lt;P&gt;i.e. tag &amp;lt;?php  ?&amp;gt;&lt;/P&gt;&lt;P&gt;That's why most of fusioncharts users get error of undefined function getFCColor().</description><pubDate>Mon, 21 Apr 2008 02:37:47 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>where to give set element for color attribute of bar chart</title><link>http://www.fusioncharts.com/forum/Topic5786-43-1.aspx</link><description>Following is the example of multiseries bar chart.That contains two series(two bars).&lt;/P&gt;&lt;P&gt;I want to give two different colors for that two bars.&lt;/P&gt;&lt;P&gt;&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;I am preparing bar chart in php with mysql as database. Following is the php code &lt;P&gt;tell me where to give colour attribute in following code OR tell me which file to include?&lt;/P&gt;&lt;P&gt;   $strXML = "&amp;lt;graph caption='Factory  Output ' subcaption='(In Units)' xAxisName='Date' formatNumberScale='0' decimalPrecision='0' &amp;gt;";&lt;/P&gt;&lt;P&gt;    // Connet to the DB&lt;BR&gt;    &lt;BR&gt; &lt;BR&gt;   //To store categories - also flag to check whether category is already generated&lt;BR&gt;   $catXMLDone = false;&lt;BR&gt; //Initialize XML elements&lt;BR&gt; $strCat = "&amp;lt;categories&amp;gt;";&lt;BR&gt; &lt;BR&gt; //First we need to get unique categories in the database&lt;BR&gt; $strSQL = "SELECT DISTINCT(p.product_type_id) as ids, Year(o.order_complete) as years FROM &lt;BR&gt;order_items as oi, orders as o,products as p WHERE p.product_type_id &amp;gt;2 AND p.product_id = oi.product_id AND Year(o.order_complete) ='2008'  AND o.order_id = oi.order_id GROUP BY oi.product_id";&lt;/P&gt;&lt;P&gt;&lt;BR&gt;    $result = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt; &lt;BR&gt;  //To store datasets and sets&lt;BR&gt;    $strDataXML = "";&lt;BR&gt; &lt;BR&gt;   if ($result) &lt;BR&gt;   {&lt;BR&gt;        while($orsCat = mysql_fetch_array($result)) &lt;BR&gt;  {&lt;BR&gt;            //Add this category as dataset&lt;BR&gt;            $strDataXML .= "&amp;lt;dataset seriesName='".$orsCat['ids']."'&amp;gt;";&lt;/P&gt;&lt;P&gt;    //Now, we get the data for that factory&lt;BR&gt;      $strSQL = "SELECT SUM(Total) as output,months1, years FROM(SELECT COUNT(oi.product_id) as Total, Month(o.order_complete) as months1 ,Year(o.order_complete) as years FROM order_items as oi, orders as o,products as p WHERE p.product_type_id = '".$orsCat['ids']."' AND p.product_id = oi.product_id AND Year(o.order_complete)='".$orsCat['years']."' AND o.order_id = oi.order_id GROUP BY months1) as chart GROUP BY months1";&lt;BR&gt;     //Execute it&lt;BR&gt;            $result2 = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt;            while($ors = mysql_fetch_array($result2))&lt;BR&gt;    {&lt;BR&gt;   //Append &amp;lt;category label=''&amp;gt; if not already done&lt;BR&gt;                if (!$catXMLDone) &lt;BR&gt;    {&lt;BR&gt;                   $strCat .= "&amp;lt;category name='" .$ors['months1']. "' /&amp;gt;";&lt;BR&gt;               }&lt;BR&gt;               //Append data&lt;BR&gt;                 $strDataXML .= "&amp;lt;set value='" . $ors['output'] . "' /&amp;gt;";&lt;BR&gt;   }&lt;BR&gt;            //Update flag that we've appended categories  &lt;BR&gt;            $catXMLDone = true;&lt;BR&gt;            //Clear up objects&lt;BR&gt;            mysql_free_result($result2);&lt;BR&gt;            //Close dataset element&lt;BR&gt;            $strDataXML .= "&amp;lt;/dataset&amp;gt;";&lt;BR&gt;        }&lt;BR&gt;    }&lt;BR&gt;   // mysql_close($link);&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;/categories&amp;gt;&lt;BR&gt; $strCat .= "&amp;lt;/categories&amp;gt;";&lt;BR&gt; //Create full XML&lt;BR&gt; $strXML .= $strCat.$strDataXML;&lt;/P&gt;&lt;P&gt;    //Return&lt;BR&gt; //return $strXML;&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;graph&amp;gt; element&lt;BR&gt;    $strXML .= "&amp;lt;/graph&amp;gt;";&lt;/SPAN&gt; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description><pubDate>Mon, 21 Apr 2008 00:32:22 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>how to give different color for individual bar in multiseries bar chart.</title><link>http://www.fusioncharts.com/forum/Topic5793-43-1.aspx</link><description>&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;Following is the example of multiseries bar chart.That contains two series(two bars). &lt;P&gt;I want to give two different colors for that two bars.&lt;/P&gt;&lt;P&gt;&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;SPAN id=_ctl1_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl1_lblFullMessage&gt;I am preparing bar chart in php with mysql as database. Following is the php code &lt;P&gt;tell me where to give colour attribute in following code OR tell me which file to include?&lt;/P&gt;&lt;P&gt;   $strXML = "&amp;lt;graph caption='Factory  Output ' subcaption='(In Units)' xAxisName='Date' formatNumberScale='0' decimalPrecision='0' &amp;gt;";&lt;/P&gt;&lt;P&gt;    // Connet to the DB&lt;BR&gt;    &lt;BR&gt; &lt;BR&gt;   //To store categories - also flag to check whether category is already generated&lt;BR&gt;   $catXMLDone = false;&lt;BR&gt; //Initialize XML elements&lt;BR&gt; $strCat = "&amp;lt;categories&amp;gt;";&lt;BR&gt; &lt;BR&gt; //First we need to get unique categories in the database&lt;BR&gt; $strSQL = "SELECT DISTINCT(p.product_type_id) as ids, Year(o.order_complete) as years FROM &lt;BR&gt;order_items as oi, orders as o,products as p WHERE p.product_type_id &amp;gt;2 AND p.product_id = oi.product_id AND Year(o.order_complete) ='2008'  AND o.order_id = oi.order_id GROUP BY oi.product_id";&lt;/P&gt;&lt;P&gt;&lt;BR&gt;    $result = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt; &lt;BR&gt;  //To store datasets and sets&lt;BR&gt;    $strDataXML = "";&lt;BR&gt; &lt;BR&gt;   if ($result) &lt;BR&gt;   {&lt;BR&gt;        while($orsCat = mysql_fetch_array($result)) &lt;BR&gt;  {&lt;BR&gt;            //Add this category as dataset&lt;BR&gt;            $strDataXML .= "&amp;lt;dataset seriesName='".$orsCat['ids']."'&amp;gt;";&lt;/P&gt;&lt;P&gt;    //Now, we get the data for that factory&lt;BR&gt;      $strSQL = "SELECT SUM(Total) as output,months1, years FROM(SELECT COUNT(oi.product_id) as Total, Month(o.order_complete) as months1 ,Year(o.order_complete) as years FROM order_items as oi, orders as o,products as p WHERE p.product_type_id = '".$orsCat['ids']."' AND p.product_id = oi.product_id AND Year(o.order_complete)='".$orsCat['years']."' AND o.order_id = oi.order_id GROUP BY months1) as chart GROUP BY months1";&lt;BR&gt;     //Execute it&lt;BR&gt;            $result2 = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt;            while($ors = mysql_fetch_array($result2))&lt;BR&gt;    {&lt;BR&gt;   //Append &amp;lt;category label=''&amp;gt; if not already done&lt;BR&gt;                if (!$catXMLDone) &lt;BR&gt;    {&lt;BR&gt;                   $strCat .= "&amp;lt;category name='" .$ors['months1']. "' /&amp;gt;";&lt;BR&gt;               }&lt;BR&gt;               //Append data&lt;BR&gt;                 $strDataXML .= "&amp;lt;set value='" . $ors['output'] . "' /&amp;gt;";&lt;BR&gt;   }&lt;BR&gt;            //Update flag that we've appended categories  &lt;BR&gt;            $catXMLDone = true;&lt;BR&gt;            //Clear up objects&lt;BR&gt;            mysql_free_result($result2);&lt;BR&gt;            //Close dataset element&lt;BR&gt;            $strDataXML .= "&amp;lt;/dataset&amp;gt;";&lt;BR&gt;        }&lt;BR&gt;    }&lt;BR&gt;   // mysql_close($link);&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;/categories&amp;gt;&lt;BR&gt; $strCat .= "&amp;lt;/categories&amp;gt;";&lt;BR&gt; //Create full XML&lt;BR&gt; $strXML .= $strCat.$strDataXML;&lt;/P&gt;&lt;P&gt;    //Return&lt;BR&gt; //return $strXML;&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;graph&amp;gt; element&lt;BR&gt;    $strXML .= "&amp;lt;/graph&amp;gt;";&lt;/SPAN&gt; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;/SPAN&gt;</description><pubDate>Mon, 21 Apr 2008 01:48:56 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>how to give colour to barchart in multiseries format</title><link>http://www.fusioncharts.com/forum/Topic5759-43-1.aspx</link><description>I am preparing bar chart in php with mysql as database. Following is the php code&lt;/P&gt;&lt;P&gt;tell me where to give colour attribute in following code OR tell me which file to include?&lt;/P&gt;&lt;P&gt;   $strXML = "&amp;lt;graph caption='Factory  Output ' subcaption='(In Units)' xAxisName='Date' formatNumberScale='0' decimalPrecision='0' &amp;gt;";&lt;/P&gt;&lt;P&gt;    // Connet to the DB&lt;BR&gt;    &lt;BR&gt; &lt;BR&gt;   //To store categories - also flag to check whether category is&lt;BR&gt; //already generated&lt;BR&gt;   $catXMLDone = false;&lt;BR&gt; //Initialize XML elements&lt;BR&gt; $strCat = "&amp;lt;categories&amp;gt;";&lt;BR&gt; &lt;BR&gt; //First we need to get unique categories in the database&lt;BR&gt; $strSQL = "SELECT DISTINCT(p.product_type_id) as ids, Year(o.order_complete) as years FROM &lt;BR&gt;order_items as oi, orders as o,products as p WHERE p.product_type_id &amp;gt;2 AND p.product_id = oi.product_id AND Year(o.order_complete) ='2008'  AND o.order_id = oi.order_id GROUP BY oi.product_id";&lt;/P&gt;&lt;P&gt;&lt;BR&gt;    $result = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt; &lt;BR&gt;  //To store datasets and sets&lt;BR&gt;    $strDataXML = "";&lt;BR&gt; &lt;BR&gt;   if ($result) &lt;BR&gt;   {&lt;BR&gt;        while($orsCat = mysql_fetch_array($result)) &lt;BR&gt;  {&lt;BR&gt;            //Add this category as dataset&lt;BR&gt;            $strDataXML .= "&amp;lt;dataset seriesName='".$orsCat['ids']."' color ='3300FF'&amp;gt;";&lt;/P&gt;&lt;P&gt;    //Now, we get the data for that factory&lt;BR&gt;      $strSQL = "SELECT SUM(Total) as output,months1, years FROM(SELECT COUNT(oi.product_id) as Total, Month(o.order_complete) as months1 ,Year(o.order_complete) as years FROM order_items as oi, orders as o,products as p WHERE p.product_type_id = '".$orsCat['ids']."' AND p.product_id = oi.product_id AND Year(o.order_complete)='".$orsCat['years']."' AND o.order_id = oi.order_id GROUP BY months1) as chart GROUP BY months1";&lt;BR&gt;     //Execute it&lt;BR&gt;            $result2 = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt;            while($ors = mysql_fetch_array($result2))&lt;BR&gt;    {&lt;BR&gt;   //Append &amp;lt;category label=''&amp;gt; if not already done&lt;BR&gt;                if (!$catXMLDone) &lt;BR&gt;    {&lt;BR&gt;                   $strCat .= "&amp;lt;category name='" .$ors['months1']. "' /&amp;gt;";&lt;BR&gt;               }&lt;BR&gt;               //Append data&lt;BR&gt;                 $strDataXML .= "&amp;lt;set value='" . $ors['output'] . "' /&amp;gt;";&lt;BR&gt;   }&lt;BR&gt;            //Update flag that we've appended categories  &lt;BR&gt;            $catXMLDone = true;&lt;BR&gt;            //Clear up objects&lt;BR&gt;            mysql_free_result($result2);&lt;BR&gt;            //Close dataset element&lt;BR&gt;            $strDataXML .= "&amp;lt;/dataset&amp;gt;";&lt;BR&gt;        }&lt;BR&gt;    }&lt;BR&gt;   // mysql_close($link);&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;/categories&amp;gt;&lt;BR&gt; $strCat .= "&amp;lt;/categories&amp;gt;";&lt;BR&gt; //Create full XML&lt;BR&gt; $strXML .= $strCat.$strDataXML;&lt;/P&gt;&lt;P&gt;    //Return&lt;BR&gt; //return $strXML;&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;graph&amp;gt; element&lt;BR&gt;    $strXML .= "&amp;lt;/graph&amp;gt;";</description><pubDate>Fri, 18 Apr 2008 04:39:05 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>multiseries bar chart with mysql as database in php</title><link>http://www.fusioncharts.com/forum/Topic5718-43-1.aspx</link><description>//following is php code .but does not give any output.&lt;/P&gt;&lt;P&gt;first query give the following data through database&lt;/P&gt;&lt;P&gt;ids&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;second query give following data through database for ids=1&lt;/P&gt;&lt;P&gt;Total   month    product_id &lt;BR&gt;1          2           1 &lt;/P&gt;&lt;P&gt;2          3            1&lt;/P&gt;&lt;P&gt;3           4            1&lt;/P&gt;&lt;P&gt;same data come for ids =2 &amp;amp; ids=3 with same values of month &amp;amp; different Total&lt;/P&gt;&lt;P&gt;but following php code does not give any output &lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR&gt;      //Generate the graph element string&lt;BR&gt;    $strXML = "&amp;lt;chart caption='Factory  Output ' subcaption='(In Units)' xAxisName='Date' formatNumberScale='0' decimalPrecision='0'&amp;gt;";&lt;/P&gt;&lt;P&gt;    // Connet to the DB&lt;BR&gt;    $link = connectToDB();&lt;BR&gt; &lt;BR&gt;   //To store categories - also flag to check whether category is&lt;BR&gt; //already generated&lt;BR&gt;    $catXMLDone = false;&lt;BR&gt; //Initialize XML elements&lt;BR&gt; $strCat = "&amp;lt;categories&amp;gt;";&lt;BR&gt; &lt;BR&gt; //First we need to get unique categories in the database&lt;BR&gt; $strSQL = "Select product_id as ids from products where product_id &amp;lt;='3' ORDER BY product_id";&lt;BR&gt;    $result = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt; &lt;BR&gt;  //To store datasets and sets&lt;BR&gt;    $strDataXML = "";&lt;BR&gt; &lt;BR&gt;   if ($result) &lt;BR&gt;   {&lt;BR&gt;        while($orsCat = mysql_fetch_array($result)) &lt;BR&gt;  {&lt;BR&gt;            //Add this category as dataset&lt;BR&gt;            $strDataXML .= "&amp;lt;dataset seriesName='" .$orsCat['ids']. "'&amp;gt;";&lt;/P&gt;&lt;P&gt;    //Now, we get the data for that factory&lt;BR&gt;      $strSQL = "SELECT count(oi.product_id) as Total, Month(o.order_complete) as month, oi.product_id FROM  order_items as oi, orders as o,products as p WHERE oi.product_id='".$orsCat['ids']."' AND p.product_id = oi.product_id AND o.order_id = oi.order_id GROUP BY Month(o.order_complete) ";&lt;BR&gt;     //Execute it&lt;BR&gt;            $result2 = mysql_query($strSQL) or die(mysql_error());&lt;BR&gt;            while($ors = mysql_fetch_array($result2))&lt;BR&gt;    {&lt;BR&gt;   //Append &amp;lt;category label=''&amp;gt; if not already done&lt;BR&gt;                if (!$catXMLDone) &lt;BR&gt;    {&lt;BR&gt;                   $strCat .= "&amp;lt;category label='" .$ors['month'] . "' /&amp;gt;";&lt;BR&gt;                }&lt;BR&gt;               //Append data&lt;BR&gt;                 $strDataXML .= "&amp;lt;set value='" . $ors['Total'] . "' /&amp;gt;";&lt;BR&gt;   }&lt;BR&gt;            //Update flag that we've appended categories  &lt;BR&gt;            $catXMLDone = true;&lt;BR&gt;            //Clear up objects&lt;BR&gt;            mysql_free_result($result2);&lt;BR&gt;            //Close dataset element&lt;BR&gt;            $strDataXML .= "&amp;lt;/dataset&amp;gt;";&lt;BR&gt;        }&lt;BR&gt;    }&lt;BR&gt;    mysql_close($link);&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;/categories&amp;gt;&lt;BR&gt; $strCat .= "&amp;lt;/categories&amp;gt;";&lt;BR&gt; //Create full XML&lt;BR&gt; $strXML = $strCat . $strDataXML;&lt;/P&gt;&lt;P&gt;    //Return&lt;BR&gt; return $strXML;&lt;/P&gt;&lt;P&gt;    //Close &amp;lt;graph&amp;gt; element&lt;BR&gt;    $strXML .= "&amp;lt;/chart&amp;gt;";&lt;BR&gt; &lt;BR&gt;    //Create the chart - Column 2D Chart with data from strXML&lt;BR&gt; echo renderChart("FusionCharts/FCF_MSColumn3D.swf", "", $strXML, "FactoryDetailed", 600, 300, false, false);&lt;BR&gt;?&amp;gt;</description><pubDate>Thu, 17 Apr 2008 01:54:21 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>simple bar chart with mysql as database</title><link>http://www.fusioncharts.com/forum/Topic5691-43-1.aspx</link><description>this is php code i am using.&lt;/P&gt;&lt;P&gt;This example works with pie chart but not with bar chart. I tried to use different chart &lt;/P&gt;&lt;P&gt;in renderchart sentense .but it did not work .I used order by clause in sql sentense then also it didnot work. give me solution.&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR&gt;  $link = connectToDB();&lt;/P&gt;&lt;P&gt;      $strXML = "&amp;lt;chart palette='2' caption='Factory Output ' subcaption='(In Units)' xAxisName='Date' showValues='1' labelStep='2' &amp;gt;";&lt;/P&gt;&lt;P&gt;  $strQuery = "SELECT count(o.product_id) as Total, p.product_short_desc, p.product_desc, o.product_id FROM products as p,  order_items as o WHERE p.product_type_id='3' AND p.product_id=o.product_id GROUP BY p.product_short_desc";&lt;BR&gt; $result = mysql_query($strQuery) or die(mysql_error());&lt;BR&gt;    &lt;BR&gt; if ($result) {&lt;BR&gt;  while($ors = mysql_fetch_array($result)) {&lt;BR&gt;   &lt;BR&gt;   $strXML .= "&amp;lt;set label='" . $ors['product_short_desc'] . "' value='" . $ors['Total'] . "' /&amp;gt;";&lt;BR&gt;  &lt;BR&gt;     }&lt;BR&gt; }&lt;BR&gt; &lt;BR&gt; mysql_close($link);&lt;/P&gt;&lt;P&gt; //Finally, close &amp;lt;graph&amp;gt; element&lt;BR&gt;  $strXML .= "&amp;lt;/chart&amp;gt;";&lt;BR&gt; &lt;BR&gt; //Create the chart  with data from $strXML&lt;BR&gt; echo renderChart("FusionCharts/FCF_Bar2D.swf", "", $strXML, "FactoryDetailed", 600, 300, false, false);&lt;BR&gt; &lt;BR&gt;?&amp;gt;</description><pubDate>Wed, 16 Apr 2008 08:34:35 GMT</pubDate><dc:creator>maheshshinde9</dc:creator></item><item><title>Gantt Chart display categories in time rather than date</title><link>http://www.fusioncharts.com/forum/Topic5444-43-1.aspx</link><description>Hi, I am using FusionCharts Free version and PHP. I am constructing a Gantt Chart, I would like to display the category in "time" rather than "day". Like for normal Gantt Chart, the  category is like [b][i]category start="1/1/2005" end="31/1/2005" name="January"[/i][/b]&lt;br&gt;&lt;br&gt;Is that possible I can put the start and end as a time? For example [i][b]category start="08:00:00" end="09:00:00" name="8 - 9 am"[/b][/i]&lt;br&gt;&lt;br&gt;Thanks in advance  :) :w00t:</description><pubDate>Fri, 04 Apr 2008 00:55:05 GMT</pubDate><dc:creator>zhxcookie</dc:creator></item></channel></rss>