3 * Pure JavaScript plotting plugin using jQuery
7 * Copyright (c) 2009-2011 Chris Leonello
8 * jqPlot is currently available for use in all personal or commercial projects
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
11 * choose the license that best suits your project and use it accordingly.
13 * Although not required, the author would appreciate an email letting him
14 * know of any substantial use of jqPlot. You can reach the author at:
15 * chris at jqplot dot com or see http://www.jqplot.com/info.php .
17 * If you are feeling kind and generous, consider supporting the project by
18 * making a donation at: http://www.jqplot.com/donate.php .
20 * sprintf functions contained in jqplot.sprintf.js by Ash Searle:
24 * http://hexmen.com/blog/2007/03/printf-sprintf/
25 * http://hexmen.com/js/sprintf.js
26 * The author (Ash Searle) has placed this code in the public domain:
27 * "This code is unrestricted: you are free to use it however you like."
29 * included jsDate library by Chris Leonello:
31 * Copyright (c) 2010-2011 Chris Leonello
33 * jsDate is currently available for use in all personal or commercial projects
34 * under both the MIT and GPL version 2.0 licenses. This means that you can
35 * choose the license that best suits your project and use it accordingly.
37 * jsDate borrows many concepts and ideas from the Date Instance
38 * Methods by Ken Snyder along with some parts of Ken's actual code.
40 * Ken's origianl Date Instance Methods and copyright notice:
42 * Ken Snyder (ken d snyder at gmail dot com)
44 * version 2.0.2 (http://kendsnyder.com/sandbox/date/)
45 * Creative Commons Attribution License 3.0 (http://creativecommons.org/licenses/by/3.0/)
47 * jqplotToImage function based on Larry Siden's export-jqplot-to-png.js.
48 * Larry has generously given permission to adapt his code for inclusion
51 * Larry's original code can be found here:
53 * https://github.com/lsiden/export-jqplot-to-png
57 (function(b){function a(e,d,c){this.bindCustomEvents=function(){this.eventCanvas._elem.bind("vclick",{plot:this},this.onClick);this.eventCanvas._elem.bind("dblclick",{plot:this},this.onDblClick);this.eventCanvas._elem.bind("taphold",{plot:this},this.onDblClick);this.eventCanvas._elem.bind("vmousedown",{plot:this},this.onMouseDown);this.eventCanvas._elem.bind("vmousemove",{plot:this},this.onMouseMove);this.eventCanvas._elem.bind("mouseenter",{plot:this},this.onMouseEnter);this.eventCanvas._elem.bind("mouseleave",{plot:this},this.onMouseLeave);if(this.captureRightClick){this.eventCanvas._elem.bind("vmouseup",{plot:this},this.onRightClick);this.eventCanvas._elem.get(0).oncontextmenu=function(){return false}}else{this.eventCanvas._elem.bind("vmouseup",{plot:this},this.onMouseUp)}};this.plugins.mobile=true}b.jqplot.postInitHooks.push(a)})(jQuery);