案例:HighCharts案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
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
<script src="https://cdn.bootcss.com/highcharts/5.0.10/highcharts-more.js"></script>  
8
</head>
9
<body>
10
<div id="container" style="width: 550px; height: 400px; margin: 0 auto"></div>
11
<script language="JavaScript">
12
$(document).ready(function() {  
13
   var chart = {      
14
      type: 'gauge',
15
      plotBackgroundColor: null,
16
      plotBackgroundImage: null,
17
      plotBorderWidth: 0,
18
      plotShadow: false  
19
   };
20
   var credits = {
21
      enabled: false
22
   };
23
24
   var title = {
25
      text: '双轴车速表'
26
   };
27
28
   var pane = {
29
      startAngle: -150,
30
      endAngle: 150
31
   };
32
33
   // the value axis
34
   var yAxis = [{
35
      min: 0,
36
      max: 200,
37
      lineColor: '#339',
38
      tickColor: '#339',
39
      minorTickColor: '#339',
40
      offset: -25,
41
      lineWidth: 2,
42
      labels: {
43
         distance: -20,
44
         rotation: 'auto'
45
      },
46
      tickLength: 5,
47
      minorTickLength: 5,
48
      endOnTick: false