E-mail from David Huynh about making the interval line marker visible
for week bands

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Huynh
Sent: Wednesday, June 06, 2007 11:58 PM
To: General List
Subject: Re: Timeline interval line marker for bands with week interval
unit

Bennett, Scott R. wrote:
> All,
>  
> This may seem like an obvious question, but I cannot seem to figure 
> out the solution.
>  
> How do I create a visible interval line marker for bands with a WEEK 
> interval unit?  The standard implementation of timeline bands have 
> visible interval line markers for DAY, MONTH and YEAR timeline bands,

> however for WEEK timeline bands the line markers between week 
> intervals are not visible.  I have been looking at the ether, theme 
> and band JavaScript implementations but cannot figure out how to make

> the interval line markers for WEEK bands visible.  Has anyone 
> implemented this solution?
I believe in the WEEK interval unit, the weekends are painted in
yellow, 
which might be hard to see. Can you detect those yellow weekend strips 
in this example? (scroll the top band to see October)

    http://simile.mit.edu/timeline/examples/jfk/jfk.html

No interval lines are drawn in the WEEK interval unit. Take a look in

    http://simile.mit.edu/timeline/api/scripts/ether-painters.js

and search for "this.createIntervalMarker". You'll find something like

    if (showLine && unit != Timeline.DateTime.WEEK) {
       ... paint line ...
    }
    if (unit == Timeline.DateTime.WEEK) {
       ... paint weekend ...
    }

You can override Timeline.EtherIntervalMarkerLayout if you want to 
change that behavior.

As for the color of the weekend, it's specified in

    http://simile.mit.edu/timeline/api/scripts/themes.js

and you can change it with something like 
theme.ether.interval.weekend.color = "#aaaaaa".

David

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to