浏览 1445 次
该帖已经被评为隐藏帖
|
|
---|---|
作者 | 正文 |
发表时间:2009-12-07
最后修改:2009-12-07
因为2008年是闰年,所以2月份有29天,问题就是出在这里,我动态计算出月份数据XML,填充给FCF_Gantt.swf,这个Falsh画出的甘特图多了一格...我把2月份改为28天,就又好了.这是不是FusionCharts的bug啊,或者说FusionCharts根本就不支持闰年,平年的计算? XML数据源如下 Gantt.xml <chart dateFormat='dd/mm/yyyy' hoverCapBorderColor='2222ff' hoverCapBgColor='e1f5ff' ganttWidthPercent='60' ganttLineAlpha='80' canvasBorderColor='024455' canvasBorderThickness='0' gridBorderColor='4567aa' gridBorderAlpha='20'> <categories bgColor="4567aa" fontColor="ff0000"> <category start="1/02/2008" end="31/05/2008" align="center" name="2008年" alpha="" font="Verdana" fontColor="ffffff" isBold="1" fontSize="16"/> </categories> <categories bgColor='4567aa' fontColor='ff0000'> <category start='1/2/2008' end='31/05/2008' align='center' name='Months' alpha='' font='Verdana' fontColor='ffffff' isBold='1' fontSize='16' /> </categories> <categories bgColor="ffffff" fontColor="1288dd" fontSize="12"> <category start="1/2/2008" end="29/2/2008" align="center" name="2月" isBold="1"/> <category start="1/3/2008" end="31/3/2008" align="center" name="3月" isBold="1"/> <category start="1/4/2008" end="30/4/2008" align="center" name="4月" isBold="1"/> <category start="1/5/2008" end="31/5/2008" align="center" name="5月" isBold="1"/> </categories> <processes headerText='Tasks' fontColor='ffffff' fontSize='10' isBold='1' isAnimated='1' bgColor='4567aa' headerVAlign='right' headerbgColor='4567aa' headerFontColor='ffffff' headerFontSize='16' width='80' align='left'> <process Name='Wrting' id='1' /> <process Name='Signing' id='2' /> <process Name='Financing' id='3' /> <process Name='Permission' id='4' /> <process Name='Plumbing' id='5' /> <process Name='Terrace' id='6' /> <process Name='Inspection' id='7' /> <process Name='Wood Work' id='8' /> <process Name='Interiors' id='9' /> <process Name='Shifting' id='10' /> </processes> <dataTable showProcessName='1' nameAlign='left' fontColor='000000' fontSize='10' isBold='1' headerBgColor='00ffff' headerFontColor='4567aa' headerFontSize='11' vAlign='right' align='left'> <dataColumn width='70' headerfontcolor='ffffff' headerBgColor='4567aa' bgColor='eeeeee' headerColor='ffffff' headerText='Start' isBold='0'> <text label='7/3/2005' /> <text label='6/4/2005' /> <text label='1/5/2005' /> <text label='13/5/2005' /> <text label='2/5/2005' /> <text label='1/6/2005' /> <text label='15/6/2005' /> <text label='22/6/2005' /> <text label='18/6/2005' /> <text label='15/7/2005' /> </dataColumn> <dataColumn width='70' headerfontcolor='ffffff' bgColor='eeeeee' headerbgColor='4567aa' fontColor='000000' headerText='Finish' isBold='0'> <text label='22/4/2005' /> <text label='12/5/2005' /> <text label='2/6/2005' /> <text label='19/6/2005' /> <text label='19/6/2005' /> <text label='19/7/2005' /> <text label='11/8/2005' /> <text label='5/8/2005' /> <text label='22/7/2005' /> <text label='11/8/2005' /> </dataColumn> <dataColumn align='center' headerfontcolor='ffffff' headerbgColor='4567aa' bgColor='eeeeee' headerText='Dur.' width='35' isBold='0'> <text label='150' /> <text label='340' /> <text label='60' /> <text label='20' /> <text label='30' /> <text label='45' /> <text label='40' /> <text label='102' /> <text label='60' /> <text label='30' /> <text label='90' /> <text label='30' /> </dataColumn> <dataColumn headerbgColor='4567aa' headerfontcolor='ffffff' align='right' fontColor='000000' bgColor='4567aa' bgAlpha='25' headerText='Cost' > <text label='$400' /> <text label='$890' /> <text label='$1234' /> <text label='$230' /> <text label='$450' /> <text label='$120' /> <text label='$1780' /> <text label='$3330' /> <text label='$890' /> <text label='$1110' /> <text label='$260' /> <text label='$460' /> </dataColumn> </dataTable> <tasks width='10' > <task name='Planned' processId='1' start='14/2/2008' end='18/4/2008' id='1-1' color='4567aa' height='10' topPadding='5' animation='0'/> <task name='Actual' processId='1' start='7/3/2008' end='22/4/2008' id='1' color='cccccc' alpha='100' topPadding='19' height='10' /> </tasks> </chart> 下面是关键日期XML数据 <categories bgColor="ffffff" fontColor="1288dd" fontSize="12"> <category start="1/2/2008" end="29/2/2008" align="center" name="2月" isBold="1"/> <category start="1/3/2008" end="31/3/2008" align="center" name="3月" isBold="1"/> <category start="1/4/2008" end="30/4/2008" align="center" name="4月" isBold="1"/> <category start="1/5/2008" end="31/5/2008" align="center" name="5月" isBold="1"/> </categories> 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2009-12-07
用过FusionChars的朋友帮忙分析下啊~~~~
|
|
返回顶楼 | |