root / hci / trunk / eneraptor-web-app / grails-app / views / statistics / showCombGraph.gsp @ 67
History | View | Annotate | Download (692 Bytes)
1 | 63 | alexbesir | <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 | 66 | alexbesir | xaxis: { mode: "time", timeformat: "%y/%m/%d %H:%M" }, |
18 | 67 | alexbesir | legend: { container: '#legendHolder' } |
19 | 63 | alexbesir | }; |
20 | </g:javascript> |
||
21 | <div class="chart"> |
||
22 | <flot:plot id="placeholder" style="width: 900px; height: 300px; padding:5px;" data="data" options="options" /> |
||
23 | </div> |
||
24 | 66 | alexbesir | <br /> |
25 | <p>Legend:</p> |
||
26 | 67 | alexbesir | <div id="legendHolder" name="legendHolder"></div> |
27 | |||
28 | 63 | alexbesir | </erptr:box> |
29 | |||
30 | </body> |
||
31 | |||
32 | </html> |