Timeline *does* put events in the same row if there is no overlap.  You'll note 
that "The Old Guitarist" does overlap with "Portrait of Pablo Picasso" - 
Timeline uses a reverse iterator to loop through events - this means that when 
painting two overlapping events, the earlier event will be the one pushed down 
to make room for the later event. 

--Mike

On May 13, 2010, at 11:31 AM, alex mitchell wrote:

> Hi Mark,
> 
> Thanks for the pointer. However, this isn't quite what I had in mind. I was
> hoping that there would be some way to force events to appear on the same
> row within a band. For example, in the third band in the example you listed,
> the events "The Old Guitarist" and "Portrait of Pablo Picasso" do not line
> up at the same y co-ordinates, even though the text of "The Old Guitarist"
> does not overlap with that of "Portrait of Pablo Picasso". They are in the
> same band, but are not vertically aligned. I would like to be able to insist
> that, if there is no overlap, events appear in the same row. Is this
> possible?
> 
> thanks,
> Alex
> 
> 
> On 5/13/10 1:57 AM, "mleden" <mle...@yahoo.com> wrote:
> 
>> Hi Alex,
>> 
>> AFAIK, the best way to simulate that would be using the "filtered
>> event source" feature of Timeline.  I no longer have publicly
>> available code that illustrates this, but I based my coding on this
>> excellent example:
>> http://people.csail.mit.edu/dfhuynh/projects/timeline-exhibit/timeline-exhibit
>> 2.html
>> 
>> I recommend that you first get your Timeline working with just a
>> single "band".  Then, using the source code from the above example as
>> reference, introduce the "constructFilteredEventSource"
>> functionality.  Each Timeline band will represent a single person's
>> tasks.  Needless to say, the more bands that you introduce, the
>> heavier the drag on performance.
>> 
>> HTH,
>> -Mark
>> 
>> 
>> On May 11, 9:35 pm, alex mitchell <lex...@gmail.com> wrote:
>>> I'd like to create a timeline to represent tasks in a project, with each row
>>> in the timeline representing a different person's tasks, assuming
>>> non-overlapping start and end dates. To do this, I'm hoping to be able to
>>> specify which row a given event appears on. For example, referring to the
>>> "religions" 
>>> example:https://simile.mit.edu/timeline/examples/religions/religions.html
>>> I'd like to be able to specify that, in the third band, "Samaria, Judea,
>>> Idumea under Roman" and "Tiberius, Roman Emperor" appear in the same row.
>>> 
>>> Does anyone have any suggestions either how to do this out-of-the-box, or
>>> pointers as to where the code would need to be modified to add this?
>>> 
>>> thanks!
>>> Alex
>>> 
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "SIMILE Widgets" group.
>>> To post to this group, send email to simile-widg...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> simile-widgets+unsubscr...@googlegroups.com.
>>> For more options, visit this group
>>> athttp://groups.google.com/group/simile-widgets?hl=en.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "SIMILE Widgets" group.
> To post to this group, send email to simile-widg...@googlegroups.com.
> To unsubscribe from this group, send email to 
> simile-widgets+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/simile-widgets?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to simile-widg...@googlegroups.com.
To unsubscribe from this group, send email to 
simile-widgets+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to