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-v.json&callback=?', function (data) {
14
 
15
        // create the chart
16
        $('#container').highcharts('StockChart', {
17
            chart: {
18
                alignTicks: false
19
            },
20
 
21
            rangeSelector: {
22
                selected: 1
23
            },
24
 
25
            title: {
26
                text: 'AAPL Stock Volume'
27
            },
28
 
29
            series: [{
30
                type: 'column',
31
                name: 'AAPL Stock Volume',
32
                data: data,
33
                dataGrouping: {
34
                    units: [[
35
                        'week', // unit name
36
                        [1] // allowed multiples
37
                    ], [
38
                        'month',
39
                        [1, 2, 3, 4, 6]
40
                    ]]
41
                }
42
            }]
43
        });
44
    });
45
});
46
		</script>
47
	</head>
48
	<body>
49
<script src="../../js/highstock.js"></script>
50
<script src="../../js/modules/exporting.js"></script>
51
 
52
 
53
<div id="container" style="height: 400px"></div>
54
	</body>
55
</html>