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>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=new-intraday.json&callback=?', function (data) {
14
 
15
        // create the chart
16
        $('#container').highcharts('StockChart', {
17
 
18
 
19
            title: {
20
                text: 'AAPL stock price by minute'
21
            },
22
 
23
            rangeSelector : {
24
                buttons : [{
25
                    type : 'hour',
26
                    count : 1,
27
                    text : '1h'
28
                }, {
29
                    type : 'day',
30
                    count : 1,
31
                    text : '1D'
32
                }, {
33
                    type : 'all',
34
                    count : 1,
35
                    text : 'All'
36
                }],
37
                selected : 1,
38
                inputEnabled : false
39
            },
40
 
41
            series : [{
42
                name : 'AAPL',
43
                type: 'candlestick',
44
                data : data,
45
                tooltip: {
46
                    valueDecimals: 2
47
                }
48
            }]
49
        });
50
    });
51
});
52
 
53
		</script>
54
	</head>
55
	<body>
56
<div id="container" style="height: 400px; min-width: 310px"></div>
57
 
58
<script src="../../js/highstock.js"></script>
59
<script src="../../js/modules/exporting.js"></script>
60
	</body>
61
</html>