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: 'spline',
16
            inverted: true
17
        },
18
        title: {
19
            text: 'Atmosphere Temperature by Altitude'
20
        },
21
        subtitle: {
22
            text: 'According to the Standard Atmosphere Model'
23
        },
24
        xAxis: {
25
            reversed: false,
26
            title: {
27
                enabled: true,
28
                text: 'Altitude'
29
            },
30
            labels: {
31
                formatter: function () {
32
                    return this.value + 'km';
33
                }
34
            },
35
            maxPadding: 0.05,
36
            showLastLabel: true
37
        },
38
        yAxis: {
39
            title: {
40
                text: 'Temperature'
41
            },
42
            labels: {
43
                formatter: function () {
44
                    return this.value + '°';
45
                }
46
            },
47
            lineWidth: 2
48
        },
49
        legend: {
50
            enabled: false
51
        },
52
        tooltip: {
53
            headerFormat: '<b>{series.name}</b><br/>',
54
            pointFormat: '{point.x} km: {point.y}°C'
55
        },
56
        plotOptions: {
57
            spline: {
58
                marker: {
59
                    enable: false
60
                }
61
            }
62
        },
63
        series: [{
64
            name: 'Temperature',
65
            data: [[0, 15], [10, -50], [20, -56.5], [30, -46.5], [40, -22.1],
66
                [50, -2.5], [60, -27.7], [70, -55.7], [80, -76.5]]
67
        }]
68
    });
69
});
70
		</script>
71
	</head>
72
	<body>
73
<script src="../../js/highcharts.js"></script>
74
<script src="../../js/modules/exporting.js"></script>
75
 
76
<div id="container" style="min-width: 310px; height: 400px; max-width: 600px; margin: 0 auto"></div>
77
 
78
	</body>
79
</html>