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: 'bar'
16
        },
17
        title: {
18
            text: 'Historic World Population by Region'
19
        },
20
        subtitle: {
21
            text: 'Source: <a href="https://en.wikipedia.org/wiki/World_population">Wikipedia.org</a>'
22
        },
23
        xAxis: {
24
            categories: ['Africa', 'America', 'Asia', 'Europe', 'Oceania'],
25
            title: {
26
                text: null
27
            }
28
        },
29
        yAxis: {
30
            min: 0,
31
            title: {
32
                text: 'Population (millions)',
33
                align: 'high'
34
            },
35
            labels: {
36
                overflow: 'justify'
37
            }
38
        },
39
        tooltip: {
40
            valueSuffix: ' millions'
41
        },
42
        plotOptions: {
43
            bar: {
44
                dataLabels: {
45
                    enabled: true
46
                }
47
            }
48
        },
49
        legend: {
50
            layout: 'vertical',
51
            align: 'right',
52
            verticalAlign: 'top',
53
            x: -40,
54
            y: 80,
55
            floating: true,
56
            borderWidth: 1,
57
            backgroundColor: ((Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'),
58
            shadow: true
59
        },
60
        credits: {
61
            enabled: false
62
        },
63
        series: [{
64
            name: 'Year 1800',
65
            data: [107, 31, 635, 203, 2]
66
        }, {
67
            name: 'Year 1900',
68
            data: [133, 156, 947, 408, 6]
69
        }, {
70
            name: 'Year 2012',
71
            data: [1052, 954, 4250, 740, 38]
72
        }]
73
    });
74
});
75
		</script>
76
	</head>
77
	<body>
78
<script src="../../js/highcharts.js"></script>
79
<script src="../../js/modules/exporting.js"></script>
80
 
81
<div id="container" style="min-width: 310px; max-width: 800px; height: 400px; margin: 0 auto"></div>
82
 
83
	</body>
84
</html>