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=aapl-c.json&callback=?', function (data) {
14
 
15
        // Create the chart
16
        $('#container').highcharts('StockChart', {
17
 
18
            rangeSelector: {
19
                selected: 1
20
            },
21
 
22
            title: {
23
                text: 'AAPL Stock Price'
24
            },
25
 
26
            scrollbar: {
27
                barBackgroundColor: 'gray',
28
                barBorderRadius: 7,
29
                barBorderWidth: 0,
30
                buttonBackgroundColor: 'gray',
31
                buttonBorderWidth: 0,
32
                buttonBorderRadius: 7,
33
                trackBackgroundColor: 'none',
34
                trackBorderWidth: 1,
35
                trackBorderRadius: 8,
36
                trackBorderColor: '#CCC'
37
            },
38
 
39
            series: [{
40
                name: 'AAPL Stock Price',
41
                data: data,
42
                tooltip: {
43
                    valueDecimals: 2
44
                }
45
            }]
46
        });
47
    });
48
});
49
		</script>
50
	</head>
51
	<body>
52
<script src="../../js/highstock.js"></script>
53
<script src="../../js/modules/exporting.js"></script>
54
 
55
 
56
<div id="container" style="height: 400px; min-width: 310px"></div>
57
	</body>
58
</html>