Subversion-Projekte lars-tiefland.cienc

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
9 lars 1
<!DOCTYPE HTML>
2
<html>
3
	<head>
4
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
		<title>Highcharts Example</title>
6
 
7
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
8
		<style type="text/css">
9
${demo.css}
10
		</style>
11
		<script type="text/javascript">
12
$(function () {
13
    $('#container').highcharts({
14
        chart: {
15
            plotBackgroundColor: null,
16
            plotBorderWidth: 0,
17
            plotShadow: false
18
        },
19
        title: {
20
            text: 'Browser<br>shares<br>2015',
21
            align: 'center',
22
            verticalAlign: 'middle',
23
            y: 40
24
        },
25
        tooltip: {
26
            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
27
        },
28
        plotOptions: {
29
            pie: {
30
                dataLabels: {
31
                    enabled: true,
32
                    distance: -50,
33
                    style: {
34
                        fontWeight: 'bold',
35
                        color: 'white',
36
                        textShadow: '0px 1px 2px black'
37
                    }
38
                },
39
                startAngle: -90,
40
                endAngle: 90,
41
                center: ['50%', '75%']
42
            }
43
        },
44
        series: [{
45
            type: 'pie',
46
            name: 'Browser share',
47
            innerSize: '50%',
48
            data: [
49
                ['Firefox',   10.38],
50
                ['IE',       56.33],
51
                ['Chrome', 24.03],
52
                ['Safari',    4.77],
53
                ['Opera',     0.91],
54
                {
55
                    name: 'Proprietary or Undetectable',
56
                    y: 0.2,
57
                    dataLabels: {
58
                        enabled: false
59
                    }
60
                }
61
            ]
62
        }]
63
    });
64
});
65
 
66
 
67
		</script>
68
	</head>
69
	<body>
70
<script src="../../js/highcharts.js"></script>
71
<script src="../../js/modules/exporting.js"></script>
72
 
73
<div id="container" style="min-width: 310px; height: 400px; max-width: 600px; margin: 0 auto"></div>
74
 
75
	</body>
76
</html>