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: 'column'
16
        },
17
        title: {
18
            text: 'World\'s largest cities per 2014'
19
        },
20
        subtitle: {
21
            text: 'Source: <a href="http://en.wikipedia.org/wiki/List_of_cities_proper_by_population">Wikipedia</a>'
22
        },
23
        xAxis: {
24
            type: 'category',
25
            labels: {
26
                rotation: -45,
27
                style: {
28
                    fontSize: '13px',
29
                    fontFamily: 'Verdana, sans-serif'
30
                }
31
            }
32
        },
33
        yAxis: {
34
            min: 0,
35
            title: {
36
                text: 'Population (millions)'
37
            }
38
        },
39
        legend: {
40
            enabled: false
41
        },
42
        tooltip: {
43
            pointFormat: 'Population in 2008: <b>{point.y:.1f} millions</b>'
44
        },
45
        series: [{
46
            name: 'Population',
47
            data: [
48
                ['Shanghai', 23.7],
49
                ['Lagos', 16.1],
50
                ['Instanbul', 14.2],
51
                ['Karachi', 14.0],
52
                ['Mumbai', 12.5],
53
                ['Moscow', 12.1],
54
                ['São Paulo', 11.8],
55
                ['Beijing', 11.7],
56
                ['Guangzhou', 11.1],
57
                ['Delhi', 11.1],
58
                ['Shenzhen', 10.5],
59
                ['Seoul', 10.4],
60
                ['Jakarta', 10.0],
61
                ['Kinshasa', 9.3],
62
                ['Tianjin', 9.3],
63
                ['Tokyo', 9.0],
64
                ['Cairo', 8.9],
65
                ['Dhaka', 8.9],
66
                ['Mexico City', 8.9],
67
                ['Lima', 8.9]
68
            ],
69
            dataLabels: {
70
                enabled: true,
71
                rotation: -90,
72
                color: '#FFFFFF',
73
                align: 'right',
74
                format: '{point.y:.1f}', // one decimal
75
                y: 10, // 10 pixels down from the top
76
                style: {
77
                    fontSize: '13px',
78
                    fontFamily: 'Verdana, sans-serif'
79
                }
80
            }
81
        }]
82
    });
83
});
84
		</script>
85
	</head>
86
	<body>
87
<script src="../../js/highcharts.js"></script>
88
<script src="../../js/modules/exporting.js"></script>
89
 
90
<div id="container" style="min-width: 300px; height: 400px; margin: 0 auto"></div>
91
 
92
	</body>
93
</html>