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
 
19
            rangeSelector : {
20
                selected : 1
21
            },
22
 
23
            title : {
24
                text : 'AAPL Stock Price'
25
            },
26
 
27
            series : [{
28
                name : 'AAPL Stock Price',
29
                data : data,
30
                type : 'area',
31
                threshold : null,
32
                tooltip : {
33
                    valueDecimals : 2
34
                },
35
                fillColor : {
36
                    linearGradient : {
37
                        x1: 0,
38
                        y1: 0,
39
                        x2: 0,
40
                        y2: 1
41
                    },
42
                    stops : [
43
                        [0, Highcharts.getOptions().colors[0]],
44
                        [1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0).get('rgba')]
45
                    ]
46
                }
47
            }]
48
        });
49
    });
50
});
51
 
52
		</script>
53
	</head>
54
	<body>
55
<script src="../../js/highstock.js"></script>
56
<script src="../../js/modules/exporting.js"></script>
57
 
58
 
59
<div id="container" style="height: 400px; min-width: 310px"></div>
60
	</body>
61
</html>