| 100)) {
            diag.model.set(l.fromNode.data, 'value', prev - 1);
            diag.model.set(l.toNode.data, 'value', now + 1);
          }
        });
      });
      loop();
    }, 500);
  }
  window.addEventListener('DOMContentLoaded', init);
</script>

<div id="sample">
  <div id="myDiagramDiv" style="border: solid 1px black; width: 800px; height: 600px"></div>
  <p>Instruments are Panels that include:</p>
  <ul>
    <li>a scale which is a "Graduated" Panel showing a possible range of values</li>