Thanks for the suggestions guys....
I've tried adding these lines but still no joy. I've pasted the full
code below incase something somewhere in the code is affecting these
settings. Just checking I'm describing the right thing - when I say
"Event duration bars" - I'm talking about the actual lines on the
timeline which depict each event starting at time(X) and finishing at
time(Y) - its these lines I want to make a bit thicker - at least dbl
what they are currently.
I am not using any css
I am using version api-2.2.0/timeline-api.js
Wondering if the fact that these lines dont seem to be working either
is related (problem with the way I've setup my theme perhaps?)-
theme.ether.backgroundColors[0] = '#DFF';
theme.ether.backgroundColors[1] = '#BDF';
Full code listing: -
"<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/
TR/html4/strict.dtd">
<HTML>
<HEAD>
<script type="text/javascript">
function reFresh() {
location.reload(true)
}
/* Set the number below to the amount of delay, in milliseconds,you
want between page reloads: 1 minute = 60000 milliseconds. */
window.setInterval("reFresh()",180000);
// End -->
</script>
<TITLE> GLOBAL TIMELINE</TITLE>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<script src="
http://static.simile.mit.edu/timeline/api-2.2.0/
timeline-api.js" type="text/javascript"></script>
<script>
var tl;
function onLoad() {
var eventSource = new Timeline.DefaultEventSource();
var theme = Timeline.ClassicTheme.create();
theme.ether.backgroundColors[0] = '#DFF';
//theme.ether.backgroundColors[1] = '#BDF';
theme.ether.backgroundColors[1] = '#EEE';
theme.ether.highlightColor = '#FFF';
theme.ether.highlightOpacity = '100';
theme.event.bubble.width = 300;
theme.event.bubble.height = 100;
theme.event.label.width = 250;
theme.event.tape.height = 10; // px
theme.event.track.height = theme.event.tape.height +
6;
var bandInfos = [
Timeline.createBandInfo({
eventSource: eventSource,
width: "80%",
intervalUnit: Timeline.DateTime.HOUR,
intervalPixels: 240,
theme: theme,
layout: 'original'
}),
Timeline.createBandInfo({
overview: true,
eventSource: eventSource,
width: "20%",
intervalUnit: Timeline.DateTime.DAY,
intervalPixels: 600,
theme: theme
// layout: 'overview'
})
];
bandInfos[1].syncWith = 0;
bandInfos[1].highlight = true;
tl = Timeline.create(document.getElementById("my-timeline"),
bandInfos);
Timeline.loadXML("timeline.xml", function(xml, url)
{ eventSource.loadXML(xml, url); });
/*eventSource.loadXML(timeline.xml);
tl.finishedEventLoading(); */
}
</script>
</head>
<body onload="onLoad();" onresize="onResize();">
<h1> <center>GLOBAL TIMELINE </center></h1>
<div id="my-timeline" style="height: 500px; border: 1px solid
#aaa"></div>
<noscript>
This page uses Javascript to show you a Timeline. Please enable
Javascript in your browser to see the full page. Thank you.
</noscript>
</BODY>
</HTML>"
On Feb 8, 3:26 am, Larry Kluger <
wex...@kluger.com> wrote:
> Hmmm,
>
> I agree with Scott that it is a good idea to add
> layout: 'original'
> to your band info.
>
> But the other two settings are the correct ones to use. Try
> theme.event.tape.height = 10; // px
> theme.event.track.height = theme.event.tape.height + 6;
>
> You need to adjust both.
>
> Also check your css that you are not setting the height of the tapes there--you shouldn't be.
>
> Which version of the library are you using?
>
> If that's not making the tapes thicker for you, then there's some other issue.
> The above settings do make the tapes thicker in the example2 file in the source, seehttp://
simile-widgets.googlecode.com/svn/timeline/trunk/src/webapp/si...
>
> Regards,
>
> Larry
>
> ________________________________
> From: Scott Thomson <
scott.mcauley.thom...@gmail.com>
> To:
simile-...@googlegroups.com
> Sent: Saturday, February 7, 2009 4:38:13 PM
> Subject: Re: How can I increase the thickness of the duration event bars on my Timeline?
>
> Hi Jake,
>
> Try removing the track height line:
> theme.event.tape.height = 10; // px
> // theme.event.track.height = theme.event.tape.height +
> 10;
>
> And in your bandInfo add:
> layout: 'original'
> to your HOUR band and:
> layout: 'overview'
> to your DAY band
>
> 0401 726 889- Hide quoted text -
>
> - Show quoted text -