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
#container {
10
	height: 400px;
11
	min-width: 310px;
12
	max-width: 800px;
13
	margin: 0 auto;
14
}
15
		</style>
16
		<script type="text/javascript">
17
$(function () {
18
    $('#container').highcharts({
19
 
20
        chart: {
21
            type: 'column',
22
            options3d: {
23
                enabled: true,
24
                alpha: 15,
25
                beta: 15,
26
                viewDistance: 25,
27
                depth: 40
28
            },
29
            marginTop: 80,
30
            marginRight: 40
31
        },
32
 
33
        title: {
34
            text: 'Total fruit consumption, grouped by gender'
35
        },
36
 
37
        xAxis: {
38
            categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
39
        },
40
 
41
        yAxis: {
42
            allowDecimals: false,
43
            min: 0,
44
            title: {
45
                text: 'Number of fruits'
46
            }
47
        },
48
 
49
        tooltip: {
50
            headerFormat: '<b>{point.key}</b><br>',
51
            pointFormat: '<span style="color:{series.color}">\u25CF</span> {series.name}: {point.y} / {point.stackTotal}'
52
        },
53
 
54
        plotOptions: {
55
            column: {
56
                stacking: 'normal',
57
                depth: 40
58
            }
59
        },
60
 
61
        series: [{
62
            name: 'John',
63
            data: [5, 3, 4, 7, 2],
64
            stack: 'male'
65
        }, {
66
            name: 'Joe',
67
            data: [3, 4, 4, 2, 5],
68
            stack: 'male'
69
        }, {
70
            name: 'Jane',
71
            data: [2, 5, 6, 2, 1],
72
            stack: 'female'
73
        }, {
74
            name: 'Janet',
75
            data: [3, 0, 4, 4, 3],
76
            stack: 'female'
77
        }]
78
    });
79
});
80
 
81
 
82
		</script>
83
	</head>
84
	<body>
85
 
86
<script src="../../js/highcharts.js"></script>
87
<script src="../../js/highcharts-3d.js"></script>
88
<script src="../../js/modules/exporting.js"></script>
89
 
90
<div id="container" style="height: 400px"></div>
91
	</body>
92
</html>