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>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
    $('#container').highcharts({
14
        data: {
15
            table: 'datatable'
16
        },
17
        chart: {
18
            type: 'column'
19
        },
20
        title: {
21
            text: 'Data extracted from a HTML table in the page'
22
        },
23
        yAxis: {
24
            allowDecimals: false,
25
            title: {
26
                text: 'Units'
27
            }
28
        },
29
        tooltip: {
30
            formatter: function () {
31
                return '<b>' + this.series.name + '</b><br/>' +
32
                    this.point.y + ' ' + this.point.name.toLowerCase();
33
            }
34
        }
35
    });
36
});
37
		</script>
38
	</head>
39
	<body>
40
<script src="../../js/highcharts.js"></script>
41
<script src="../../js/modules/data.js"></script>
42
<script src="../../js/modules/exporting.js"></script>
43
 
44
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
45
 
46
<table id="datatable">
47
	<thead>
48
		<tr>
49
			<th></th>
50
			<th>Jane</th>
51
			<th>John</th>
52
		</tr>
53
	</thead>
54
	<tbody>
55
		<tr>
56
			<th>Apples</th>
57
			<td>3</td>
58
			<td>4</td>
59
		</tr>
60
		<tr>
61
			<th>Pears</th>
62
			<td>2</td>
63
			<td>0</td>
64
		</tr>
65
		<tr>
66
			<th>Plums</th>
67
			<td>5</td>
68
			<td>11</td>
69
		</tr>
70
		<tr>
71
			<th>Bananas</th>
72
			<td>1</td>
73
			<td>1</td>
74
		</tr>
75
		<tr>
76
			<th>Oranges</th>
77
			<td>2</td>
78
			<td>4</td>
79
		</tr>
80
	</tbody>
81
</table>
82
	</body>
83
</html>