root / hci / trunk / eneraptor-web-app / grails-app / views / statistics / showCombGraph.gsp @ 66
History | View | Annotate | Download (713 Bytes)
1 |
<html> |
---|---|
2 |
|
3 |
<head> |
4 |
<title>Statistics » Graph view</title> |
5 |
<meta name="layout" content="main" /> |
6 |
<flot:resources /> |
7 |
</head> |
8 |
|
9 |
<body> |
10 |
|
11 |
<erptr:box title="Graph"> |
12 |
<g:javascript> |
13 |
var data = ${data}; |
14 |
var options = { |
15 |
lines: { show: true }, |
16 |
points: { show: true }, |
17 |
xaxis: { mode: "time", timeformat: "%y/%m/%d %H:%M" }, |
18 |
legend: { |
19 |
container: $('legendContainer') |
20 |
} |
21 |
}; |
22 |
</g:javascript> |
23 |
<div class="chart"> |
24 |
<flot:plot id="placeholder" style="width: 900px; height: 300px; padding:5px;" data="data" options="options" /> |
25 |
</div> |
26 |
<br /> |
27 |
<p>Legend:</p> |
28 |
<div id="legendContainer" name="legendContainer"></div> |
29 |
</erptr:box> |
30 |
|
31 |
</body> |
32 |
|
33 |
</html> |