diff --git a/_posts/plotly_js/streaming/2017-07-13-basic-example.html b/_posts/plotly_js/streaming/2017-07-13-basic-example.html index e3879be163bf..7dbed170d50b 100644 --- a/_posts/plotly_js/streaming/2017-07-13-basic-example.html +++ b/_posts/plotly_js/streaming/2017-07-13-basic-example.html @@ -26,5 +26,5 @@ y: [[rand()]] }, [0]) - if(cnt === 100) clearInterval(interval); + if(++cnt === 100) clearInterval(interval); }, 300); diff --git a/_posts/plotly_js/streaming/2017-07-13-mulitple-trace.html b/_posts/plotly_js/streaming/2017-07-13-mulitple-trace.html index 1938800320b7..f03f56a526d7 100644 --- a/_posts/plotly_js/streaming/2017-07-13-mulitple-trace.html +++ b/_posts/plotly_js/streaming/2017-07-13-mulitple-trace.html @@ -30,5 +30,5 @@ y: [[rand()], [rand()]] }, [0, 1]) - if(cnt === 100) clearInterval(interval); + if(++cnt === 100) clearInterval(interval); }, 300); diff --git a/_posts/plotly_js/streaming/2017-07-13-streaming-30-points.html b/_posts/plotly_js/streaming/2017-07-13-streaming-30-points.html index 595704081962..c7847c14f788 100644 --- a/_posts/plotly_js/streaming/2017-07-13-streaming-30-points.html +++ b/_posts/plotly_js/streaming/2017-07-13-streaming-30-points.html @@ -36,5 +36,5 @@ Plotly.update('graph', data_update) - if(cnt === 100) clearInterval(interval); + if(++cnt === 100) clearInterval(interval); }, 1000); diff --git a/_posts/plotly_js/streaming/2017-07-13-streaming-subplots.html b/_posts/plotly_js/streaming/2017-07-13-streaming-subplots.html index 86708e0141c0..8ef763ebfb78 100644 --- a/_posts/plotly_js/streaming/2017-07-13-streaming-subplots.html +++ b/_posts/plotly_js/streaming/2017-07-13-streaming-subplots.html @@ -67,5 +67,5 @@ Plotly.extendTraces('graph', update, [0,1]) - if(cnt === 100) clearInterval(interval); + if(++cnt === 100) clearInterval(interval); }, 1000); diff --git a/_posts/plotly_js/streaming/2017-07-13-streaming-timestamp.html b/_posts/plotly_js/streaming/2017-07-13-streaming-timestamp.html index c4e71759bcb7..e5efc543743a 100644 --- a/_posts/plotly_js/streaming/2017-07-13-streaming-timestamp.html +++ b/_posts/plotly_js/streaming/2017-07-13-streaming-timestamp.html @@ -37,5 +37,5 @@ Plotly.extendTraces('graph', update, [0]) - if(cnt === 100) clearInterval(interval); + if(++cnt === 100) clearInterval(interval); }, 1000); diff --git a/_posts/plotly_js/streaming/2017-07-13-streaming-timestamp_range.html b/_posts/plotly_js/streaming/2017-07-13-streaming-timestamp_range.html index aa69b48b8c14..34f7a1fcedc8 100644 --- a/_posts/plotly_js/streaming/2017-07-13-streaming-timestamp_range.html +++ b/_posts/plotly_js/streaming/2017-07-13-streaming-timestamp_range.html @@ -47,5 +47,5 @@ Plotly.relayout('graph', minuteView); Plotly.extendTraces('graph', update, [0]) - if(cnt === 100) clearInterval(interval); + if(++cnt === 100) clearInterval(interval); }, 1000);