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: 'area',
16
            spacingBottom: 30
17
        },
18
        title: {
19
            text: 'Fruit consumption *'
20
        },
21
        subtitle: {
22
            text: '* Jane\'s banana consumption is unknown',
23
            floating: true,
24
            align: 'right',
25
            verticalAlign: 'bottom',
26
            y: 15
27
        },
28
        legend: {
29
            layout: 'vertical',
30
            align: 'left',
31
            verticalAlign: 'top',
32
            x: 150,
33
            y: 100,
34
            floating: true,
35
            borderWidth: 1,
36
            backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
37
        },
38
        xAxis: {
39
            categories: ['Apples', 'Pears', 'Oranges', 'Bananas', 'Grapes', 'Plums', 'Strawberries', 'Raspberries']
40
        },
41
        yAxis: {
42
            title: {
43
                text: 'Y-Axis'
44
            },
45
            labels: {
46
                formatter: function () {
47
                    return this.value;
48
                }
49
            }
50
        },
51
        tooltip: {
52
            formatter: function () {
53
                return '<b>' + this.series.name + '</b><br/>' +
54
                    this.x + ': ' + this.y;
55
            }
56
        },
57
        plotOptions: {
58
            area: {
59
                fillOpacity: 0.5
60
            }
61
        },
62
        credits: {
63
            enabled: false
64
        },
65
        series: [{
66
            name: 'John',
67
            data: [0, 1, 4, 4, 5, 2, 3, 7]
68
        }, {
69
            name: 'Jane',
70
            data: [1, 0, 3, null, 3, 1, 2, 1]
71
        }]
72
    });
73
});
74
		</script>
75
	</head>
76
	<body>
77
<script src="../../js/highcharts.js"></script>
78
<script src="../../js/modules/exporting.js"></script>
79
 
80
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
81
 
82
	</body>
83
</html>