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
