PonteIneptique / simile-widgets

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

TIMELINE. How to detarmine the track on which a perticular event can be shown....... #202

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi congrats for this nice piece of application that you developed.

I m using timeline to show the assignment of various persons on various
projects over a time period.
For example,
                      person p1 from date d1 to d2 on project pr1
                      person p2 from date d3 to d4 on project pr1
                      person p1 from date d3 to d4 again on project pr1

where d4>d3>d2>d1

The problem that i get while showing the events is that
                                        events for p1 with d1 & d2 and p2
with d3 & d4 are shown on the same track one after another with a
                                        space in between which is fine

and the event of p1 with d3 & d4 is shown on the next track just under p2
event since both p2 and p1
                                        have the same date range d3 & d4
this time as they can not just overlap.

i just want to know is there any way i can keep all the events for a person
say p1 whose event date range do not overlap on the same track .Like this
can it be done for all the resources.

I know that if the date range for two differnet events for a single person
say p1 overlaps the events will b shown on diffrent track.but if it does
not overlap then it should show next to each other on the same track for
the same person.

any help is appriciated as its urgent for my project
thanks in advance
Rajnish

[Submitted by Rajnish Sinha on simile.mit.edu]

stephane gavorch - 19/Sep/07 02:12 PM
Hello !
first I want to say tha timeline is a very good tool !

It would be very interesting if we can order and choose the line for an event

thanks
[ Show » ]
stephane gavorch - 19/Sep/07 02:12 PM Hello ! first I want to say tha
timeline is a very good tool ! It would be very interesting if we can order
and choose the line for an event thanks

[ Permlink | « Hide ]
David F. Huynh - 29/Sep/07 09:17 PM
Would splitting your events into several event sources and displaying them
in separate bands satisfy your need?
[ Show » ]
David F. Huynh - 29/Sep/07 09:17 PM Would splitting your events into
several event sources and displaying them in separate bands satisfy your need?

[ Permlink | « Hide ]
Deanna Schneider - 11/Jan/08 09:53 AM
I tried doing that, and the second event source still showed up on the same
band. Snippet of code below. Probably doing something wrong, since I'm
rushing trying to get something up on a Friday.

Timeline.createBandInfo({
                    width: "50%",
                    intervalUnit: Timeline.DateTime.MONTH,
                    intervalPixels: 100,
                    date: d,
                    showEventText: true,
                    theme: theme,
eventSource: eventSource
                }),
Timeline.createBandInfo({
                    width: "40%",
                    intervalUnit: Timeline.DateTime.MONTH,
                    intervalPixels: 100,
                    date: d,
                    showEventText: true,
                    theme: theme,
eventSource: mandatesSource
                })
[ Show » ]
Deanna Schneider - 11/Jan/08 09:53 AM I tried doing that, and the second
event source still showed up on the same band. Snippet of code below.
Probably doing something wrong, since I'm rushing trying to get something
up on a Friday. Timeline.createBandInfo({                     width: "50%",
                    intervalUnit: Timeline.DateTime.MONTH,                
    intervalPixels: 100,                     date: d,                    
showEventText: true,                     theme: theme, eventSource:
eventSource                 }), Timeline.createBandInfo({                 
   width: "40%",                     intervalUnit: Timeline.DateTime.MONTH,
                    intervalPixels: 100,                     date: d,     
               showEventText: true,                     theme: theme,
eventSource: mandatesSource                 })

[ Permlink | « Hide ]
Lukasz Boldys - 30/Jun/08 03:59 AM
I needed this functionality so I modified source of Timeline (1.2).

Changes:

sources.js: Add "level" attribute to event
ie:
var evt = new Timeline.DefaultEventSource.Event(
    (...)
    node.getAttribute("color"),
    node.getAttribute("textColor"),
    node.getAttribute("level")
);

Timeline.DefaultEventSource.Event = function(
        start, end, latestStart, earliestEnd, instant,
        text, description, image, link,
        icon, color, textColor, level) {
    (...)
    this._level = (level != null && level != "") ? level : null;
    (...)
};

layouts.js:

    if (streamIndex >= streams.length) {
        streams.push(Number.NEGATIVE_INFINITY);
    }

    if (evt._level != null){
        streamIndex = evt._level;
    }

No I can define on which track my event will be shown

I hope it'll be helpful

utek
[ Show » ]
Lukasz Boldys - 30/Jun/08 03:59 AM I needed this functionality so I
modified source of Timeline (1.2). Changes: sources.js: Add "level"
attribute to event ie: var evt = new Timeline.DefaultEventSource.Event(   
 (...)     node.getAttribute("color"),     node.getAttribute("textColor"),
    node.getAttribute("level") ); Timeline.DefaultEventSource.Event =
function(         start, end, latestStart, earliestEnd, instant,        
text, description, image, link,         icon, color, textColor, level) {  
  (...)     this._level = (level != null && level != "") ? level : null;  
  (...) }; layouts.js:     if (streamIndex >= streams.length) {        
streams.push(Number.NEGATIVE_INFINITY);     }     if (evt._level != null){
        streamIndex = evt._level;     } No I can define on which track my
event will be shown I hope it'll be helpful utek

Original issue reported on code.google.com by GabrielR...@googlemail.com on 7 Apr 2009 at 2:42