cmartinezb / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMELINE: vertical line to display "today" #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
see
http://groups.google.com/group/simile-widgets/browse_thread/thread/39413a163731c
f6e?hl=en
and attached image mockup.

Original issue reported on code.google.com by nicolas....@logilab.fr on 21 Sep 2008 at 4:52

GoogleCodeExporter commented 8 years ago

Original comment by larryklu...@gmail.com on 25 Sep 2008 at 5:32

GoogleCodeExporter commented 8 years ago
Added Timeline subject prefix

Original comment by larryklu...@gmail.com on 25 Sep 2008 at 5:33

GoogleCodeExporter commented 8 years ago

Original comment by stefano.mazzocchi@gmail.com on 25 Mar 2009 at 7:01

GoogleCodeExporter commented 8 years ago
Changed to be of type doc. The instant highlight painter solves this request 
nicely. 
Need to add a wiki page demonstrating it.

Original comment by larryklu...@gmail.com on 30 Mar 2009 at 8:01

GoogleCodeExporter commented 8 years ago
Yes, this is exactly what we need!

Original comment by m...@marktemple.com on 2 Sep 2010 at 3:52

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

Cheers,
(the other) Larry K

Original comment by larry.kn...@gmail.com on 31 Aug 2011 at 10:12

GoogleCodeExporter commented 8 years ago
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?

Original comment by dan...@coena.com on 5 Oct 2012 at 7:21

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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'
                    }),
                ];
            }

Original comment by paul.poy...@gmail.com on 31 Jul 2014 at 4:49