How to dynamic set the diagram width and height

rather then do this or in conjuction with

’,

How can dynamically reset the height and width and resize

I’m sorry, I’m not sure what you mean.

You can dynamically resize an object by setting resizable: true and resizeObjectName: 'someName' in the node template.

For example: http://gojs.net/latest/samples/entityRelationship.html

The initial canvas size is set to 400 by 500. I have a resize listen on the web page, and would now like to pragmatically make the diagram bigger for example an API like

myDiagram.setSize (600, 800)
myDigaram.redrawe()

You have to change the diagram div css. In most samples you’d write:

  var div = myDiagram.div;
  div.style.width = '200px';
  myDiagram.requestUpdate(); // Needed!

See: http://gojs.net/latest/intro/resizing.html

Most excellent thank you, I am going through an evaluation phase and really appreciate the quick response.