I want to make it dynamic. Please anyone can help me to do this . Actually i am new in to angular & Typescript.
Code Snippet Here: Manually I am adding row column. How to make it dynamic. Is it possible to iterate in loop.
We are using google charts.
const data = google.visualization.arrayToDataTable([
['Encounter Type', 'No of Encounters'],
[this.dataList[0][0], this.dataList[0][1]],
[this.dataList[3][0], this.dataList[3][1]],
[this.dataList[1][0], this.dataList[1][1]],
[this.dataList[2][0], this.dataList[2][1]],
]);