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: 'area'
16
        },
17
        title: {
18
            text: 'Historic and Estimated Worldwide Population Growth by Region'
19
        },
20
        subtitle: {
21
            text: 'Source: Wikipedia.org'
22
        },
23
        xAxis: {
24
            categories: ['1750', '1800', '1850', '1900', '1950', '1999', '2050'],
25
            tickmarkPlacement: 'on',
26
            title: {
27
                enabled: false
28
            }
29
        },
30
        yAxis: {
31
            title: {
32
                text: 'Billions'
33
            },
34
            labels: {
35
                formatter: function () {
36
                    return this.value / 1000;
37
                }
38
            }
39
        },
40
        tooltip: {
41
            shared: true,
42
            valueSuffix: ' millions'
43
        },
44
        plotOptions: {
45
            area: {
46
                stacking: 'normal',
47
                lineColor: '#666666',
48
                lineWidth: 1,
49
                marker: {
50
                    lineWidth: 1,
51
                    lineColor: '#666666'
52
                }
53
            }
54
        },
55
        series: [{
56
            name: 'Asia',
57
            data: [502, 635, 809, 947, 1402, 3634, 5268]
58
        }, {
59
            name: 'Africa',
60
            data: [106, 107, 111, 133, 221, 767, 1766]
61
        }, {
62
            name: 'Europe',
63
            data: [163, 203, 276, 408, 547, 729, 628]
64
        }, {
65
            name: 'America',
66
            data: [18, 31, 54, 156, 339, 818, 1201]
67
        }, {
68
            name: 'Oceania',
69
            data: [2, 2, 2, 6, 13, 30, 46]
70
        }]
71
    });
72
});
73
		</script>
74
	</head>
75
	<body>
76
<script src="../../js/highcharts.js"></script>
77
<script src="../../js/modules/exporting.js"></script>
78
 
79
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
80
 
81
	</body>
82
</html>