* luci/app/livestats: fix load diagram, improvements for diagram layout, fix menu...
[project/luci.git] / applications / luci-livestats / luasrc / view / livestats / wireless.htm
1 <%+header%>
2
3 <!--[if IE]><script type="text/javascript" src="<%=resource%>/livestats/ExCanvas.js"></script><![endif]-->
4 <script type="text/javascript" src="<%=resource%>/livestats/MochiKit.js"></script>
5 <script type="text/javascript" src="<%=resource%>/livestats/JsonRpc.js"></script>
6 <script type="text/javascript" src="<%=resource%>/livestats/PlotKit.js"></script>
7 <script type="text/javascript" src="<%=resource%>/livestats/GraphRPC.js"></script>
8
9 <script type="text/javascript">
10         function initGraphs() {
11                 var rpc = new GraphRPC(
12                         document.getElementById('live_graphs'),
13                         '<%=luci.dispatcher.build_url('rpc', 'sys')%>', 'wifi.getiwconfig',
14                         1500,
15
16                         // Data sources
17                         [ "Noise level", null, "Signal level", null ],
18
19                         // Graph layout options
20                         { drawBackground: false, yAxis: [ 0, 150 ],
21                           title: 'Wifi Interface "%s": Signal and Noise',
22                           padding: { left: 40, right: 10, top: 10, bottom: 20 } }
23                 );
24         }
25
26         MochiKit.DOM.addLoadEvent(initGraphs);
27 </script>
28
29 <div id="live_graphs"></div>
30
31 <%+footer%>