案例:HighCharts案例     状态:可编辑再运行    进入竖版
 运行结果 
AخA
            // that in JavaScript, months start at 0 for January, 1 for February etc.
 
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: 'Snow depth at Vikjafjellet, Norway'   
17
   };
18
   var subtitle = {
19
      text: 'Irregular time data in Highcharts JS'
20
   };
21
   var xAxis = {
22
      type: 'datetime',
23
      dateTimeLabelFormats: { // don't display the dummy year
24
         month: '%e. %b',
25
         year: '%b'
26
      },
27
      title: {
28
         text: 'Date'
29
      }
30
   };
31
   var yAxis = {
32
      title: {
33
         text: 'Snow depth (m)'
34
      },
35
      min: 0
36
   };
37
   var tooltip = {
38
      headerFormat: '<b>{series.name}</b><br>',
39
      pointFormat: '{point.x:%e. %b}: {point.y:.2f} m'
40
   };
41
   var plotOptions = {
42
      spline: {
43
         marker: {
44
            enabled: true
45
         }
46
      }
47
   };
48
   var series= [{