Hi
I am using Google charts in my Project and have created a directive for the same.
The issue with chart is whenever I am passing data from Parent component to directive google.visualization is not getting loaded.
But if I wrap the with setTimeout method , its getting loaded.Has anyone faced such a issue.
Help would be appreciate
Regards,
Komal
setTimeout(() => {
google.load("visualization", "1", {packages: ["corechart"]});
google.setOnLoadCallback(this.drawChart());
}, 1000);