我想用角度4的动态数据绘制谷歌图表。我正在使用visual studio web express 2015.静态数据工作正常。我通过从Web API序列化数据表将数据发送到角度。 还有其他方法可以在typescript上创建带有动态值的谷歌图表吗?
我想要这样的结果
public GoalSetProgress_ChartData = [['Status', 'Number of Employees'],['Goal set for the employees', 210],['Goals not set for the employees', 40]];
在console.log上的我可以看到结果为
[{"Status":"Goal Set Pending","NumberofEmployees":"20"},{"Status":"Goal Set Completed","NumberofEmployees":"15"}]
未绘制图表并显示此格式错误。