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: 'column'
16
        },
17
        title: {
18
            text: 'Monthly Average Rainfall'
19
        },
20
        subtitle: {
21
            text: 'Source: WorldClimate.com'
22
        },
23
        xAxis: {
24
            categories: [
25
                'Jan',
26
                'Feb',
27
                'Mar',
28
                'Apr',
29
                'May',
30
                'Jun',
31
                'Jul',
32
                'Aug',
33
                'Sep',
34
                'Oct',
35
                'Nov',
36
                'Dec'
37
            ],
38
            crosshair: true
39
        },
40
        yAxis: {
41
            min: 0,
42
            title: {
43
                text: 'Rainfall (mm)'
44
            }
45
        },
46
        tooltip: {
47
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
48
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
49
                '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
50
            footerFormat: '</table>',
51
            shared: true,
52
            useHTML: true
53
        },
54
        plotOptions: {
55
            column: {
56
                pointPadding: 0.2,
57
                borderWidth: 0
58
            }
59
        },
60
        series: [{
61
            name: 'Tokyo',
62
            data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
63
 
64
        }, {
65
            name: 'New York',
66
            data: [83.6, 78.8, 98.5, 93.4, 106.0, 84.5, 105.0, 104.3, 91.2, 83.5, 106.6, 92.3]
67
 
68
        }, {
69
            name: 'London',
70
            data: [48.9, 38.8, 39.3, 41.4, 47.0, 48.3, 59.0, 59.6, 52.4, 65.2, 59.3, 51.2]
71
 
72
        }, {
73
            name: 'Berlin',
74
            data: [42.4, 33.2, 34.5, 39.7, 52.6, 75.5, 57.4, 60.4, 47.6, 39.1, 46.8, 51.1]
75
 
76
        }]
77
    });
78
});
79
		</script>
80
	</head>
81
	<body>
82
<script src="../../js/highcharts.js"></script>
83
<script src="../../js/modules/exporting.js"></script>
84
 
85
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
86
 
87
	</body>
88
</html>