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
    $('#container').highcharts({
14
        chart: {
15
            type: 'bar'
16
        },
17
        title: {
18
            text: 'Stacked bar chart'
19
        },
20
        xAxis: {
21
            categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
22
        },
23
        yAxis: {
24
            min: 0,
25
            title: {
26
                text: 'Total fruit consumption'
27
            }
28
        },
29
        legend: {
30
            reversed: true
31
        },
32
        plotOptions: {
33
            series: {
34
                stacking: 'normal'
35
            }
36
        },
37
        series: [{
38
            name: 'John',
39
            data: [5, 3, 4, 7, 2]
40
        }, {
41
            name: 'Jane',
42
            data: [2, 2, 3, 2, 1]
43
        }, {
44
            name: 'Joe',
45
            data: [3, 4, 4, 2, 5]
46
        }]
47
    });
48
});
49
		</script>
50
	</head>
51
	<body>
52
<script src="../../js/highcharts.js"></script>
53
<script src="../../js/modules/exporting.js"></script>
54
 
55
<div id="container" style="min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto"></div>
56
 
57
	</body>
58
</html>