We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2360aa4 commit 251b5beCopy full SHA for 251b5be
1 file changed
examples/wsgi/templates/latency.html
@@ -15,7 +15,7 @@ <h2 id="transport">(connecting)</h2>
15
<script>
16
// socket
17
var socket = io.connect('http://' + document.domain + ':' + location.port);
18
- var char = $('chart').get(0);
+ var chart = $('#chart').get(0);
19
socket.on('connect', function() {
20
if (chart.getContext) {
21
render();
@@ -49,7 +49,7 @@ <h2 id="transport">(connecting)</h2>
49
function render() {
50
if (smoothie)
51
smoothie.stop();
52
- chart.width = document.body.clientWidth;
+ chart.css('width', $(document).width());
53
smoothie = new SmoothieChart();
54
smoothie.streamTo(chart, 1000);
55
time = new TimeSeries();
0 commit comments