/*
All of the code within the ZingChart software is developed and copyrighted by ZingChart, Inc., and may not be copied,
replicated, or used in any other software or application without prior permission from ZingChart. All usage must coincide with the
ZingChart End User License Agreement which can be requested by email at support@zingchart.com.
Build 2.9.10
*/
zingchart.setModule("depth"),zingchart.plugins.depth=zingchart.plugins.depth||{},zingchart.plugins.depth.info=zingchart.plugins.depth.info||{},zingchart.plugins.depth.crosshairX_plotLabel_jsRule||(zingchart.plugins.depth.crosshairX_plotLabel_jsRule=function(e,t){var i="",a=e["data-palette"].split(";");return t=parseInt(t,10),e.key!==e["data-mmp"]?(i=''+e.scaletext+'
%plot-text:\xa0\xa0'+e.value+'
%data-cost:\xa0\xa0'+e["data-currency"]+zingchart.formatNumber(e.key*e.value,{"thousands-separator":",",decimals:2}),{"border-bottom":"5px solid "+a[t],text:i}):{text:"N/A",visible:!1}}),zingchart.bind(null,"dataparse",function(e,t){for(var i=zingchart.getLoader(e.id),a=0,n=t.graphset.length;a "+s,"background-color":h[1]}]},"plot-label":{multiple:!0,callout:!1,"background-color":"#eee",padding:"10 10 15 10","font-size":11,"font-weight":"bold"},marker:{type:"diamond",size:3}}),l["crosshair-x"].exact=!0;var _={type:"line","line-color":"#ccc","line-width":1,range:[s],"value-range":!0,"label-tolerance":20,"offset-end":100,label:{"font-size":10,"font-weight":"bold",angle:0,width:80,"offset-x":-40,"offset-y":15,text:zingchart.plugins.depth.info[i.L].currency+zingchart.formatNumber(zingchart.plugins.depth.info[i.L].mmp,{"thousands-separator":","})}};ZC._cp_(r["mmp-marker"],_),l["scale-x"].markers.push(_);var x=zingchart.plugins.depth.info[i.L].zoom||.5,y=s-f,v=b-s,k=Math.min(y,v),w=.05*k,L=k*x,Z=.05*k;zingchart.plugins.depth.info[i.L].diff=L,zingchart.plugins.depth.info[i.L]["min-diff"]=w,zingchart.plugins.depth.info[i.L]["max-diff"]=k,zingchart.plugins.depth.info[i.L].step=Z,zingchart.plugins.depth.info[i.L].zoom=x,p.push({values:[[s,0]],visible:!1,"export":!1,scales:"scale-x,scale-y-2"}),l["scale-x"]["zoom-to-values"]=[s-L,s+L]}return t}),zingchart.bind(null,"objectsinit",function(e){var t=zingchart.getLoader(e.loader.id),i=zingchart.getGraph(t,e.graphid),a=i.o;if("depth"===a["plugin-type"]){var n=zingchart.getGraphInfo(t,a,i.K).plotarea,o={};a.options&&(o=a.options.depth||a.options),ZC._todash_(o);var l=zingchart.plugins.depth.info[t.L].currency+zingchart.formatNumber(zingchart.plugins.depth.info[t.L].mmp,{"thousands-separator":","});a.labels=a.labels||[];for(var r=a.labels.length-1;r>=0;r--)"zc_depth"===a.labels[r].cls&&a.labels.splice(r,1);var s={cls:"zc_depth",id:"zc_depth_title",x:n.x+n.width/2,y:n.y+10,anchor:"t","font-size":21,"font-weight":"bold",text:l};ZC._cp_(o.title,s),a.labels.push(s);var c={cls:"zc_depth",id:"zc_depth_subtitle",x:n.x+n.width/2,y:n.y+35,anchor:"t","font-size":12,color:"#999",text:"Mid Market Price"};ZC._cp_(o.subtitle,c),a.labels.push(c);var h=Math.round(s["font-size"]*l.length*.35),d={cls:"zc_depth",x:n.x+n.width/2-h,y:n.y+16,width:20,height:20,anchor:"tr","border-width":1,"font-size":14,"font-weight":"bold",text:" - ","background-color":"#ddd","hover-state":{"background-color":"#eee"},tooltip:{text:"Zoom Out"},id:"zc_depth_zoomout"};ZC._cp_(o["button-zoomout"],d),a.labels.push(d);var p={cls:"zc_depth",x:n.x+n.width/2+h,y:n.y+16,width:20,height:20,anchor:"tl","border-width":1,"font-size":14,"font-weight":"bold",text:" + ","background-color":"#ddd","hover-state":{"background-color":"#eee"},tooltip:{text:"Zoom In"},id:"zc_depth_zoomin"};ZC._cp_(o["button-zoomin"],p),a.labels.push(p)}}),zingchart.bind(null,"label_click",function(e){if("zc_depth_zoomin"===e.label.id||"zc_depth_zoomout"===e.label.id){var t=zingchart.plugins.depth.info[e.id].mmp,i=zingchart.plugins.depth.info[e.id].step,a=zingchart.plugins.depth.info[e.id].diff,n=zingchart.plugins.depth.info[e.id]["min-diff"],o=zingchart.plugins.depth.info[e.id]["max-diff"],l=zingchart.plugins.depth.info[e.id].zoom;a+="zc_depth_zoomout"===e.label.id?i:-i,l+="zc_depth_zoomout"===e.label.id?.05:-.05,a>o?(a=o,l=1):a