Ne0nx3r0 / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

Improvement: Timeline event ordering #397

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have modified the original-painter.js file to provide the user the 
option of changing the order in which the events are painted.  The 
default order is process the events in reverse chronological order. 
The original painter now supports chronological order as well. 

Modified file attached.

The main difference between these (i.e. reverse-chronological and 
chronological) is what happens when events overlap on the display and 
stack up. Reverse chronological (the default) draws the oldest events 
on the bottom tracks and the newest events on the top tracks. Forward 
chronological draws the oldest events on the top tracks and the newest 
events on the bottom. 

You can change the order (forward or reverse) via band configuration: 
theme:          theme, 
eventPainterParams: { 
 order:     'forward', //forward or reverse 
}, 

layout:         'original' 

The motivation for the change is when using the timeline to display 
cause and effect relationships between events I wanted the cause event 
to be on the top (track zero) of the band and the effect event BELOW 
IT. 

Thanks, Dan

Original issue reported on code.google.com by supp...@thoughtfulhouse.org on 8 Sep 2010 at 8:21

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 10:09

GoogleCodeExporter commented 9 years ago
Thanks for this. Just what I needed.

Original comment by tho...@badsoda.com on 4 Oct 2011 at 11:52