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=usdeur.json&callback=?', function (data) {
14
 
15
        // Create the chart
16
        $('#container').highcharts('StockChart', {
17
 
18
 
19
            rangeSelector : {
20
                selected : 0
21
            },
22
 
23
            title : {
24
                text : 'USD to EUR exchange rate'
25
            },
26
 
27
            tooltip: {
28
                style: {
29
                    width: '200px'
30
                },
31
                valueDecimals: 4,
32
                shared : true
33
            },
34
 
35
            yAxis : {
36
                title : {
37
                    text : 'Exchange rate'
38
                }
39
            },
40
 
41
            series : [{
42
                name : 'USD to EUR',
43
                data : data,
44
                id : 'dataseries'
45
 
46
            // the event marker flags
47
            }, {
48
                type : 'flags',
49
                data : [{
50
                    x : Date.UTC(2015, 5, 8),
51
                    title : 'C',
52
                    text : 'Stocks fall on Greece, rate concerns; US dollar dips'
53
                }, {
54
                    x : Date.UTC(2015, 5, 12),
55
                    title : 'D',
56
                    text : 'Zimbabwe ditches \'worthless\' currency for the US dollar '
57
                }, {
58
                    x : Date.UTC(2015, 5, 19),
59
                    title : 'E',
60
                    text : 'US Dollar Declines Over the Week on Rate Timeline'
61
                }, {
62
                    x : Date.UTC(2015, 5, 26),
63
                    title : 'F',
64
                    text : 'Greek Negotiations Take Sharp Turn for Worse, US Dollar set to Rally '
65
                }, {
66
                    x : Date.UTC(2015, 5, 29),
67
                    title : 'G',
68
                    text : 'Euro records stunning reversal against dollar'
69
                }, {
70
                    x : Date.UTC(2015, 5, 30),
71
                    title : 'H',
72
                    text : 'Surging US dollar curbs global IT spend'
73
                }],
74
                onSeries : 'dataseries',
75
                shape : 'circlepin',
76
                width : 16
77
            }]
78
        });
79
    });
80
});
81
 
82
		</script>
83
	</head>
84
	<body>
85
<script src="../../js/highstock.js"></script>
86
<script src="../../js/modules/exporting.js"></script>
87
 
88
 
89
<div id="container" style="height: 400px; min-width: 310px"></div>
90
	</body>
91
</html>