Angularjs 未绘制nvd3时间序列图

Angularjs 未绘制nvd3时间序列图,angularjs,charts,nvd3.js,Angularjs,Charts,Nvd3.js,我正在尝试获得一个基本的NVD3图形,下面是代码片段 $scope.options = { chart: { type: 'stackedAreaChart', height: 450, margin : { top: 20, right: 20, bottom: 30, left: 40 }, x: function(d){ return Date(d[1]);}

我正在尝试获得一个基本的NVD3图形,下面是代码片段

$scope.options = {
    chart: {
      type: 'stackedAreaChart',
      height: 450,
      margin : {
        top: 20,
        right: 20,
        bottom: 30,
        left: 40
      },
      x: function(d){ return Date(d[1]);},
      y: function(d){return d[0];},
      useVoronoi: false,
      clipEdge: true,
      duration: 0,
      useInteractiveGuideline: true,
      xScale: d3.time.scale(),
      xAxis: {
        showMaxMin: false,
        tickFormat: function(d) {
            return d3.time.format('%x')(new Date(d));
        }
      },
      yAxis: {
        tickFormat: function(d){
          return d;
        }
      }
    }
  };
输入图表的数据如下所示:

$scope.data = [
    {
      "key" : "mac1" ,
      "values" : [ [ 5000 , "2016-02-03T11:07:58.940Z"] , [ 5200 , "2016-02-03T11:08:09.862Z"] ]
    }
  ];
图中没有线条或堆叠区域

X轴是时间序列,其日期为1970年1月1日

我不确定我哪里出了问题。请帮忙

一些类似的stackoverflow问题没有帮助-


我犯的错误是,
x:function(d){return Date(d[1]);}
这一行将返回日期格式,我正在重新格式化日期格式

更改为
x:function(d){returnd[1];}
有助于在屏幕上显示图形

我还尝试修改
持续时间:100
,但无法从服务器刷新图形。有人帮忙吗