首页 > 其他 > 详细

HighCharts之2D含有负值的面积图

时间:2014-03-23 20:39:22      阅读:486      评论:0      收藏:0      [点我收藏+]

HighCharts之2D含有负值的面积图


1、HighCharts之2D含有负值的面积图源码

AreaNegative.html:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HighCharts 2D含有负值的面积图</title>
<script type="text/javascript" src="../scripts/jquery-1.11.0.js"></script>
<script type="text/javascript" src="../scripts/js/highcharts.js"></script>
<script type="text/javascript">
     $(function(){
    	 $(‘#areaNegativeChart‘).highcharts({
    		 chart: {
                 type: ‘area‘
             },
             title: {
                 text: ‘含有负值的面积图‘
             },
             xAxis: {
                 categories: [‘星期一‘, ‘星期二‘, ‘星期三‘, ‘星期四‘, ‘星期五‘,‘星期六‘,‘星期日‘]
             },
             credits: {
                 enabled: true
             },
             series: [{
                 name: ‘长河水位‘,
                 data: [24, 68, -48, 64, -34,53,-42]
             }, {
                 name: ‘寺河水位‘,
                 data: [-32, 45, -23, 42, -61,54,23]
             }, {
                 name: ‘石河水位‘,
                 data: [56, -64, 44, -28, 35,-24,64]
             }]
         });
     });
</script>
</head>
<body>
   <div id="areaNegativeChart" style="width: 1200px; height: 500px; margin: 0 auto"></div>
</body>
</html>

2、运行结果

bubuko.com,布布扣


HighCharts之2D含有负值的面积图,布布扣,bubuko.com

HighCharts之2D含有负值的面积图

原文:http://blog.csdn.net/you23hai45/article/details/21877999

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!