HTML文件ZingChart条形图没有被正确生成
<zingchart id="timesheet-bar-chart" zc-json="myObj"></zingchart>
在controller.js
$scope.myObj = {
"type": "bar",
"utc": true,
"plotarea":{
"margin":'dynamic'
},
"plot":{
"stacked":true,
"stack-type":"normal" /* Optional specification */
},
"scaleX":{
"transform":{
"type":"date",
"all":"%d %M",
"item": {
"visible":false
}
},
},
"series":[{
"values": $scope.barValues,
"backgroundColor":"#f15662"
}]
};
zingchart.render({
id : 'timesheet-bar-chart',
height: 400,
width: "100%"
});
在$ scope.barValues数据动态以下格式中加入
[[[1478025000000,10],[1477938600000,20],[1478889000000,30]]]
我没有变,我犯任何错误。生成的栏不是格式。请帮助我我第一次使用ZingChart库。
什么是 “未格式” 对你意味着什么?数据绘制?酒吧的大小?刻度标签?请提供更多详细信息,因为我无法确定要解决的问题。 – nardecky
钢筋尺寸和x轴刻度标签。 –