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: 'column'
16
        },
17
        title: {
18
            text: 'Efficiency Optimization by Branch'
19
        },
20
        xAxis: {
21
            categories: [
22
                'Seattle HQ',
23
                'San Francisco',
24
                'Tokyo'
25
            ]
26
        },
27
        yAxis: [{
28
            min: 0,
29
            title: {
30
                text: 'Employees'
31
            }
32
        }, {
33
            title: {
34
                text: 'Profit (millions)'
35
            },
36
            opposite: true
37
        }],
38
        legend: {
39
            shadow: false
40
        },
41
        tooltip: {
42
            shared: true
43
        },
44
        plotOptions: {
45
            column: {
46
                grouping: false,
47
                shadow: false,
48
                borderWidth: 0
49
            }
50
        },
51
        series: [{
52
            name: 'Employees',
53
            color: 'rgba(165,170,217,1)',
54
            data: [150, 73, 20],
55
            pointPadding: 0.3,
56
            pointPlacement: -0.2
57
        }, {
58
            name: 'Employees Optimized',
59
            color: 'rgba(126,86,134,.9)',
60
            data: [140, 90, 40],
61
            pointPadding: 0.4,
62
            pointPlacement: -0.2
63
        }, {
64
            name: 'Profit',
65
            color: 'rgba(248,161,63,1)',
66
            data: [183.6, 178.8, 198.5],
67
            tooltip: {
68
                valuePrefix: '$',
69
                valueSuffix: ' M'
70
            },
71
            pointPadding: 0.3,
72
            pointPlacement: 0.2,
73
            yAxis: 1
74
        }, {
75
            name: 'Profit Optimized',
76
            color: 'rgba(186,60,61,.9)',
77
            data: [203.6, 198.8, 208.5],
78
            tooltip: {
79
                valuePrefix: '$',
80
                valueSuffix: ' M'
81
            },
82
            pointPadding: 0.4,
83
            pointPlacement: 0.2,
84
            yAxis: 1
85
        }]
86
    });
87
});
88
		</script>
89
	</head>
90
	<body>
91
<script src="../../js/highcharts.js"></script>
92
<script src="../../js/modules/exporting.js"></script>
93
 
94
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
95
 
96
	</body>
97
</html>