Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
875 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
 
14
    $(document).ready(function () {
15
 
16
        // Build the chart
17
        $('#container').highcharts({
18
            chart: {
19
                plotBackgroundColor: null,
20
                plotBorderWidth: null,
21
                plotShadow: false,
22
                type: 'pie'
23
            },
24
            title: {
25
                text: 'Browser market shares January, 2015 to May, 2015'
26
            },
27
            tooltip: {
28
                pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
29
            },
30
            plotOptions: {
31
                pie: {
32
                    allowPointSelect: true,
33
                    cursor: 'pointer',
34
                    dataLabels: {
35
                        enabled: false
36
                    },
37
                    showInLegend: true
38
                }
39
            },
40
            series: [{
41
                name: "Brands",
42
                colorByPoint: true,
43
                data: [{
44
                    name: "Microsoft Internet Explorer",
45
                    y: 56.33
46
                }, {
47
                    name: "Chrome",
48
                    y: 24.03,
49
                    sliced: true,
50
                    selected: true
51
                }, {
52
                    name: "Firefox",
53
                    y: 10.38
54
                }, {
55
                    name: "Safari",
56
                    y: 4.77
57
                }, {
58
                    name: "Opera",
59
                    y: 0.91
60
                }, {
61
                    name: "Proprietary or Undetectable",
62
                    y: 0.2
63
                }]
64
            }]
65
        });
66
    });
67
});
68
		</script>
69
	</head>
70
	<body>
71
<script src="../../js/highcharts.js"></script>
72
<script src="../../js/modules/exporting.js"></script>
73
 
74
<div id="container" style="min-width: 310px; height: 400px; max-width: 600px; margin: 0 auto"></div>
75
 
76
	</body>
77
</html>