Gantt Chart problem with leap years?
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Gantt Chart problem with leap years? Expand / Collapse
Author
Message
Posted 2/20/2008 11:04:20 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/22/2008 3:00:01 AM
Posts: 3, Visits: 4
I have scripted the gantt chart to be used in asp on my home web page. However i seem to be suffering from a problem with the leap year date Feb 29th. I have made my asp allocate columns at the top of the page for each day from the current day to 30 days time. When the gantt chart plots events before the first of march there is no problem. However events plotted on dates after the 29th feb seem a day out.

Could anyone verify this is indeed a fault in the gantt chart itself and not in my code? I am using the date functions within asp that are getting the correct dates from the system, and which take into account the leap year event. But it would seem that any event spanning this leap year day suffers and doesn't adjust correctly.

Would much appreciate any assistance.

Otherwise, my hat goes off to the developers for such a good app. Am very impressed with the software.

Regards,

Ash

Post #4604
Posted 2/21/2008 1:32:22 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Today @ 1:46:26 AM
Posts: 116, Visits: 795
can you please send us the XML?


Thanks,
Arindam

FusionCharts Team
www.fusioncharts.com

Post #4615
Posted 2/21/2008 3:35:15 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/22/2008 3:00:01 AM
Posts: 3, Visits: 4
My code is embedded in asp, however please see this example which illustrates my point. I have edited the example code which comes with the free download. please copy the code below into an xml document and replace the gantt.xml in the following location : Fusioncharts\Gallery\Data:

copy this into 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='009999'>
 <category start='25/2/2008' end='5/3/2008' align='center' name='Gantt Chart'  fontColor='ffffff' isBold='1' fontSize='16' />
</categories>
<categories  bgColor='4567aa' fontColor='ff0000'>
 <category start='25/2/2008' end='5/3/2008' align='center' name='Days'  alpha='' font='Verdana' fontColor='ffffff' isBold='1' fontSize='16' />
</categories>
<categories  bgColor='ffffff' fontColor='1288dd' fontSize='10' >
 <category start='25/2/2008' end='25/2/2008' align='center' name='25'  isBold='1' />
 <category start='26/2/2008' end='26/2/2008' align='center' name='26'  isBold='1' />
 <category start='27/2/2008' end='27/2/2008' align='center' name='27'  isBold='1' />
 <category start='28/2/2008' end='28/2/2008' align='center' name='28'  isBold='1' />
 <category start='29/2/2008' end='29/2/2008' align='center' name='29'  isBold='1' />
 <category start='1/3/2008' end='1/3/2008' align='center' name='01'  isBold='1' />
 <category start='2/3/2008' end='2/3/2008' align='center' name='02'  isBold='1' />
 <category start='3/3/2008' end='3/3/2008' align='center' name='03'  isBold='1' />
 <category start='4/3/2008' end='4/3/2008' align='center' name='04'  isBold='1' />
 <category start='5/3/2008' end='5/3/2008' align='center' name='05'  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='Job 1' id='1' />
 <process Name='Job 2' id='2' />
 <process Name='Job 3' id='3' />
 <process Name='Job 4' id='4' />
 <process Name='Job 5' id='5' />
 <process Name='Job 6' id='6' />
 <process Name='Job 7' id='7' />
 <process Name='Job 8' id='8' />
 <process Name='Job 9' id='9' />
 <process Name='Job 10' 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='25/02/2008' />
  <text label='25/02/2008' />
  <text label='25/02/2008' />
  <text label='25/02/2008' />
  <text label='25/02/2008' />
  <text label='25/02/2008' />
  <text label='25/02/2008' />
  <text label='25/02/2008' />
  <text label='25/02/2008' />
  <text label='25/02/2008' />

 </dataColumn>
 <dataColumn width='70' headerfontcolor='ffffff'  bgColor='eeeeee' headerbgColor='4567aa'  fontColor='000000' headerText='Finish' isBold='0'>
  <text label='25/02/2008' />
  <text label='26/02/2008' />
  <text label='27/02/2008' />
  <text label='28/02/2008' />
  <text label='29/02/2008' />
  <text label='01/03/2008' />
  <text label='02/03/2008' />
  <text label='03/03/2008' />
  <text label='04/03/2008' />
  <text label='05/03/2008' />
 </dataColumn>

 <dataColumn align='center' headerfontcolor='ffffff'  headerbgColor='4567aa'  bgColor='eeeeee' headerText='Dur.' width='35' isBold='0'>
  <text label='1' />
  <text label='2' />
  <text label='3' />
  <text label='4' />
  <text label='5' />
  <text label='6' />
  <text label='7' />
  <text label='8' />
  <text label='9' />
  <text label='10' />
  
 </dataColumn>
 <dataColumn headerbgColor='4567aa' headerfontcolor='ffffff'  align='right' fontColor='000000' bgColor='4567aa' bgAlpha='25' headerText='Cost' >
  <text label='0' />
  <text label='0' />
  <text label='0' />
  <text label='0' />
  <text label='0' />
  <text label='0' />
  <text label='0' />
  <text label='0' />
  <text label='0' />
  <text label='0' />

 </dataColumn>

