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