Query |
Response | |
How to resize the diagram and nodes to Dashboard panel width and height(with out getting scroll bars) |
You should set dashboard panel width and height to the diagram width and height property at runtime. Please refer to a code example below in which we have shown how to update the diagram size at runtime.
Code example:
| |
How to set the nodes offset Left and Top according to design and view page(with out getting scroll bars) |
The nodes will be positioned in the diagram based on its offsetX and offsetY property. So, you can position the node in your dashboard with these properties. Please refer to a help documentation below.
Help documentation: https://ej2.syncfusion.com/angular/documentation/diagram/nodes/#position
| |
How to set/modify above both as per dashboard panel width, height & offset values(with out getting scroll bars), when I resize the dashboard panel |
When you set the diagram width in percentage, the diagram will be responsive and the size will be updated automatically based on the resizing of the dashboard. Please refer to a code example in which we have shown how to set diagram width in percentage.
Code example:
|
this.diagram.loadDiagram(data);
//update the diagram size automatically at runtime
this.diagram.updateViewPort(); |