David Huynh wrote:
> Brian L. Croxall wrote:
>   
>> Dear all,
>>
>> I'm continuing to experiment--when I get a chance--with using Exhibit 
>> and a Google spreadsheet to create timelines. You can see my sandbox 
>> project at 
>> http://webdrive.service.emory.edu/users/bcroxal/www/hemingway_timeline.html
>>
>> Two questions:
>>
>> 1. Can I change the background colors of the timeline itself? (I 
>> assume that these are controlled by the theme, which is currently 
>> ClassicTheme.)
>>     
> I think you're already doing that by setting 
> theme.ether.backgroundColors[1] = ... By doing that for 0, 2, 3, ... 
> you'll change the background colors of the other bands.
>
>   
>> 2. I have implemented a ex:colorKey=".eventType" string to get the 
>> different types of events to show up in different colors. I wonder if 
>> I can control these colors or if they are determined by the theme. I 
>> looked at a number of examples (such as the list of presidents) and 
>> could not determine where I might control this.
>>
>> These questions really emerge as the default color for "mixed" event 
>> types is white and does not stand out well against the light grey 
>> background of the timeline. Changing this "mixed event" color is what 
>> I'm really trying to do.
>>     
> Hmm, I just realize that my code doesn't allow an easy way to override 
> that. I'll fix it later. For now, you need to use a "coder". Look for
>     ex:role="coder"
> and
>     party-colors
> in the presidents example. Unfortunately you need to specify a color for 
> every case.
>   
I've changed the code so now you can just do something like this after 
including exhibit-api.js:

    <script>
        Exhibit.Coders.mixedCaseColor= "black";
        Exhibit.Coders.othersCaseColor = "#aaa";
        Exhibit.Coders.missingCaseColor = "#888";
    </script>

No need to specify any coder.

David

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

Reply via email to