Re: Issue 17 in simile-widgets: TIMELINE: vertical line to display "today"

64 views
Skip to first unread message

codesite...@google.com

unread,
Sep 2, 2010, 11:52:58 AM9/2/10
to simile-wi...@googlegroups.com

Comment #5 on issue 17 by m...@marktemple.com: TIMELINE: vertical line to
display "today"
http://code.google.com/p/simile-widgets/issues/detail?id=17

Yes, this is exactly what we need!

codesite...@google.com

unread,
Aug 31, 2011, 6:13:19 AM8/31/11
to simile-wi...@googlegroups.com

Comment #6 on issue 17 by larry.kn...@gmail.com: TIMELINE: vertical line to
display "today"
http://code.google.com/p/simile-widgets/issues/detail?id=17

Has that wiki page been created? I couldn't find it but would love to use
this functionality.

Cheers,
(the other) Larry K

codesite...@google.com

unread,
Oct 5, 2012, 3:21:36 AM10/5/12
to simile-wi...@googlegroups.com

Comment #7 on issue 17 by dan...@coena.com: TIMELINE: vertical line to
display "today"
http://code.google.com/p/simile-widgets/issues/detail?id=17

Any update regarding this issue?
I am using timeline to display an activity history. I managed to set it up
to display each day's activity, and now what I would like to do is to
delimit somehow the midnight between two days.
I could use a 1 minute event to "paint" a line between each day, but it
would require for me to calculate the midnight for each day and apply a
decorator to that specific 1 minute interval.
Could this be done somehow else?

codesite...@google.com

unread,
Jul 31, 2014, 12:16:33 AM7/31/14
to simile-wi...@googlegroups.com

Comment #8 on issue 17 by paul.poy...@gmail.com: TIMELINE: vertical line to
display "today"
http://code.google.com/p/simile-widgets/issues/detail?id=17

new Timeline.SpanHighlightDecorator({
startDate: "7/30/2014 12:00:00",
endDate: "7/30/2014 14:00:00",
color: "#FF0000",
opacity: 50,
startLabel: "Today",
endLabel: "",
// theme: theme,
cssClass: 't-highlight1'
}),

This solved my problem :)

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

codesite...@google.com

unread,
Jul 31, 2014, 12:49:46 AM7/31/14
to simile-wi...@googlegroups.com

Comment #9 on issue 17 by paul.poy...@gmail.com: TIMELINE: vertical line to
display "today"
http://code.google.com/p/simile-widgets/issues/detail?id=17

I solved it by doing this:

var date = new Date();
var date2 = new Date();
date2.setTime(date.getTime()+2*60*60*1000)

for (var i = 0; i < bandInfos.length; i++) {
bandInfos[i].decorators = [
new Timeline.SpanHighlightDecorator({
startDate: date,
endDate: date2,
color: "#FF0000",
opacity: 50,
startLabel: "Today",
endLabel: "",
// theme: theme,
cssClass: 't-highlight1'
}),
];
Reply all
Reply to author
Forward
0 new messages