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>Highcharts 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
        $('#container').highcharts({
16
            chart: {
17
                zoomType: 'x'
18
            },
19
            title: {
20
                text: 'USD to EUR exchange rate over time'
21
            },
22
            subtitle: {
23
                text: document.ontouchstart === undefined ?
24
                        'Click and drag in the plot area to zoom in' : 'Pinch the chart to zoom in'
25
            },
26
            xAxis: {
27
                type: 'datetime'
28
            },
29
            yAxis: {
30
                title: {
31
                    text: 'Exchange rate'
32
                }
33
            },
34
            legend: {
35
                enabled: false
36
            },
37
            plotOptions: {
38
                area: {
39
                    fillColor: {
40
                        linearGradient: {
41
                            x1: 0,
42
                            y1: 0,
43
                            x2: 0,
44
                            y2: 1
45
                        },
46
                        stops: [
47
                            [0, Highcharts.getOptions().colors[0]],
48
                            [1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0).get('rgba')]
49
                        ]
50
                    },
51
                    marker: {
52
                        radius: 2
53
                    },
54
                    lineWidth: 1,
55
                    states: {
56
                        hover: {
57
                            lineWidth: 1
58
                        }
59
                    },
60
                    threshold: null
61
                }
62
            },
63
 
64
            series: [{
65
                type: 'area',
66
                name: 'USD to EUR',
67
                data: data
68
            }]
69
        });
70
    });
71
});
72
		</script>
73
	</head>
74
	<body>
75
<script src="../../js/highcharts.js"></script>
76
<script src="../../js/modules/exporting.js"></script>
77
 
78
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
79
 
80
	</body>
81
</html>