How do I get multiple rows on my timeline?

Comments

1 comment

  • Official comment
    VisualScript

    The default arrangement for a timeline object is the single row with bubble events.

    To create a grid-like timeline with multiple rows, you can override the default in AddTimeline()

    myTimeline=Shape.AddTimeline(VS.Timeline_Arrangements.Row1);

    Then add rows using the Timeline method AddGridRow(Name). This labels the first row. Use additional calls to add more rows labeled with a name you specify.

    The label will be shown in the left column of the grid. Here's a quick code snippet that may help:

    {
    var myDocument=new VS.Document();
    var rootShape=myDocument.GetTheShape();
    var myTimeline=rootShape.AddTimeline(VS.Timeline_Arrangements.Grid1);
    myTimeline.AddGridRow("IT Department");
    myTimeline.AddGridRow("Software");
    }
    

    The timeline will look like this. 
    Grid timeline

     

    Hope this helps.

    Comment actions Permalink

Please sign in to leave a comment.