js-gantt
js-gantt copied to clipboard
Specify number of rows, and which interval goes on which row
I am missing the functionality to specify where an interval should be placed. As far as I can make out, the library will try to minimize the number of rows used, but I can see a use case where I have some predefined number of actors/items that I would like to visualize the allocated interval of time for.
I presume this could be part of the mapper (and I assumed group
did this, but I cannot find any documentation regarding the matter nor get it to work).
Great library so far.
Hi Erik,
thanks for the feedback. There is no such functionality in the library that an interval is currently align to a group which would map it in a specific "row". I know that there are several implementations out there that add this as well. In my specific use-case, when I wrote this library this was not needed.
The positioning happens in the determineSwimlane
method in IntervalView.js
. If you would like the to change the positioning it would be easy to do it by overriding this method. If you have a nice extension, please fell free to push it or send it to me and I see if I can get it integrated nicely.
Once more thanks a lot for the feedback, Philipp