Multiples charts not showing

Hi,

I've created a chart component using your chart, but when I want show multiples charts in same controller, only show the last

I attach an example

Attachment: charts_50fb1397.zip

1 Reply 1 reply marked as answer

SM Srihari Muthukaruppan Syncfusion Team September 29, 2020 01:32 PM UTC

Hi Manolo, 

Thanks for contacting syncfusion support. 

We have analysed your query. From that, we would like to let you know that the multiple charts are working fine. We suspect that the issue is due to the same id name provided for all the div elements. Hence we suggest you to provide different  Based on your requirement we have prepared a sample for your reference. Please find the below sample, code snippet and screenshot. 
  
  
Code Snippet: 
 
widget-chart.component.html 
<ejs-chart #chart [id]="uniqueIDs"></ejs-chart> 

widget-chart.component.ts: 
export class WidgetChartComponent implements OnInit { 
//… 
public uniqueIDs: string; 
assignDatasources() { 
   status.forEach( item => { 
       let randomStr = Math.random().toString(36).substr(2, 9); 
      this.uniqueIDs =  ("Chart"+ randomStr); 
      //… 
  }); 
} 
} 
  
Screenshot: 
 
  
Let us know if you have any concerns. 
  
Regards, 
Srihari M 


Marked as answer
Loader.
Up arrow icon