on newDiagram() {
    myDiagram.model = new go.GraphLinksModel({
      nodeDataArray: [
        { key: 1, text: 'S', category: 'Start' },
        { key: 2, text: 'E', category: 'End' }
      ],
      linkDataArray: [{ from: 1, to: 2 }]
    });
  }

  window.addEventListener('DOMContentLoaded', init);
</script>

<div id="sample">
  <div id="myFlexDiv">
    <div id="myPODiv">
      <div id="myPaletteDiv" style="background-color: floralwhite; border: solid 1px black"></div>
      <div id="myOverviewDiv" style=