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
            subtitle: {
24
                text: 'Using ordinal X axis'
25
            },
26
 
27
            xAxis: {
28
                gapGridLineWidth: 0
29
            },
30
 
31
            rangeSelector : {
32
                buttons : [{
33
                    type : 'hour',
34
                    count : 1,
35
                    text : '1h'
36
                }, {
37
                    type : 'day',
38
                    count : 1,
39
                    text : '1D'
40
                }, {
41
                    type : 'all',
42
                    count : 1,
43
                    text : 'All'
44
                }],
45
                selected : 1,
46
                inputEnabled : false
47
            },
48
 
49
            series : [{
50
                name : 'AAPL',
51
                type: 'area',
52
                data : data,
53
                gapSize: 5,
54
                tooltip: {
55
                    valueDecimals: 2
56
                },
57
                fillColor : {
58
                    linearGradient : {
59
                        x1: 0,
60
                        y1: 0,
61
                        x2: 0,
62
                        y2: 1
63
                    },
64
                    stops : [
65
                        [0, Highcharts.getOptions().colors[0]],
66
                        [1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0).get('rgba')]
67
                    ]
68
                },
69
                threshold: null
70
            }]
71
        });
72
    });
73
});
74
 
75
		</script>
76
	</head>
77
	<body>
78
<div id="container" style="height: 400px; min-width: 310px"></div>
79
 
80
<script src="../../js/highstock.js"></script>
81
<script src="../../js/modules/exporting.js"></script>
82
	</body>
83
</html>