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>Highstock 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
    $.getJSON('http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-ohlc.json&callback=?', function (data) {
14
 
15
        // create the chart
16
        $('#container').highcharts('StockChart', {
17
 
18
 
19
            rangeSelector : {
20
                selected : 2
21
            },
22
 
23
            title : {
24
                text : 'AAPL Stock Price'
25
            },
26
 
27
            series : [{
28
                type : 'ohlc',
29
                name : 'AAPL Stock Price',
30
                data : data,
31
                dataGrouping : {
32
                    units : [[
33
                        'week', // unit name
34
                        [1] // allowed multiples
35
                    ], [
36
                        'month',
37
                        [1, 2, 3, 4, 6]
38
                    ]]
39
                }
40
            }]
41
        });
42
    });
43
});
44
 
45
		</script>
46
	</head>
47
	<body>
48
<script src="../../js/highstock.js"></script>
49
<script src="../../js/modules/exporting.js"></script>
50
 
51
 
52
<div id="container" style="height: 400px; min-width: 310px"></div>
53
	</body>
54
</html>