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-c.json&callback=?', function (data) {
14
 
15
        // Create the chart
16
        $('#container').highcharts('StockChart', {
17
            chart: {
18
                type: 'area'
19
            },
20
 
21
            rangeSelector: {
22
                selected: 1
23
            },
24
 
25
            title: {
26
                text: 'AAPL Stock Price'
27
            },
28
 
29
            yAxis: {
30
                reversed: true,
31
                showFirstLabel: false,
32
                showLastLabel: true
33
            },
34
 
35
            series: [{
36
                name: 'AAPL Stock Price',
37
                data: data,
38
                threshold: null,
39
                fillColor : {
40
                    linearGradient : {
41
                        x1: 0,
42
                        y1: 1,
43
                        x2: 0,
44
                        y2: 0
45
                    },
46
                    stops : [
47
                        [0, Highcharts.getOptions().colors[0]],
48
                        [1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0).get('rgba')]
49
                    ]
50
                },
51
                tooltip: {
52
                    valueDecimals: 2
53
                }
54
            }]
55
        });
56
    });
57
});
58
		</script>
59
	</head>
60
	<body>
61
<script src="../../js/highstock.js"></script>
62
<script src="../../js/modules/exporting.js"></script>
63
 
64
 
65
<div id="container" style="height: 400px; min-width: 310px"></div>
66
	</body>
67
</html>