// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
define("esri/dijit/geoenrichment/ReportPlayer/core/charts/chartUtils/CustomGridPlot",["dojo/_base/declare","dojox/charting/plot2d/Grid"],function(l,m){return l(m,{xOffset:0,yOffset:0,xHasHalfTickOffset:!1,yHasHalfTickOffset:!1,_renderHLines:function(a,d,b,c,h,e){var k=this.getGroup(),g=0;2<=a.length?g=Math.abs(e(a[0].value)-e(a[1].value)):a.length&&(g=Math.abs(e(a[0].value)));a.forEach(function(a){if(this.opt.renderOnAxis||a.value!==(this._vAxis.opt.leftBottom?h.bounds.from:h.bounds.to)){var f=this.yHasHalfTickOffset?
g/2:0;a=b.height-c.b-e(a.value);f=this.createLine(k,{x1:c.l+this.xOffset,y1:a+f,x2:b.width-c.r,y2:a+f}).setStroke(d);this.animate&&this._animateGrid(f,"h",c.l,c.r+c.l-b.width)}},this)},_renderVLines:function(a,d,b,c,h,e){var k=this.getGroup(),g=0;2<=a.length?g=Math.abs(e(a[0].value)-e(a[1].value)):a.length&&(g=Math.abs(e(a[0].value)));a.forEach(function(a){if(this.opt.renderOnAxis||a.value!==(this._hAxis.opt.leftBottom?h.bounds.from:h.bounds.to)){var f=this.xHasHalfTickOffset?g/2:0;a=c.l+e(a.value);
f=this.createLine(k,{x1:a+f,y1:c.t+this.yOffset,x2:a+f,y2:b.height-c.b}).setStroke(d);this.animate&&this._animateGrid(f,"v",b.height-c.b,b.height-c.b-c.t)}},this)},render:function(a,d){this.dirty=!0;var b=this.inherited(arguments);0<this.xOffset&&this._renderOffsetVLine(a,d);return b},_renderOffsetVLine:function(a,d){var b=this.chart.theme,b=this.opt.majorVLine||b.grid&&b.grid.majorLine||b.axis.majorTick,c=this.getGroup();this.createLine(c,{x1:d.l+this.xOffset,y1:d.t,x2:d.l+this.xOffset,y2:a.height-
d.b}).setStroke(b)}})});