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: 'areaspline'
16
        },
17
        title: {
18
            text: 'Average fruit consumption during one week'
19
        },
20
        legend: {
21
            layout: 'vertical',
22
            align: 'left',
23
            verticalAlign: 'top',
24
            x: 150,
25
            y: 100,
26
            floating: true,
27
            borderWidth: 1,
28
            backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
29
        },
30
        xAxis: {
31
            categories: [
32
                'Monday',
33
                'Tuesday',
34
                'Wednesday',
35
                'Thursday',
36
                'Friday',
37
                'Saturday',
38
                'Sunday'
39
            ],
40
            plotBands: [{ // visualize the weekend
41
                from: 4.5,
42
                to: 6.5,
43
                color: 'rgba(68, 170, 213, .2)'
44
            }]
45
        },
46
        yAxis: {
47
            title: {
48
                text: 'Fruit units'
49
            }
50
        },
51
        tooltip: {
52
            shared: true,
53
            valueSuffix: ' units'
54
        },
55
        credits: {
56
            enabled: false
57
        },
58
        plotOptions: {
59
            areaspline: {
60
                fillOpacity: 0.5
61
            }
62
        },
63
        series: [{
64
            name: 'John',
65
            data: [3, 4, 3, 5, 4, 10, 12]
66
        }, {
67
            name: 'Jane',
68
            data: [1, 3, 4, 3, 3, 5, 4]
69
        }]
70
    });
71
});
72
		</script>
73
	</head>
74
	<body>
75
<script src="../../js/highcharts.js"></script>
76
<script src="../../js/modules/exporting.js"></script>
77
 
78
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
79
 
80
	</body>
81
</html>