Thanks, Larry! Looking at the source seems to be quite work-intensive
as I didn't want to go too deep into the library itself - I'll
probably save that for later ;)

Unfortunately, scrolling didn't work as described in the wiki as part
below scrolled wasn't rendered for some reason - maybe because of
older version of the timeline I used - will have to upgrade that
first.

         Sergey


On Oct 3, 1:44 pm, LarryK <[EMAIL PROTECTED]> wrote:
> Hi Sergey,
>
> As they say "Use the source, Luke" (A line from Star Wars.) Anyhow, I
> digress...
>
> Look in the source...and now that I'm looking at the source, it
> appears to me that the max number of tracks is not calculated (I
> misunderstood the meaning of the tracks array.) You should be able to
> calculate the max number of tracks from the height of the container
> and the height needed for each track. All of this is handled in the
> painter source, look in either original-painter.js or detailed-
> painter.js.
>
> The size of the tracks is a variable set by the theme, I believe.
>
> The source is not well commented but it is very clean and clear, in my
> humble opinion. As they say, it's "self-commented." I've not had too
> much trouble following what it's doing.
>
> Remember that the whole issue of tracks and track layout is a very
> tricky one. David has tried different heuristics for choosing tracks
> and each has had different pluses and minuses. I'm not sure how you'll
> figure out how many tracks a given dataset will need. If you're using
> events that have the same start/stop date, I guess you'd just count
> the max birthdays per any given day. If you're doing something with
> events that have durations, it gets much trickier, quickly.
>
> Re:>Vertical scrolling is also useful, but overall size is still fixed,
> >right?
>
> Nothing has to remain fixed.
> It can be changed dynamically if you want. Maybe you should make it
> adjustable by your users. Look at the animation method calls for
> growing/shrinking divs in either thehttp://developer.yahoo.com/yui/
> Yahoo UI or Prototype library.
>
> > Also, can I scroll only one band and not the whole container
>
> Sure. Look at the wiki page notes about vertical scrolling. Scroll
> just the divs you want to scroll.
>
> Good luck,
>
> Larry
>
> On Oct 3, 12:42 pm, Sergey Chernyshev <[EMAIL PROTECTED]>
> wrote:
>
> > Larry, thanks for the quick response!
>
> > How do I recalculate the number of tracks and the size of the tracks?
> > This sound like the best option, but I didn't see anything close to
> > describing this in the docs.
>
> > As for size choices, it's a good idea for a temporary solution, but
> > not permanent.
>
> > Vertical scrolling is also useful, but overall size is still fixed,
> > right? Also, can I scroll only one band and not the whole container
> > (probably not)?
>
> > Thank you,
>
> >            Sergey
>
> > On Oct 3, 12:10 pm, LarryK <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > Should be doable. You'll need to grow the containing div, then
> > > recalculate the number of tracks, then re-layout the event data.
>
> > > Or give your clients a choice of small, medium, large and x-large
> > > timelines.
>
> > > Or implement vertical scrolling, there's a page in the wiki about it.
>
> > > Regards,
>
> > > Larry
>
> > > On Oct 3, 11:42 am, Sergey Chernyshev <[EMAIL PROTECTED]>
> > > wrote:
>
> > > > Hi,
>
> > > > I'm using Timeline widget with a few projects that get data
> > > > dynamically from the datasource and therefore have no idea how much
> > > > data there is.
>
> > > > One good example is my Friends Explorer Facebook app that let's you
> > > > see your friends birthday 
> > > > timelines:http://www.sergeychernyshev.com/friendsexplorer/
>
> > > > The problem is that different people have different amount of friends
> > > > and some of them have so many that they don't fit vertically on the
> > > > timeline (timeline itself is horizontal).
>
> > > > So the question is how do I automatically resize the timeline upon
> > > > loading data from the datasource so ll the data fits nicely?
>
> > > > I searched a list archive and couldn't find the answer. I will
> > > > appreciate any help - Timeline is a great visual tool and I really
> > > > enjoy using it, but it's a pain not to be able to load as much data as
> > > > there is ;)
>
> > > > Thank you,
>
> > > >          Sergey
>
> > > > --
> > > > Sergey 
> > > > Chernyshevhttp://www.sergeychernyshev.com/http://www.sergeychernyshev.com/
--~--~---------~--~----~------------~-------~--~----~
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