Javascript 使用fusionCharts和AngularJs更新仪表刻度盘
我有一个FusionChart量表,我想在AngularjsI中每秒更新一次。我有一个json对象,其中的值我想用来更新量表。Javascript 使用fusionCharts和AngularJs更新仪表刻度盘,javascript,angularjs,fusioncharts,Javascript,Angularjs,Fusioncharts,我有一个FusionChart量表,我想在AngularjsI中每秒更新一次。我有一个json对象,其中的值我想用来更新量表。 我认为我应该以某种方式使用函数“setData(dialIndex,value)。 我知道如何创建间隔,但不知道如何使用dail的更新函数 app.controller('StartController',function($scope... $scope.dataSource = { "chart": { ...
我认为我应该以某种方式使用函数“setData(dialIndex,value)。
我知道如何创建间隔,但不知道如何使用dail的更新函数
app.controller('StartController',function($scope...
$scope.dataSource = {
"chart": {
...
"dials": {
"dial": [
{
"value": "65",
...
}]
}
};
});
这可能对你有帮助。基本上,您需要获取特定FusionCharts的实例,并需要调用其API方法(setData
或feedData
)