Hi, all,

This is how I solved that issue:

First I knew my desired start and end dates ahead of time so I passed
the startDate and endDate values within the onLoad command, such as:

function onLoad(bgnDate,endDate) { . . .


Then I assigned them into the zones array, such as:

    var mainzones = [
        {   start:    bgnDate,    // alternatively you could hard code
your dates here  new Date(1900,1,1)
            end:      endDate,   // alternatively you could hard code
your dates here  new Date(1940,1,1)
            magnify:  1,
            unit:     mainlabelunit,
           multiple: 1
        }
    ];

Per the comment above, instead of passing in the dates you could
define them directly within the mainzones array.

Then I passed mainzones into the array of bands  through the
createBandsInfo function, such as:

var bandArray = Timeline.createBandInfo({
                        detailed:    true,
                   intervalUnit:    mainlabelunit,
                          zones:    mainzones,        // passed in
here
                 eventSource:    eventsource,
                            date:    d,
                         . . ..


Hope this helps ..
Hunt


On Oct 1, 10:57 am, "Adrien Di Mascio" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'd like to know if it's possible to control, for a given band, the
> start date and the stop date.
> For instance, I'd like to be able to do something like :
>
>   Timeline.createBandInfo({
>         eventSource:    mySource,
>         width:          "20%",
>         startDate:           new Date(1900, 1, 1),
>         stopDate:           new Date(1940, 1, 1)
>       }),
>
> and then have my band spanning from 1900 to 1940.
>
> I could not find any information in the FAQ and a quick look at the
> code lets me think
> that it's not that obvious.
>
> Besides, the wiki
> (http://code.google.com/p/simile-widgets/wiki/Timeline_Ideas) suggests
> an interesting idea that would suit my needs :
>
> """
> Ability to easily create a band with a view width that shows the
> entire lifespan from the earliest
> event the latest. It wouldn't scroll, but clicking it would center the
> other bands on that date.
> It would not necessarily need labels or an interval unit, just markers
> for all the events.
> It would show all the events at the same time, with the layout,
> amount, and distribution of
> events in a single band.
> """
>
> I'm willing to try to implement this during my spare time in the next
> weeks. Any idea
> on where I should start ?
>
> Cheers,
> Adrien.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to