//>>built require({cache:{"url:dojox/calc/templates/Grapher.html":"
\n
\n
\n
\n\t
Window Options
\n\t
\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t\t\t\t\tWidth:\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tHeight:\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\tX >=\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tX <=\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\tY >=\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tY <=\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
\n\t
\n
\n\n
\n\n
\n\t\n\t
\n
\n\n
\n\t
Add Function
\n\t
\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t
\n\t\t\t\t\tMode:\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t
\n
\n
\n
\n\n\t\n\t\t\n\t\t\n\t\n\t\n\t\t\n\t\t\n\t\n\t\n\t\t\n\t\t\n\t\n
\n\t\t\t\n\t\t\n\t\t\t\n\t\t
\n\t\t\t\n\t\t\n\t\t\t\n\t\t
\n\t\t\t\n\t\t\n\t\t\t\n\t\t
\n
\n
\n"}}); define("dojox/calc/Grapher",["dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-construct","dojo/dom-class","dojo/dom-style","dijit/_WidgetBase","dijit/_WidgetsInTemplateMixin","dijit/_TemplatedMixin","dojox/math/_base","dijit/registry","dijit/form/DropDownButton","dijit/TooltipDialog","dijit/form/TextBox","dijit/form/CheckBox","dijit/ColorPalette","dojox/charting/Chart","dojox/charting/axis2d/Default","dojox/charting/plot2d/Default","dojox/charting/plot2d/Lines","dojox/charting/themes/Tufte","dojo/colors","dojo/text!./templates/Grapher.html","dojox/calc/_Executor","dijit/form/Button","dijit/form/Select"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f,_10,_11,_12,_13,_14,_15,_16,_17,_18){ var _19=1e-15/9,_1a=1e+200,_1b=Math.log(2),_1c={graphNumber:0,fOfX:true,color:{stroke:"black"}}; var _1d=_1("dojox.calc.Grapher",[_7,_9,_8],{templateString:_17,addXYAxes:function(_1e){ return _1e.addAxis("x",{max:parseInt(this.graphMaxX.get("value")),min:parseInt(this.graphMinX.get("value")),majorLabels:true,minorLabels:true,minorTicks:false,microTicks:false,htmlLabels:true,labelFunc:function(_1f){ return _1f; },maxLabelSize:30,fixUpper:"major",fixLower:"major",majorTick:{length:3}}).addAxis("y",{max:parseInt(this.graphMaxY.get("value")),min:parseInt(this.graphMinY.get("value")),labelFunc:function(_20){ return _20; },maxLabelSize:50,vertical:true,microTicks:false,minorTicks:true,majorTick:{stroke:"black",length:3}}); },selectAll:function(){ for(var i=0;i0){ for(;i<_32.length;i++){ if(_32[i].length>0){ _2f.addSeries("Series "+_31.graphNumber+"_"+i,_32[i],_31.color); } } } var _33="Series "+_31.graphNumber+"_"+i; while(_33 in _2f.runs){ _2f.removeSeries(_33); i++; _33="Series "+_31.graphNumber+"_"+i; } _2f.render(); return _32; },generatePoints:function(_34,x,y,_35,_36,_37,_38,_39){ var _3a=(1<1){ for(k=0;k<_3b[1].length;k++){ if(_3b[0][_3b[0].length-1][x]==_3b[1][k][x]){ continue; } _3b[0].push(_3b[1][k]); } _3b.splice(1,1); } _3b=_3b[0]; var s=0; var _43=[[]]; for(k=0;k<_3b.length;k++){ var x1,y1,b,_44; if(isNaN(_3b[k][y])||isNaN(_3b[k][x])){ while(isNaN(_3b[k][y])||isNaN(_3b[k][x])){ _3b.splice(k,1); } _43[++s]=[]; k--; }else{ if(_3b[k][y]>_39||_3b[k][y]<_38){ if(k>0&&_3b[k-1].y!=_38&&_3b[k-1].y!=_39){ _44=_41(_3b[k-1],_3b[k]); if(_44>_1a){ _44=_1a; }else{ if(_44<-_1a){ _44=-_1a; } } if(_3b[k][y]>_39){ y1=_39; }else{ y1=_38; } b=_3b[k][y]-_44*_3b[k][x]; x1=(y1-b)/_44; p={}; p[x]=x1; p[y]=_34(x1); if(p[y]!=y1){ p=_45(_34,_3b[k-1],_3b[k],y1); } _43[s].push(p); _43[++s]=[]; } var _46=k; while(k<_3b.length&&(_3b[k][y]>_39||_3b[k][y]<_38)){ k++; } if(k>=_3b.length){ if(_43[s].length==0){ _43.splice(s,1); } break; } if(k>0&&_3b[k].y!=_38&&_3b[k].y!=_39){ _44=_41(_3b[k-1],_3b[k]); if(_44>_1a){ _44=_1a; }else{ if(_44<-_1a){ _44=-_1a; } } if(_3b[k-1][y]>_39){ y1=_39; }else{ y1=_38; } b=_3b[k][y]-_44*_3b[k][x]; x1=(y1-b)/_44; p={}; p[x]=x1; p[y]=_34(x1); if(p[y]!=y1){ p=_45(_34,_3b[k-1],_3b[k],y1); } _43[s].push(p); _43[s].push(_3b[k]); } }else{ _43[s].push(_3b[k]); } } } return _43; function _45(_47,_48,_49,_4a){ while(_48<=_49){ var _4b=(_48[x]+_49[x])/2; var mid={}; mid[x]=_4b; mid[y]=_47(mid[x]); if(_4a==mid[y]||mid[x]==_49[x]||mid[x]==_48[x]){ return mid; } var _4c=true; if(_4a=Math.abs(_53[y])){ _50[0].push(_53); _51=_56; }else{ _50[1].unshift(_53); if(_52[x]==_53[x]){ break; } _52=_53; } } return _50; }; function _40(_57,_58){ var _59=false,_5a=false; if(_57<_58){ _59=true; } if(_58>0){ _5a=true; } return {inc:_59,pos:_5a}; }; function _55(v){ var _5b; if(v>-1&&v<1){ if(v<0){ if(v>=-_19){ _5b=-v; }else{ _5b=v/Math.ceil(v/_19); } }else{ _5b=_19; } }else{ _5b=Math.abs(v)*_19; } return v+_5b; }; function _41(p1,p2){ return (p2[y]-p1[y])/(p2[x]-p1[x]); }; },Grapher:_1d}); });