pomtomas

Members
  • Content count

    2
  • Joined

  • Last visited

About pomtomas

  • Rank
    Forum Newbie
  1. No Xml Data...

    Thank you, I'll look at it. ... I looked and did not get anything out. Did not clarify how to use HTML for XML code of the Gantt chart... or I just don't get it at all. I used sample code from the documentation and put it into html with php but it just gave me "no data" message. Something I might do wrong but what? And also if the code in the documentation is for V3 why it is then in Free version?
  2. No Xml Data...

    Hi, I am new to XML and to this wondeful tool. I can't make the below code work... can't find any problem with it but I am getting message "no data to display" though inside of html there are all the data! Why the data is not seen??? Plese help, or I don't know what I am going to do to myself :-) PS. I found some data on <Graph> and <Chart> tags and it seems that I can't build Gantt chart with Free version? Or what I am missing here? <?php //We've included ../Includes/FusionCharts.php, which contains functions //to help us easily embed the charts. include("Includes/FusionCharts.php"); ?> <HTML> <HEAD> <TITLE>FusionCharts Free - Simple Column 3D Chart using dataXML method</TITLE> <script LANGUAGE="Javascript" SRC="FusionCharts/FusionCharts.js"></SCRIPT> </HEAD> <BODY> <?php //Create an XML data document in a string variable $strXML = ""; $strXML .= "<graph caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' decimalPrecision='0' formatNumberScale='0'>"; $strXML .= "<chart dateFormat='dd/mm/yyyy' showTaskNames='1' ganttWidthPercent='70' gridBorderAlpha='100' canvasBorderColor='333333' canvasBorderThickness='0' hoverCapBgColor='FFFFFF' hoverCapBorderColor='333333' extendcategoryBg='0' ganttLineColor='99cc00' ganttLineAlpha='20' baseFontColor='333333' gridBorderColor='99cc00'>"; $strXML .= "<categories bgColor='333333' fontColor='99cc00' isBold='1' fontSize='14' >"; $strXML .= "<category start='1/9/2004' end='31/12/2004' name='2004' />"; $strXML .= "<category start='1/1/2005' end='31/7/2005' name='2005' />"; $strXML .= "</categories>"; $strXML .= "<categories bgColor='99cc00' bgAlpha='40' fontColor='333333' align='center' fontSize='10' isBold='1'>"; $strXML .= "<category start='1/9/2004' end='30/9/2004' name='Sep' />"; $strXML .= "<category start='1/10/2004' end='31/10/2004' name='Oct' />"; $strXML .= "<category start='1/11/2004' end='30/11/2004' name='Nov' />"; $strXML .= "<category start='1/12/2004' end='31/12/2004' name='Dec' />"; $strXML .= "<category start='1/1/2005' end='31/1/2005' name='Jan' />"; $strXML .= "<category start='1/2/2005' end='28/2/2005' name='Feb' />"; $strXML .= "<category start='1/3/2005' end='31/3/2005' name='March' />"; $strXML .= "<category start='1/4/2005' end='30/4/2005' name='Apr' />"; $strXML .= "<category start='1/5/2005' end='31/5/2005' name='May' />"; $strXML .= "<category start='1/6/2005' end='30/6/2005' name='June' />"; $strXML .= "<category start='1/7/2005' end='31/7/2005' name='July' />"; $strXML .= "</categories>"; $strXML .= "<categories bgColor='99cc00' bgAlpha='40' fontColor='333333' align='center' fontSize='10' isBold='1'>"; $strXML .= "<category start='1/9/2004' end='30/9/2004' name='Sep' />"; $strXML .= "<category start='1/10/2004' end='31/10/2004' name='Oct' />"; $strXML .= "<category start='1/11/2004' end='30/11/2004' name='Nov' />"; $strXML .= "<category start='1/12/2004' end='31/12/2004' name='Dec' />"; $strXML .= "<category start='1/1/2005' end='31/1/2005' name='Jan' />"; $strXML .= "<category start='1/2/2005' end='28/2/2005' name='Feb' />"; $strXML .= "<category start='1/3/2005' end='31/3/2005' name='March' />"; $strXML .= "<category start='1/4/2005' end='30/4/2005' name='Apr' />"; $strXML .= "<category start='1/5/2005' end='31/5/2005' name='May' />"; $strXML .= "<category start='1/6/2005' end='30/6/2005' name='June' />"; $strXML .= "<category start='1/7/2005' end='31/7/2005' name='July' />"; $strXML .= "</categories>"; $strXML .= "<processes positionInGrid='right' align='center' headerText='Leader' fontColor='333333' fontSize='11' isBold='1' isAnimated='1' bgColor='99cc00' headerbgColor='333333' headerFontColor='99cc00' headerFontSize='16' bgAlpha='40'>"; $strXML .= "<process Name='Ashok' id='1' />"; $strXML .= "<process Name='Pallav' id='2' />"; $strXML .= "<process Name='Akhil' id='3' />"; $strXML .= "<process Name='Sanket' id='4' />"; $strXML .= "<process Name='Srishti' id='5' />"; $strXML .= "<process Name='Kisor' id='6' />"; $strXML .= "</processes>"; $strXML .= "<dataTable fontColor='333333' fontSize='11' isBold='1' headerFontColor='000000' headerFontSize='11' >"; $strXML .= "<dataColumn headerbgColor='333333' width='150' headerfontSize='16' headerAlign='left' headerfontcolor='99cc00' bgColor='99cc00' headerText=' Team' align='left' bgAlpha='65'>"; $strXML .= "<text label=' MANAGEMENT' />"; $strXML .= "<text label=' PRODUCT MANAGER' />"; $strXML .= "<text label=' CORE DEVELOPMENT' />"; $strXML .= "<text label=' Q & A / DOC.' />"; $strXML .= "<text label=' WEB TEAM' />"; $strXML .= "<text label=' MANAGEMENT' />"; $strXML .= "</dataColumn>"; $strXML .= "</dataTable>"; $strXML .= "<tasks>"; $strXML .= "<task name='Survey' hoverText='Market Survey' processId='1' start='7/9/2004' end='10/10/2004' id='Srvy' color='99cc00' alpha='60' topPadding='19' />"; $strXML .= "<task name='Concept' hoverText= 'Develop Concept for Product' processId='1' start='25/10/2004' end='9/11/2004' id='Cpt1' color='99cc00' alpha='60' />"; $strXML .= "<task name='Concept' showName='0' hoverText= 'Develop Concept for Product' processId='2' start='25/10/2004' end='9/11/2004' id='Cpt2' color='99cc00' alpha='60' />"; $strXML .= "<task name='Design' hoverText= 'Preliminary Design' processId='2' start='12/11/2004' end='25/11/2004' id='Desn' color='99cc00' alpha='60'/>"; $strXML .= "<task name='Product Development' processId='2' start='6/12/2004' end='2/3/2005' id='PD1' color='99cc00' alpha='60'/>"; $strXML .= "<task name='Product Development' processId='3' start='6/12/2004' end='2/3/2005' id='PD2' color='99cc00' alpha='60' />"; $strXML .= "<task name='Doc Outline' hoverText='Documentation Outline' processId='2' start='6/4/2005' end='1/5/2005' id='DocOut' color='99cc00' alpha='60'/>"; $strXML .= "<task name='Alpha' hoverText='Alpha Release' processId='4' start='15/3/2005' end='2/4/2005' id='alpha' color='99cc00' alpha='60'/>"; $strXML .= "<task name='Beta' hoverText='Beta Release' processId='3' start='10/5/2005' end='2/6/2005' id='Beta' color='99cc00' alpha='60'/>"; $strXML .= "<task name='Doc.' hoverText='Documentation' processId='4' start='12/5/2005' end='29/5/2005' id='Doc' color='99cc00' alpha='60'/>"; $strXML .= "<task name='Website Design' hoverText='Website Design' processId='5' start='18/5/2005' end='22/6/2005' id='Web' color='99cc00' alpha='60'/>"; $strXML .= "<task name='Release' hoverText='Product Release' processId='6' start='5/7/2005' end='29/7/2005' id='Rls' color='99cc00' alpha='60'/>"; $strXML .= "<task name='Dvlp' hoverText='Development on Beta Feedback' processId='3' start='10/6/2005' end='1/7/2005' id='Dvlp' color='99cc00' alpha='60'/> "; $strXML .= "<task name='QA' hoverText='QA Testing' processId='4' start='9/4/2005' end='22/4/2005' id='QA1' color='99cc00' alpha='60'/>"; $strXML .= "<task name='QA2' hoverText='QA Testing-Phase 2' processId='4' start='25/6/2005' end='5/7/2005' id='QA2' color='99cc00' alpha='60'/>"; $strXML .= "</tasks>"; $strXML .= "<connectors>"; $strXML .= "<connector fromTaskId='Cpt1' toTaskId='Cpt2' color='99cc00' thickness='2' fromTaskConnectStart='1'/>"; $strXML .= "<connector fromTaskId='PD1' toTaskId='PD2' color='99cc00' thickness='2' fromTaskConnectStart='1'/>"; $strXML .= "<connector fromTaskId='PD1' toTaskId='alpha' color='99cc00' thickness='2' />"; $strXML .= "<connector fromTaskId='PD2' toTaskId='alpha' color='99cc00' thickness='2' />"; $strXML .= "<connector fromTaskId='DocOut' toTaskId='Doc' color='99cc00' thickness='2' />"; $strXML .= "<connector fromTaskId='QA1' toTaskId='beta' color='99cc00' thickness='2' />"; $strXML .= "<connector fromTaskId='Dvlp' toTaskId='QA2' color='99cc00' thickness='2' />"; $strXML .= "<connector fromTaskId='QA2' toTaskId='Rls' color='99cc00' thickness='2' />"; $strXML .= "</connectors>"; $strXML .= "<milestones>"; $strXML .= "<milestone date='29/7/2005' taskId='Rls' radius='10' color='333333' shape='Star' numSides='5' borderThickness='1'/>"; $strXML .= "<milestone date='2/3/2005' taskId='PD1' radius='10' color='333333' shape='Star' numSides='5' borderThickness='1' />"; $strXML .= "<milestone date='2/3/2005' taskId='PD2' radius='10' color='333333' shape='Star' numSides='5' borderThickness='1'/>"; $strXML .= "</milestones>"; $strXML .= "</chart>"; $strXML .= "</graph>"; //Create the chart - Column 3D Chart with data from strXML variable using dataXML method echo renderChart("FusionCharts/FCF_Column3D.swf", "", $strXML, "myNext", 800, 400); ?> </BODY> </HTML>