From 1fd4de1b25398954e9ab43e54d0d0fdf1b5cfce0 Mon Sep 17 00:00:00 2001 From: Frank Wuerthwein Date: Sat, 14 Mar 2009 20:01:55 -0400 Subject: flot-0.6pre@147 --- examples/zooming.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'examples/zooming.html') diff --git a/examples/zooming.html b/examples/zooming.html index 0f3284b..d74f065 100644 --- a/examples/zooming.html +++ b/examples/zooming.html @@ -4,7 +4,7 @@ Flot Examples - + @@ -31,8 +31,10 @@ $(function () { // setup plot function getData(x1, x2) { var d = []; - for (var i = x1; i < x2; i += (x2 - x1) / 100) - d.push([i, Math.sin(i * Math.sin(i))]); + for (var i = 0; i <= 100; ++i) { + var x = x1 + i * (x2 - x1) / 100; + d.push([x, Math.sin(x * Math.sin(x))]); + } return [ { label: "sin(x sin(x))", data: d } -- cgit v1.2.3-2-g168b