s" id="fourth"><code>
diagram.nodeTemplate =
  new go.Node("Auto", { width: 80, height: 100 })
    .add(
      new go.Shape({ fill: "white" }),
      new go.Panel("Vertical", { margin: 3, stretch: go.Stretch.Fill, background: "red" })
        .add(
          new go.TextBlock({ background: "lime" })
            .bind("text", "t1"),
          new go.TextBlock({ background: "cyan" })
            .bind("text", "t2")
        )
    );

diagram.model.nodeDataArray = [{ t1: "Top", t2: "Bottom"}];
</code></pre>
<scr