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