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
    $('#container').highcharts({
14
        title: {
15
            text: 'Combination chart'
16
        },
17
        xAxis: {
18
            categories: ['Apples', 'Oranges', 'Pears', 'Bananas', 'Plums']
19
        },
20
        labels: {
21
            items: [{
22
                html: 'Total fruit consumption',
23
                style: {
24
                    left: '50px',
25
                    top: '18px',
26
                    color: (Highcharts.theme && Highcharts.theme.textColor) || 'black'
27
                }
28
            }]
29
        },
30
        series: [{
31
            type: 'column',
32
            name: 'Jane',
33
            data: [3, 2, 1, 3, 4]
34
        }, {
35
            type: 'column',
36
            name: 'John',
37
            data: [2, 3, 5, 7, 6]
38
        }, {
39
            type: 'column',
40
            name: 'Joe',
41
            data: [4, 3, 3, 9, 0]
42
        }, {
43
            type: 'spline',
44
            name: 'Average',
45
            data: [3, 2.67, 3, 6.33, 3.33],
46
            marker: {
47
                lineWidth: 2,
48
                lineColor: Highcharts.getOptions().colors[3],
49
                fillColor: 'white'
50
            }
51
        }, {
52
            type: 'pie',
53
            name: 'Total consumption',
54
            data: [{
55
                name: 'Jane',
56
                y: 13,
57
                color: Highcharts.getOptions().colors[0] // Jane's color
58
            }, {
59
                name: 'John',
60
                y: 23,
61
                color: Highcharts.getOptions().colors[1] // John's color
62
            }, {
63
                name: 'Joe',
64
                y: 19,
65
                color: Highcharts.getOptions().colors[2] // Joe's color
66
            }],
67
            center: [100, 80],
68
            size: 100,
69
            showInLegend: false,
70
            dataLabels: {
71
                enabled: false
72
            }
73
        }]
74
    });
75
});
76
 
77
 
78
		</script>
79
	</head>
80
	<body>
81
<script src="../../js/highcharts.js"></script>
82
<script src="../../js/modules/exporting.js"></script>
83
 
84
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
85
 
86
	</body>
87
</html>