Diagram

Is there a way to fit the diagram to the page, i am getting scroll bars
Can we make the text wrap for the shape names and show some detail on Hover?

Also can we move the whole diagram to any direction if we cannot see some parts (like we do in maps)?
Also Want it centered all the time





I tried setting tooltip, but it is not showing up



1 Reply 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team May 3, 2021 03:05 PM UTC


Hi Vin, 
 
Please find the response in the following table. 
 
Is there a way to fit the diagram to the page, i am getting scroll bars 
 
Also Want it centered all the time 
 
We suggest you to use the fitToPage API to fit the large diagram into the screen view port area. 
 
Code snippet: 
 
  public create(args: Object): void { 
    this.diagram.fitToPage(); 
  } 
 
 
Can we make the text wrap for the shape names and show some detail on Hover? 
 
We suggest you use the tooltip to show the wrapped content, when hover the node or connector the respected tooltip will show. 
 
Also can we move the whole diagram to any direction if we cannot see some parts (like we do in maps)? 
 
We suggest you to use the zoomPan tool to move the whole diagram at any direction. 
 
 
 
We have added the suggested changes in the following sample for your references. 
 
 
Regards, 
Gowtham 


Marked as answer
Loader.
Up arrow icon