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: 'spline'
16
        },
17
        title: {
18
            text: 'Monthly Average Temperature'
19
        },
20
        subtitle: {
21
            text: 'Source: WorldClimate.com'
22
        },
23
        xAxis: {
24
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
25
                'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
26
        },
27
        yAxis: {
28
            title: {
29
                text: 'Temperature'
30
            },
31
            labels: {
32
                formatter: function () {
33
                    return this.value + '°';
34
                }
35
            }
36
        },
37
        tooltip: {
38
            crosshairs: true,
39
            shared: true
40
        },
41
        plotOptions: {
42
            spline: {
43
                marker: {
44
                    radius: 4,
45
                    lineColor: '#666666',
46
                    lineWidth: 1
47
                }
48
            }
49
        },
50
        series: [{
51
            name: 'Tokyo',
52
            marker: {
53
                symbol: 'square'
54
            },
55
            data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, {
56
                y: 26.5,
57
                marker: {
58
                    symbol: 'url(http://www.highcharts.com/demo/gfx/sun.png)'
59
                }
60
            }, 23.3, 18.3, 13.9, 9.6]
61
 
62
        }, {
63
            name: 'London',
64
            marker: {
65
                symbol: 'diamond'
66
            },
67
            data: [{
68
                y: 3.9,
69
                marker: {
70
                    symbol: 'url(http://www.highcharts.com/demo/gfx/snow.png)'
71
                }
72
            }, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
73
        }]
74
    });
75
});
76
		</script>
77
	</head>
78
	<body>
79
<script src="../../js/highcharts.js"></script>
80
<script src="../../js/modules/exporting.js"></script>
81
 
82
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
83
 
84
	</body>
85
</html>