Skip to content

Commit fc5fbcf

Browse files
minor example code fix
1 parent 251b5be commit fc5fbcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/wsgi/templates/latency.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h2 id="transport">(connecting)</h2>
4949
function render() {
5050
if (smoothie)
5151
smoothie.stop();
52-
chart.css('width', $(document).width());
52+
chart.width = document.body.clientWidth;
5353
smoothie = new SmoothieChart();
5454
smoothie.streamTo(chart, 1000);
5555
time = new TimeSeries();

0 commit comments

Comments
 (0)