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
 
14
    $('#container').highcharts({
15
 
16
        chart: {
17
            polar: true,
18
            type: 'line'
19
        },
20
 
21
        title: {
22
            text: 'Budget vs spending',
23
            x: -80
24
        },
25
 
26
        pane: {
27
            size: '80%'
28
        },
29
 
30
        xAxis: {
31
            categories: ['Sales', 'Marketing', 'Development', 'Customer Support',
32
                    'Information Technology', 'Administration'],
33
            tickmarkPlacement: 'on',
34
            lineWidth: 0
35
        },
36
 
37
        yAxis: {
38
            gridLineInterpolation: 'polygon',
39
            lineWidth: 0,
40
            min: 0
41
        },
42
 
43
        tooltip: {
44
            shared: true,
45
            pointFormat: '<span style="color:{series.color}">{series.name}: <b>${point.y:,.0f}</b><br/>'
46
        },
47
 
48
        legend: {
49
            align: 'right',
50
            verticalAlign: 'top',
51
            y: 70,
52
            layout: 'vertical'
53
        },
54
 
55
        series: [{
56
            name: 'Allocated Budget',
57
            data: [43000, 19000, 60000, 35000, 17000, 10000],
58
            pointPlacement: 'on'
59
        }, {
60
            name: 'Actual Spending',
61
            data: [50000, 39000, 42000, 31000, 26000, 14000],
62
            pointPlacement: 'on'
63
        }]
64
 
65
    });
66
});
67
		</script>
68
	</head>
69
	<body>
70
<script src="../../js/highcharts.js"></script>
71
<script src="../../js/highcharts-more.js"></script>
72
<script src="../../js/modules/exporting.js"></script>
73
 
74
<div id="container" style="min-width: 400px; max-width: 600px; height: 400px; margin: 0 auto"></div>
75
 
76
	</body>
77
</html>