</dataTable>
<tasks  width='10' >
 <task name='Actual' processId='1' start='25/2/2008' end='25/2/2008' id='1' color='cccccc' alpha='100'  topPadding='19' height='10' />
 <task name='Actual' processId='2' start='25/2/2008' end='26/2/2008' id='2' color='cccccc' alpha='100'  topPadding='19' height='10' />
 <task name='Actual' processId='3' start='25/2/2008' end='27/2/2008' id='3' color='cccccc' alpha='100'  topPadding='19' height='10' />
 <task name='Actual' processId='4' start='25/2/2008' end='28/2/2008' id='4' color='cccccc' alpha='100'  topPadding='19' height='10' />
 <task name='Actual' processId='5' start='25/2/2008' end='29/2/2008' id='5' color='cccccc' alpha='100'  topPadding='19' height='10' />
 <task name='Actual' processId='6' start='25/2/2008' end='1/3/2008' id='6' color='cccccc' alpha='100'  topPadding='19' height='10' />
 <task name='Actual' processId='7' start='25/2/2008' end='2/3/2008' id='7' color='cccccc' alpha='100'  topPadding='19' height='10' />
 <task name='Actual' processId='8' start='25/2/2008' end='3/3/2008' id='8' color='cccccc' alpha='100'  topPadding='19' height='10' />
 <task name='Actual' processId='9' start='25/2/2008' end='4/3/2008' id='9' color='cccccc' alpha='100'  topPadding='19' height='10' />
 <task name='Actual' processId='10' start='25/2/2008' end='5/3/2008' id='10' color='cccccc' alpha='100'  topPadding='19' height='10' />

</tasks>
<connectors>
</connectors>

</chart>

Post #4617
Posted 2/28/2008 7:28:42 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 7/21/2008 10:47:08 AM
Posts: 1,985, Visits: 471
Hi,

This bug is not present in FusionGadgets v3 Gantt chart.

Meanwhile, we're working on fixing it in the free version Gantt.


Thanks,
Pallav Nadhani
FusionCharts Team
Post #4777
Posted 5/12/2008 8:56:18 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/20/2008 3:38:15 AM
Posts: 1, Visits: 5
Hi,

I found this problem yesterday, and now have got to this issue.

How are you making out?
I've been waiting you to fix it in "Fusion Charts Free".

Thank you.
Post #6232
Posted 5/18/2008 10:10:28 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 7/21/2008 10:47:08 AM
Posts: 1,985, Visits: 471
Yes - we'll fix it in next release of FusionCharts Free.

Thanks,
Pallav Nadhani
FusionCharts Team
Post #6315
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 6:07am


Execution: 0.063.