João Severino wrote:
> Hey! I am doing some prototypes using timeline, and i would like to 
> know if it is possible to display the events in only one row, instead 
> of showing in different rows of a band.
>
> I dont know if you understand me, but the main idea was to make a 
> Gantt chart, for so i considered for a TASK to a BAND. Thats why i 
> need to paint all events in only one row of a specific timeband.
>
> Thanks in advance
If you're using version 1.x of Timeline, then you can override the 
layout algorithm by adding your own Javascript code after you include 
timeline-api.js:

<script>
    Timeline.StaticTrackBasedLayout.prototype._layout = function() {
        var iterator = this._eventSource.getAllEventIterator();
        while (iterator.hasNext()) {
            var evt = iterator.next();
            this._tracks[evt.getID()] = 0;
        }
        this._trackCount = 1;
    }
</script>

Note that the default implementation is here
    http://simile.mit.edu/timeline/api/scripts/layouts.js

Hope that helps,

David

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

Reply via email to