Is it possible to have multiple "month" bands on one time line?

17 views
Skip to first unread message

Joe

unread,
Jul 26, 2011, 4:39:19 PM7/26/11
to SIMILE Widgets
Hello everyone,
I just started working with the SIMILE Widget and I wanted to create a
timeline with multiple "month bands" one for each region. In
addition, the year would sync all the sliding functions.

Each region would be a different color to differentiate it.

So you would have something like the below code, which displays, but
does not slide together when I slide the year band.

Any ideas???

Thanks

-Joe

var bandInfos = [
Timeline.createBandInfo({
eventSource: eventSource,
date: "Jun 28 2006 00:00:00 GMT",
width: "100px",
intervalUnit: Timeline.DateTime.MONTH,
intervalPixels: 100
}),
Timeline.createBandInfo({
eventSource: eventSource,
date: "Jun 28 2006 00:00:00 GMT",
width: "100px",
intervalUnit: Timeline.DateTime.MONTH,
intervalPixels: 100
}),
Timeline.createBandInfo({
eventSource: eventSource,
date: "Jun 28 2006 00:00:00 GMT",
width: "100px",
intervalUnit: Timeline.DateTime.YEAR,
intervalPixels: 200
})
];

Michael Nosal

unread,
Aug 31, 2011, 11:38:16 AM8/31/11
to simile-...@googlegroups.com
Did you remember to sync the bands before constructing the timeline?

bandInfos[1].syncWith = 0;
bandInfos[2].syncWith = 0;

tl = Timeline.create(....);

--Mike

aaron robb

unread,
Aug 31, 2011, 10:39:50 PM8/31/11
to simile-...@googlegroups.com
How are you differenciating between month bands with your data?
Reply all
Reply to author
Forward
0 new messages