jqchart画出的图,坐标轴的值可以为负数吗?怎么实现?

单色数据 发布于 2013/07/29 14:44
阅读 1K+
收藏 0

如题。如果数组里有负值,jqchart的坐标轴不会显示负值,求大神指教。

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="C:/Users/Administrator/Desktop/jquery.js"></script>
 <script type="text/javascript" src="C:/Users/Administrator/Desktop/jquery.jqchart.js" charset="utf-8"></script>
</head>
<body>
<canvas id="canvasMyID"></canvas>
<script type="text/javascript">
$(document).ready(function(){
    var chartSetting={
   config : {
       title : "Fucking Java web XY线图<br/ >and There is a &lt;br /&gt;",
       titleLeft: 70,
       type:"bar",
       labelX : ["X1","X2","X3","X4","X5","X6","X7"],
       
       width: 400, //有影响
       height: 500, //有影响
       paddingL : 50, //有影响
       paddingT : 50 //有影响
   },
     data : [
       
       [100,400,790,640,128,-347,-567]
     ]
   };
    $('#canvasMyID').jQchart(chartSetting);
});
</script>
</body>
</html>

加载中
返回顶部
顶部