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
Original issue reported on code.google.com by
supp...@thoughtfulhouse.org
on 8 Sep 2010 at 8:21Attachments: