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
            type: 'column'
16
        },
17
        title: {
18
            text: 'Stacked column 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
        tooltip: {
30
            pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b> ({point.percentage:.0f}%)<br/>',
31
            shared: true
32
        },
33
        plotOptions: {
34
            column: {
35
                stacking: 'percent'
36
            }
37
        },
38
        series: [{
39
            name: 'John',
40
            data: [5, 3, 4, 7, 2]
41
        }, {
42
            name: 'Jane',
43
            data: [2, 2, 3, 2, 1]
44
        }, {
45
            name: 'Joe',
46
            data: [3, 4, 4, 2, 5]
47
        }]
48
    });
49
});
50
		</script>
51
	</head>
52
	<body>
53
<script src="../../js/highcharts.js"></script>
54
<script src="../../js/modules/exporting.js"></script>
55
 
56
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
57
 
58
	</body>
59
</html>