Arjunsos / simile-widgets

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

TIMELINE: "showEventText: false" not working (event's title still showing) [Doc problem] #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
>What steps will reproduce the problem?
1. create a Timeline (using JSON as data source)
2. with 2 bands (week & month)
3. specify "showEventText: false" in 2nd band:

function onLoad() {
    var eventSource = new Timeline.DefaultEventSource(0);

var bandInfos = [
        Timeline.createBandInfo({
            width:          "75%",
            intervalUnit:   Timeline.DateTime.WEEK,
            eventSource:    eventSource,
            date:            new Date()
        }),
        Timeline.createBandInfo({
            eventSource:    eventSource,
            showEventText: false,
            date:            new Date(),
            width:          "25%",
            intervalUnit:   Timeline.DateTime.MONTH
        }) 
[...]

>What is the expected output? What do you see instead?
The event's titles should disappear on 2nd band (MONTH), however, the
titles are visible on both band 1&2.

>What version of the product are you using? On what operating system?
recent download version (Revision 1665), Microsoft Vista

Please provide any additional information below.

Thanks for helping.

Original issue reported on code.google.com by lisa.katharina@googlemail.com on 9 Nov 2008 at 8:35

GoogleCodeExporter commented 9 years ago
i'm having the same issue, wherever i put "showEventText: false" it never hides 
the
titles.

recently downloaded version, os: ubuntu linux, browser: firefox

thanks

Original comment by francisc...@gmail.com on 28 Nov 2008 at 7:09

GoogleCodeExporter commented 9 years ago
Going through the code, it looks like none of the event painters are actually 
using
the params.showText setting. So while
timeline.getBand(0).getEventPainter()._params.showText is correctly set to 
false,
none of the current set of event painters are using this value :(.

Original comment by nick.rab...@gmail.com on 24 Feb 2009 at 12:25

GoogleCodeExporter commented 9 years ago
The root cause for this issue is incorrect documentation (since corrected). In 
ver 1
of Timeline, the parameter showEventText was used to change a regular Timeline 
band
into an "overview" band with no event titles.

For version 2 and later, the way to get an overview band is to add the parameter
overview: true to the arguments for Timeline.createBandInfo

See Step 6 on page 
http://code.google.com/p/simile-widgets/wiki/Timeline_GettingStarted

This is the page that was wrong.

Documentation is an on-going effort. Thank you for your understanding and 
patience.

Original comment by larryklu...@gmail.com on 24 Feb 2009 at 3:26

GoogleCodeExporter commented 9 years ago
The documentation here:

   http://simile.mit.edu/timeline/docs/create-timelines.html

Still recommends using the showEventText boolean.

Original comment by gunnar.h...@gmail.com on 7 Jul 2012 at 9:28