Just to add to my post above:
Even if I can override the duration calculation, the rendering of a task
for single day would be incorrect. Since it thinks single day task has
duration of 0 days, the visual bar on the chart would not render. I could
possibly live w/ that for the time being until google introduce time
component to the gantt chart.
On Wednesday, 21 September 2016 13:19:16 UTC-4, ActiveX wrote:
> We're using Google Gantt chart in our project management software to
> display scheduled tasks. The problem is that when a task begins, for ex: on
> Sep 21 and ends on Sep 21, the gantt chart calculates this to have a
> duration of 0 days which in the context of scheduling is incorrect. A day
> still has 24 hours and this task has a duration of 1 days.
> As a workaround, I decided to calculate the duration myself, ie. I
> specified in my json start/end dates and duration but the gantt chart
> ignores my duration and simply subtracts the dates and returns 0 days for
> the duration. This is weird because the documentation says otherwise (from
> docs: If start/end/duration all present - Check that duration is
> consistent with start/end times. Throws error if inconsistent.)
> You might say, why I don't add +1 day to end date,- yes that will fix the
> duration calculation but now the displayed end date will be wrong.
> At the minimum the Gantt chart should allow me to override the duration.
> In the future, I think it would be great if the Gantt chart supported
> date/time or would handle the calculations in 2 different ways (or modes if
> you like).
> Any suggestions would be appreciated.
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to firstname.lastname@example.org.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.