Looking to add some dynamism here. Anyone with experience in Angular and Typescript willing to lend a hand? I'm still new to these technologies.
Here's the code snippet in question: Currently, I'm manually adding row columns. Is there a way to make this dynamic through iteration?
We are currently utilizing 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]],
]);