taitems / jQuery.Gantt

jQuery Gantt Chart
http://taitems.github.io/jQuery.Gantt/
MIT License
953 stars 304 forks source link

Increase zoom to mins/secs #159

Closed smiller393 closed 5 years ago

smiller393 commented 9 years ago

I am looking at add an enhancement to this that will allow users to view items down to the minute/second by zooming in further. Currently the most detailed view is hour by hour, but after this is added in, maybe the user could zoom in to view second by second. This will allow for more of a one day timeline of events that could be very useful in many projects.

The goal would be to make it similar the timeline chart in Google's visualization api: https://developers.google.com/chart/interactive/docs/gallery/timeline#ControllingColors

I plan on starting this once I finish implementing what was started in pull req: taitems/jQuery.Gantt#117

If anyone has ideas, opinions, or advise about this please let me know! I am hoping that this is somewhat of an easy change, so let me know if I am mistaken.

usmonster commented 9 years ago

@smiller393 Cool that you'll be reworking #117! Also thanks for putting the minutes/seconds idea out here. These ideas are definitely related, though to me it seems rare that users will have a need to display times down to second or even minute granularity. At that point it becomes less of a Gantt chart and more of a generic timeline.

I'll leave this open for and see if many voice interest in this, though I think #117 will serve the underlying need of displaying minute/second information about times. And for implementation tips, this comment may be helpful.

smiller393 commented 9 years ago

Of course! It depends on use case. In my case I am trying to track events that take just several minutes each, so an hour by hour view would not do enough for the end user (Ex: 10-15 different 3 min events in an hour which would be a typical use in my own app). The user for my case needs to be able to (at a glance) view about how long each event takes, and have the option to click/hover to get more detailed info. This is the best open source JS gantt I've seen out there, so I figured the best way get this functionality would be to fork this and expand it to include the what I need.

Thanks for referring to that comment you made, It makes sense that most of the work will be copying the hours scale code in each of the switches and customizing it to work with minutes. Hopefully that's the bulk of it. I could also see myself slimming down the date heading up top to just show today's date and the current time when zoomed in this far, since the time is the main focus at this level.

My goal is to have the rework of #117 resubmitted next week, and this enhancement by the end of the year.

smiller393 commented 9 years ago

With req #117 completed, I'm going to begin work on this change. Is this something that i should plan on pushing back to this project, or is it not a desired feature?

usmonster commented 9 years ago

I would say that the feature isn't in high demand, so this issue can be closed if you like. I would still recommend leaving a link to your fork/branch here if you're going to make the change, even if it's just for your app. Thanks again!

ascotthancock commented 9 years ago

Hi smiller.

Did you ever get this feature developed? I definitely need this. I too am tracking tasks to the minute. Not the second, but the minute is a real requirement. I would be interested in testing anything you had enhanced in this area.

animalillo commented 6 years ago

I would love this feature too! I'm looking into using this for comparing times spent in different server processes for performance measurement.

animalillo commented 6 years ago

Would it be just adding another case on Date.prototype.getRepDate = function (scale) ?

usmonster commented 5 years ago

Following up on my previous comment, I'm closing this issue.

Feel free to comment with a link to a fork that implements this request for those who seek it!