案例:HighCharts案例     状态:可编辑再运行    进入竖版
 运行结果 
AخA
 
1
<html>
2
<head>
3
<meta charset="UTF-8" />
4
<title>Highcharts 教程 | W3xue教程(w3xue.com)</title>
5
<script src="/js/jquery-2.1.4.min.js"></script>
6
<script src="/js/hc/highcharts5.0.6.js"></script>
7
</head>
8
<body>
9
<div id="container" style="width: 550px; height: 400px; margin: 0 auto"></div>
10
<script language="JavaScript">
11
$(document).ready(function() {  
12
   var chart = {
13
      type: 'spline'      
14
   }; 
15
   var title = {
16
      text: 'Wind speed during two days'   
17
   };
18
   var subtitle = {
19
      text: 'October 6th and 7th 2009 at two locations in Vik i Sogn, Norway'
20
   };
21
   var xAxis = {
22
      type: 'datetime',
23
      labels: {
24
         overflow: 'justify'
25
      }
26
   };
27
   var yAxis = {
28
      title: {
29
         text: 'Wind speed (m/s)'
30
      },
31
      min: 0,
32
      minorGridLineWidth: 0,
33
      gridLineWidth: 0,
34
      alternateGridColor: null,
35
      plotBands: [{ // Light air
36
         from: 0.3,
37
         to: 1.5,
38
         color: 'rgba(68, 170, 213, 0.1)',
39
         label: {
40
            text: 'Light air',
41
            style: {
42
               color: '#606060'
43
            }
44
         }
45
      }, { // Light breeze
46
         from: 1.5,
47
         to: 3.3,
48
         color: 'rgba(0, 0, 0, 0)',