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

I can not duplicate an angular component with a Syncfusion Pie Chart, it breaks


I created a custom angular component with a Syncfusion chart (Accumulation Pie Chart). When I render just one component everything is OK, but when I try two or more of the same component, it always breaks.

I'm using Angular 7 and SYNCFUSION EJ2. 
I'm sharing a Stackblitz link of my code:

2 Replies

RO Rodrigo February 26, 2019 03:27 PM UTC

I have the answer, i just needed to change id="container" to class="container" in custom.component.html. Because an id has to be unique in HTML. 

DD Dharanidharan Dharmasivam Syncfusion Team February 27, 2019 05:58 AM UTC

Hi Rodrigo, 
Thanks for using Syncfusion products and happy to hear the issue has been resolved. Kindly get in touch with us, if you need further assistance. We are always happy in assisting you. 

Live Chat Icon For mobile
Up arrow icon