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
 
15
        chart: {
16
            type: 'boxplot'
17
        },
18
 
19
        title: {
20
            text: 'Highcharts Box Plot Example'
21
        },
22
 
23
        legend: {
24
            enabled: false
25
        },
26
 
27
        xAxis: {
28
            categories: ['1', '2', '3', '4', '5'],
29
            title: {
30
                text: 'Experiment No.'
31
            }
32
        },
33
 
34
        yAxis: {
35
            title: {
36
                text: 'Observations'
37
            },
38
            plotLines: [{
39
                value: 932,
40
                color: 'red',
41
                width: 1,
42
                label: {
43
                    text: 'Theoretical mean: 932',
44
                    align: 'center',
45
                    style: {
46
                        color: 'gray'
47
                    }
48
                }
49
            }]
50
        },
51
 
52
        series: [{
53
            name: 'Observations',
54
            data: [
55
                [760, 801, 848, 895, 965],
56
                [733, 853, 939, 980, 1080],
57
                [714, 762, 817, 870, 918],
58
                [724, 802, 806, 871, 950],
59
                [834, 836, 864, 882, 910]
60
            ],
61
            tooltip: {
62
                headerFormat: '<em>Experiment No {point.key}</em><br/>'
63
            }
64
        }, {
65
            name: 'Outlier',
66
            color: Highcharts.getOptions().colors[0],
67
            type: 'scatter',
68
            data: [ // x, y positions where 0 is the first category
69
                [0, 644],
70
                [4, 718],
71
                [4, 951],
72
                [4, 969]
73
            ],
74
            marker: {
75
                fillColor: 'white',
76
                lineWidth: 1,
77
                lineColor: Highcharts.getOptions().colors[0]
78
            },
79
            tooltip: {
80
                pointFormat: 'Observation: {point.y}'
81
            }
82
        }]
83
 
84
    });
85
});
86
		</script>
87
	</head>
88
	<body>
89
<script src="../../js/highcharts.js"></script>
90
<script src="../../js/highcharts-more.js"></script>
91
<script src="../../js/modules/exporting.js"></script>
92
 
93
<div id="container" style="height: 400px; margin: auto; min-width: 310px; max-width: 600px"></div>
94
	</body>
95
</html>