How we can resize the ejs-diagram component svg according to browser size in complex-hierarchical Tree in syncfusion

Hi 

I want to resize the ejs-diagram created created according to browser screen.



3 Replies

VG Vivisa Ganesan Syncfusion Team May 6, 2024 09:15 AM UTC

Hi,

If you set the width and height of diagram 100%, the viewport will automatically resize according to the size of the browser. Refer the below sample:

Sample:

4ai5i3 (forked) - StackBlitz

Regards,

Vivisa



GE Geeta May 7, 2024 05:13 AM UTC

Hi,

In the above example shared by you we are not able to see the ejs-diagram. It might be that height is zero for that image.

Please check this.



VG Vivisa Ganesan Syncfusion Team May 8, 2024 01:59 PM UTC

Hi,

Apologies for inconvenience. Here is the modified content, and we have also attached a sample for your reference.


Sample:

4ai5i3 (forked) - StackBlitz


Regards,

Vivisa


Loader.
Up arrow icon