jQuery Flot Animator plotanimator is Not a Method -


i'm working jquery flot animator , trying animate simple line graph. receiving error

uncaught typeerror: object function (e,n){return new x.fn.init(e,n,t)} has no method 'plotanimator' testflot.html:17 (anonymous function) testflot.html:17 x.event.dispatch jquery.js:4676 y.handle

jquery loaded flot , animator files i'm not sure what's going on.

<!doctype html> <html> <head> <meta charset="utf-8"> <title>untitled document</title>     <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js" type="text/javascript"></script> <script src="libraries/flot/jquery.flot.min.js" type="text/javascript"></script> <script src="libraries/flot/jquery.flot.animator.min.js" type="text/javascript"></script> </head>  <body> <div id="chart" style="width: 500px; height: 300px;"></div> <script type="text/javascript"> $(window).load(function () {  var d8 = [[2, 5],[4, 8],[6, 2],[7, 5],[9,1],[10, 4],[12, 5],[13, 6],[14, 4]]; $.plotanimator($("#chart"), [{ data : d8, animator: { start: 100, steps: 99, duration: 1000, direction: "left" } }]);  //$.plot($("#chart"), [{data:d8}]); }); </script> </body> </html> 

did digging around in jquery.flot.animator.js file , discovered while directions of author's site use .plotanimator, should .plotanimator.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -