diff options
Diffstat (limited to 'examples/zooming.html')
-rw-r--r-- | examples/zooming.html | 8 |
1 files changed, 5 insertions, 3 deletions
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 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Flot Examples</title> <link href="layout.css" rel="stylesheet" type="text/css"></link> - <!--[if IE]><script language="javascript" type="text/javascript" src="../excanvas.pack.js"></script><![endif]--> + <!--[if IE]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]--> <script language="javascript" type="text/javascript" src="../jquery.js"></script> <script language="javascript" type="text/javascript" src="../jquery.flot.js"></script> </head> @@ -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 } |