案例: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
       plotBackgroundColor: null,
14
       plotBorderWidth: null,
15
       plotShadow: false
16
   };
17
   var title = {
18
      text: '2014 年各浏览器市场占有比例'   
19
   };      
20
   var tooltip = {
21
      pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
22
   };
23
   var plotOptions = {
24
      pie: {
25
         allowPointSelect: true,
26
         cursor: 'pointer',
27
         dataLabels: {
28
            enabled: true,
29
            format: '<b>{point.name}%</b>: {point.percentage:.1f} %',
30
            style: {
31
               color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
32
            }
33
         }
34
      }
35
   };
36
   var series= [{
37
      type: 'pie',
38
      name: 'Browser share',
39
      data: [
40
         ['Firefox',   45.0],
41
         ['IE',       26.8],
42
         {
43
            name: 'Chrome',
44
            y: 12.8,
45
            sliced: true,
46
            selected: true
47
         },
48
         ['Safari',    8.5],