We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problem to set template as annotation

Hello,

I am trying to set a template as an annotation just like in the documentation https://ej2.syncfusion.com/react/documentation/diagram/labels/  but the diagram just crashes.

The bug is shown here : https://stackblitz.com/edit/react-z5qvwa 

Thank you for your answer.

1 Reply

SG Shyam G Syncfusion Team August 23, 2019 05:24 AM UTC

Hi Peter, 

You have set the same id for diagram component and div element. So only, the diagram is not rendered. We have modified the sample to solve your issue by setting different id as shown in the screenshot below. We will do changes in react documentation and let you know once it is refreshed online. 

Screenshot: 
 


Regards, 
Shyam G 


Loader.
Live Chat Icon For mobile
Up arrow icon