我正在尝试构建一个能够在线路上打开和关闭的折线图 - 但是我得到一个x.bandwidth错误可能是因为我的轴是基于缩放时间的 -
http://jsfiddle.net/0ht35rpb/235/
<select data-ng-options="area.areaId as area.areaName for area in AreaReportCtrl.areaList"
data-ng-model="AreaReportCtrl.selectedArea">
</select>
<select data-ng-options="subAreaName as subAreaName for area.subAreaNames in AreaReportCtrl.areaList|filter:{areaId:AreaReportCtrl.selectedArea}"
data-ng-model="AreaReportCtrl.selectedArea">
</select>
x.bandwidth会等同于什么?
var x = d3.scaleTime()
.range([0, width]);