我有一些数据要连接到我的 highcharts。
到目前为止,我在 z3s.js 中获取数据
KpiChartTrendForZxController = function($scope, $http, LocationService) {
var GetKpiChartTrendForZx, dates;
GetKpiChartTrendForZx = function(containerId) {
var serviceUrl;
serviceUrl = iSee.ServiceLocator.KpiChartTrendZxForContainer(containerId);
return $http.get(serviceUrl).success(function(data) {
return $scope.trendForZx = data;
});
};
我的数据看起来像: series: [ { name: "Z3 from ZB - Sum", data: [["04/04/2013 08:00", 5], ["05/04/2013 08:00", 5 ], ["06/04/2013 08:00", 5], ["07/04/2013 08:00", 5], ["08/04/2013 08:00", 5], ["09 /04/2013 08:00", 5], ["10/04/2013 08:00", 5], ["11/04/2013 08:00", 5], ["12/04/2013 08 :00", 5], ["13/04/2013 08:00", 5], ["14/04/2013 08:00", 5], ["15/04/2013 08:00", 5 ], ["16/04/2013 08:00", 5], ["17/04/2013 08:00", 5], ["18/04/2013 08:00", 5]]
如何将它们添加到我的系列中?数据:值[i]:名称[i],数据[i]
数据[i]:时间[j],值[j]
谢谢