Hi David, that's great - I was looking for something similar - I've only just seen Timeline but is proving very useful. I work in bioinformatics and am using timeline not to plot dates etc, but as an easy API for plotting genetic data (I'm using the timeline as a count of DNA bases instead of actual time) The AJAX interface is very amenable and is proving very useful. An eg can be found here - http://cneoformans.mlst.net/earth/chr/chr.html This is based on parsing an EMBL format file which is a standard flat file vocab for formatting DNA and associated data. Each one of the boxes represents a gene and the length of the box corresponds to the length of the gene (I've used 1 year = 100 bases until I construct my own labeller) I've just put a dummy link on each one to some external data ( in an iframe but I shall however put the AJAX listener in soon) - but it's just to demonstrate that I feel this is / could be very useful. I am interested now in linking events together - Is there any way to link (with a thin line maybe) two events on different dates?? thanks for your help
David
________________________________
From: [EMAIL PROTECTED] on behalf of David Huynh
Sent: Tue 17/04/2007 18:00
To: General List
Subject: Re: Timeline Interval Unit: Days of the Week
Raza,
No, right now there is no way to label the days by week day names. What
you need to do is to create your own "labeller" to label dates on the
timeline.
var myLabeller = new
Timeline.GregorianDateLabeller(Timeline.Platform.getDefaultLocale(), 0);
myLabeller.labelInterval = function(date, intervalUnit) {
if (intervalUnit == Timeline.DateTime.WEEK) { // you can use another
existing unit if you like
// write your own code here
} else {
return
Timeline.GregorianDateLabeller.prototype.defaultLabelInterval.call(this,
date, intervalUnit);
}
};
var bandInfos = [
...
];
bandInfos[0].labeller = myLabeller;
// ... the rest of the code
Let me know if that works for you.
Cheers,
David
M .Raza wrote:
> Peace,
>
> Is there a unit available to display days of the week
> (Fri, Sat, Sun, ...) in a timeline band? If not then
> how to go about creating such an interval unit?
>
> intervalUnit: Timeline.DateTime.DAYSOFTHEWEEK
>
> .Raza
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com <http://mail.yahoo.com/>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general
<<winmail.dat>>
_______________________________________________ General mailing list [email protected] http://simile.mit.edu/mailman/listinfo/general
