最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

jQuery插件HighCharts實現(xiàn)2D柱狀圖、折線圖的組合多軸圖效果示例【附demo源碼下載】

 更新時間:2017年03月09日 10:08:44   作者:翱翔天地  
這篇文章主要介紹了jQuery插件HighCharts實現(xiàn)2D柱狀圖、折線圖的組合多軸圖效果,結(jié)合實例形式分析了jQuery使用HighCharts插件同時繪制柱狀圖、折線圖的實現(xiàn)技巧與相關(guān)操作步驟,并附帶demo源碼供讀者下載參考,需要的朋友可以參考下

本文實例講述了jQuery插件HighCharts實現(xiàn)2D柱狀圖、折線圖的組合多軸圖效果。分享給大家供大家參考,具體如下:

1、實例代碼:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HighCharts 2D柱狀圖、折線圖的組合多軸圖</title>
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/highcharts.js"></script>
<script type="text/javascript">
   $(function(){
     $('#someColumnLineChart').highcharts({
       chart: {
         zoomType: 'xy'
       },
       title: {
         text: '(jb51.net)某城市有關(guān)氣候參數(shù)'
       },
       xAxis: [{
         categories: ['一月', '二月', '三月', '四月', '五月', '六月','七月', '八月', '九月', '十月', '十一月', '十二月']
       }],
       yAxis: [{ // 主Y軸
         labels: {
           formatter: function() {
             return this.value +'°C';
           },
           style: {
             color: '#89A54E'
           }
         },
         title: {
           text: '溫度',
           style: {
             color: '#89A54E'
           }
         },
         opposite: true
       }, { // 次Y軸
         gridLineWidth: 0,
         title: {
           text: '降雨量',
           style: {
             color: '#4572A7'
           }
         },
         labels: {
           formatter: function() {
             return this.value +' mm';
           },
           style: {
             color: '#4572A7'
           }
         }
       }, { // 第三級Y軸
         gridLineWidth: 0,
         title: {
           text: '氣壓',
           style: {
             color: '#AA4643'
           }
         },
         labels: {
           formatter: function() {
             return this.value +' mb';
           },
           style: {
             color: '#AA4643'
           }
         },
         opposite: true
       }],
       tooltip: {
         shared: true
       },
       legend: {
         layout: 'vertical',
         align: 'left',
         x: 120,
         verticalAlign: 'top',
         y: 80,
         floating: true,
         backgroundColor: '#FFFFFF'
       },
       series: [{
         name: '降雨量',
         color: '#4572A7',
         type: 'column',
         yAxis: 1,
         data: [50.9, 71.5, 96.4, 129.2, 144.0, 106.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.8],
         tooltip: {
           valueSuffix: ' mm'
         }
       }, {
         name: '氣壓',
         type: 'spline',
         color: '#AA4643',
         yAxis: 2,
         data: [1015, 1012, 1015.9, 1015.5, 1012.3, 1009.5, 1009.6, 1010.2, 1015.1, 1016.9, 1008.2, 1026.7],
         marker: {
           enabled: false
         },
         dashStyle: 'shortdot',
         tooltip: {
           valueSuffix: ' mb'
         }
       }, {
         name: '溫度',
         color: '#89A54E',
         type: 'spline',
         data: [3.0, 6.8, 11.5, 16.5, 18.2, 22.5, 28.2, 36.5, 23.3, 18.3, 13.9, 2.6],
         tooltip: {
           valueSuffix: ' °C'
         }
       }]
     });
   });
</script>
</head>
<body>
  <div id="someColumnLineChart" style="width: 1200px; height: 500px; margin: 0 auto"></div>
</body>
</html>

2、運行效果圖:

附:完整實例代碼點擊此處本站下載。

更多關(guān)于jQuery相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《jQuery常用插件及用法總結(jié)》、《jquery中Ajax用法總結(jié)》、《jQuery表格(table)操作技巧匯總》、《jQuery擴展技巧總結(jié)》、《jQuery常見經(jīng)典特效匯總》及《jquery選擇器用法總結(jié)

希望本文所述對大家jQuery程序設(shè)計有所幫助。

相關(guān)文章

最新評論

大同市| 三门县| 灌阳县| 乌恰县| 商南县| 四川省| 应用必备| 昭觉县| 双辽市| 惠东县| 高雄县| 禹城市| 榆中县| 丰都县| 镇巴县| 阿合奇县| 陈巴尔虎旗| 剑阁县| 平昌县| 天祝| 平顺县| 白朗县| 合阳县| 秦安县| 中卫市| 台湾省| 六盘水市| 丰原市| 扶沟县| 涟水县| 北宁市| 库尔勒市| 田东县| 霞浦县| 扎鲁特旗| 故城县| 浪卡子县| 文成县| 玉门市| 旅游| 鲁甸县|