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
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general