>
<pre class="lang-js" id="second"><code>
diagram.nodeTemplate =
  new go.Node("Auto", { width: 80, height: 100 })
    .add(
      new go.Shape({ fill: "white" }),
      new go.Panel("Vertical", { margin: 3 })
        .add(
          new go.TextBlock()
            .bind("text", "t1"),
          new go.TextBlock()
            .bind("text", "t2")
        )
    );

diagram.model.nodeDataArray = [{ t1: "Top", t2: "Bottom"}];
</code></pre>
<script>goCode("second", 500, 140)</script>

<p>
  That looks better, but