jdunsworth Report post Posted January 15, 2013 (edited) I'm attempting to use a Gantt Chart to show an employees division of time during their shift. I have it mostly working with the exception of an issue I am running into where the category headers are not matching up with the times. Here is my XML: <chart dateFormat="yyyy-mm-dd" outputDateFormat="hh12:mn ampm" caption="Shift Timeline" ganttPaneDuration="6" ganttPaneDurationUnit="h"> <categories> <category start="2013-01-14 22:00:00" end="2013-01-14 23:59:59" label="01-14-2013"/> <category start="2013-01-15 23:59:59" end="2013-01-15 22:59:59" label="01-15-2013"/> </categories> <categories align="center"> <category start="2013-01-14 22:00:00" end="2013-01-14 22:59:59" label="10 PM"/> <category start="2013-01-14 23:00:00" end="2013-01-14 23:59:59" label="11 PM"/> <category start="2013-01-15 00:00:00" end="2013-01-15 00:59:59" label="12 AM"/> <category start="2013-01-15 01:00:00" end="2013-01-15 01:59:59" label="1 AM"/> <category start="2013-01-15 02:00:00" end="2013-01-15 02:59:59" label="2 AM"/> <category start="2013-01-15 03:00:00" end="2013-01-15 03:59:59" label="3 AM"/> <category start="2013-01-15 04:00:00" end="2013-01-15 04:59:59" label="4 AM"/> <category start="2013-01-15 05:00:00" end="2013-01-15 05:59:59" label="5 AM"/> <category start="2013-01-15 06:00:00" end="2013-01-15 06:59:59" label="6 AM"/> <category start="2013-01-15 07:00:00" end="2013-01-15 07:59:59" label="7 AM"/> <category start="2013-01-15 08:00:00" end="2013-01-15 08:59:59" label="8 AM"/> <category start="2013-01-15 09:00:00" end="2013-01-15 09:59:59" label="9 AM"/> <category start="2013-01-15 10:00:00" end="2013-01-15 10:59:59" label="10 AM"/> <category start="2013-01-15 11:00:00" end="2013-01-15 11:59:59" label="11 AM"/> <category start="2013-01-15 12:00:00" end="2013-01-15 12:59:59" label="12 PM"/> <category start="2013-01-15 13:00:00" end="2013-01-15 13:59:59" label="1 PM"/> <category start="2013-01-15 14:00:00" end="2013-01-15 14:59:59" label="2 PM"/> <category start="2013-01-15 15:00:00" end="2013-01-15 15:59:59" label="3 PM"/> <category start="2013-01-15 16:00:00" end="2013-01-15 16:59:59" label="4 PM"/> <category start="2013-01-15 17:00:00" end="2013-01-15 17:59:59" label="5 PM"/> <category start="2013-01-15 18:00:00" end="2013-01-15 18:59:59" label="6 PM"/> <category start="2013-01-15 19:00:00" end="2013-01-15 19:59:59" label="7 PM"/> <category start="2013-01-15 20:00:00" end="2013-01-15 20:59:59" label="8 PM"/> <category start="2013-01-15 21:00:00" end="2013-01-15 21:59:59" label="9 PM"/> <category start="2013-01-15 22:00:00" end="2013-01-15 22:59:59" label="10 PM"/> </categories> <processes fontSize="12" isBold="1" align="left" headerFontSize="18" headerVAlign="bottom" headerAlign="left"> <process label="Shift" id="04906_SHIFT"/> <process label="Breaks" id="04906_BREAK"/> <process label="Lunch" id="04906_LUNCH"/> </processes> <tasks showLabels="1" showStartDate="1" showEndDate="1"> <task processId="04906_SHIFT" start="2013-01-15 00:18:00" end="2013-01-15 12:00:00"/> <task processId="04906_BREAK" start="2013-01-15 03:18:00" end="2013-01-15 03:28:00" label="Break 1"/> <task processId="04906_BREAK" start="2013-01-15 09:15:00" end="2013-01-15 09:30:00" label="Break 2"/> <task processId="04906_LUNCH" start="2013-01-15 05:30:00" end="2013-01-15 06:00:00"/> </tasks> </chart>[/size] [size="2"] So, to me, this should render a category line on top of the other category line showing the two dates; one ending on 2013-01-14 23:59:59 and the other starting on 2013-01-15 00:00:00. However, when my chart renders it is showing the category division at 10:30am instead of at 01/15/2013 00:00. Is there something wrong? The XML looks fine to me but maybe I'm missing something. Any assistance is appreciated! Edited January 15, 2013 by jdunsworth Share this post Link to post Share on other sites
Guest Sashibhusan Report post Posted January 24, 2013 Hi, From the code snippet of your XML code: <categories> <category start="2013-01-14 22:00:00" end="2013-01-14 23:59:59" label="01-14-2013"/> <category start="2013-01-15 23:59:59" end="2013-01-15 22:59:59" label="01-15-2013"/> </categories> It seems, for label "01-15-201" in <category>, the start date is "2013-01-15 23:59:59", where as it should be "2013-01-14 23:59:59". Please modify the XML accordingly and try once again. Correct code snippet: <categories> <category start="2013-01-14 22:00:00" end="2013-01-14 23:59:59" label="01-14-2013"/> <category start="2013-01-14 23:59:59" end="2013-01-15 22:59:59" label="01-15-2013"/> </categories> Hope this helps! Share this post Link to post Share on other sites
jdunsworth Report post Posted January 24, 2013 Hrm... How did I miss that one? Thanks a ton Share this post Link to post Share on other sites
Guest Sumedh Report post Posted January 29, 2013 It's glad to know that your issue is resolved. Share this post Link to post Share on other sites