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 Distribution 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: 'Percent'
33
            }
34
        },
35
        tooltip: {
36
            pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.percentage:.1f}%</b> ({point.y:,.0f} millions)<br/>',
37
            shared: true
38
        },
39
        plotOptions: {
40
            area: {
41
                stacking: 'percent',
42
                lineColor: '#ffffff',
43
                lineWidth: 1,
44
                marker: {
45
                    lineWidth: 1,
46
                    lineColor: '#ffffff'
47
                }
48
            }
49
        },
50
        series: [{
51
            name: 'Asia',
52
            data: [502, 635, 809, 947, 1402, 3634, 5268]
53
        }, {
54
            name: 'Africa',
55
            data: [106, 107, 111, 133, 221, 767, 1766]
56
        }, {
57
            name: 'Europe',
58
            data: [163, 203, 276, 408, 547, 729, 628]
59
        }, {
60
            name: 'America',
61
            data: [18, 31, 54, 156, 339, 818, 1201]
62
        }, {
63
            name: 'Oceania',
64
            data: [2, 2, 2, 6, 13, 30, 46]
65
        }]
66
    });
67
});
68
		</script>
69
	</head>
70
	<body>
71
<script src="../../js/highcharts.js"></script>
72
<script src="../../js/modules/exporting.js"></script>
73
 
74
<div id="container" style="min-width: 310px; height: 400px; max-width: 800px; margin: 0 auto"></div>
75
 
76
	</body>
77
</html>