Date width related to duration

74 views
Skip to first unread message

lac...@catapultsports.com

unread,
Jan 7, 2013, 11:58:10 PM1/7/13
to verite-...@googlegroups.com
Hi everyone,

What I would like to be able to do is directly relate the size of a 'date' element with it's width on the timeline itself. I am using the timeline as an event viewer and as such would like day long events (eg. 15:00 one day - 14:00 on the next day) to be shown as 'wider' than those events that only last a couple of minutes. 

How would I go about this?

Cheers

Victor Alexandre

unread,
Jan 9, 2013, 6:12:44 AM1/9/13
to verite-...@googlegroups.com
Hi everyone!

Same question for me. 
Congratulations for this brilliant code... 

Cheers.

Siegbert Müller

unread,
Jan 15, 2013, 6:25:46 AM1/15/13
to verite-...@googlegroups.com
Yes, this feature would be really helpful for me too.

Greetings

Zulfa Juniadi Zulkifli

unread,
Jan 22, 2013, 1:24:46 PM1/22/13
to verite-...@googlegroups.com
This might be tough because TimelineJS directly converts time to pixels.

    var positionOnTimeline = function(the_interval, timerelative, dt) {
      if(dt !== undefined) {
        timerelative = positionRelative(interval, dt);
      }
      return {
        begin:  (timerelative.start - interval.base) * (config.nav.interval_width / config.nav.multiplier.current), 
        end:  (timerelative.end - interval.base) * (config.nav.interval_width / config.nav.multiplier.current)
      };
    }

VMM.Timeline.TimeNav.js
Reply all
Reply to author
Forward
0 new messages