Hi Rob,

Ah, you mean consecutive events. I think it was a "feature" to separate 
those so that it's easy to tell when one ends and the next starts. 
That's not configurable right now. You'd have to override the _layout 
method in

    http://static.simile.mit.edu/timeline/api/scripts/layouts.js

if you want to change the behavior.

David

Rob Brenart (TT) wrote:
> Perhaps I'm mis-using the word band in the context I mean.
>
> I'm not referring to the container which loads the xml, but rather the
> single row of color which is in the band. I suppose I could put them
> each in their own band and then just do multiple bands of the same size
> and scale... but I'll still run into the problem where it refuses to put
> two items with overlapping times on the same line. (And overlapping can
> mean 5am-12pm and 12pm-1pm) 
>
>
> -----Original Message-----
> From: V. Alex Brennen [mailto:[EMAIL PROTECTED] 
> Sent: Monday, December 31, 2007 2:53 PM
> To: General List
> Cc: Rob Brenart (TT)
> Subject: Re: timeline - decide which band an entry is in regardless
> ofoverlap
>
> On Thu, 2007-12-27 at 16:34 -0600, Rob Brenart (TT) wrote:
>   
>> Is there a way to define which band an entry shows up in?
>>     
>
> Yes.
>
>   
>> My goal is to map several competing actions on one timeline, and I'd
>> like to put all of actor A's events on band 1, actor B's events on
>> band 2 and so on.
>>     
>
> You can do this by creating and specifying a different XML file
> for each band.  In your case, you could create a file called
> 'actor_a.xml' and a file called 'actor_b.xml' and then load each into
> an eventSource object and assign each object to a different band.
>
> Here is an example:
>
>   http://vab.mit.edu/jewel_kilcher_timeline/
>
> In the example, a summary XML file is used for the some bands and a more
> more detailed XML file, with many more events, is used for others.
>
> The relevant code is:
>
> Timeline.loadXML("jewel_kilcher.xml", function(xml, url) 
>       { eventSource.loadXML(xml, url); });
>
> Timeline.loadXML("jewel_kilcher_full.xml", function(xml, url)
>       { eventSourceFull.loadXML(xml, url); });
>
> var eventSource = new Timeline.DefaultEventSource();
> var eventSourceFull = new Timeline.DefaultEventSource();
>
>       var bandInfos = [
>               Timeline.createBandInfo({
>                       width:          "15%", 
>                       intervalUnit:   Timeline.DateTime.DECADE, 
>                       intervalPixels: 225,
>                       trackHeight:    .4,
>                               trackOffset:    .1,
>                       date:           "February 28 1995 00:00:00 GMT",
>                       showEventText:  false,
>                       eventSource:    eventSourceFull,
>                       theme:          theme
>                 }),
>               Timeline.createBandInfo({
>                       eventSource:    eventSourceFull,
>                       start:          "May 23 1974 00:00:00 GMT",
>                       date:           "February 28 1995 00:00:00 GMT",
>                       width:          "40%", 
>                       intervalUnit:   Timeline.DateTime.DAY, 
>                       intervalPixels: 100,
>                       theme:          theme
>               }),
>               Timeline.createBandInfo({
>                       eventSource:    eventSource,
>                       start:          "May 23 1974 00:00:00 GMT",
>                       date:           "February 28 1995 00:00:00 GMT",
>                       width:          "30%", 
>                       intervalUnit:   Timeline.DateTime.MONTH, 
>                       intervalPixels: 100,
>                       theme:          theme
>               }),
>               Timeline.createBandInfo({
>                       showEventText:  false,
>                       trackHeight:    0.4,
>                       trackGap:       0.2,
>                       eventSource:    eventSourceFull,
>                       start:          "May 23 1974 00:00:00 GMT",
>                       date:           "February 28 1995 00:00:00 GMT",
>                       width:          "15%",
>                       intervalUnit:   Timeline.DateTime.YEAR, 
>                       intervalPixels: 300,
>                       theme:          theme
>               })
>       ];
>
>
> I hope that this example is helpful.
>
>
> Thanks,
>
>    - VAB
>
> -
> V. Alex Brennen            [EMAIL PROTECTED]
> UNIX Systems Administrator     x3.9327
>           http://vab.mit.edu/  
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to