/*! angularjs-nvd3-directives - v0.0.0 - 2013-10-10
* http://cmaurer.github.io/angularjs-nvd3-directives
* Copyright (c) 2013 Christian Maurer; Licensed Apache License, v2.0 */
;angular.module("legendDirectives",[]).directive("simpleSvgLegend",function(){return{restrict:"E",scope:{id:"@",width:"@",height:"@",margin:"@",x:"@",y:"@",labels:"@",styles:"@",classes:"@",shapes:"@",padding:"@",columns:"@"},compile:function(){return function a(e,h,A){var v,B,t,s,o=0,l=0,f=1,G=0,q=10,H,c="http://www.w3.org/2000/svg",u,D,F,j,E,z,m=0,k=0,n;s=(e.$eval(A.margin)||{left:5,top:5,bottom:5,right:5});B=(A.width==="undefined"?((h[0].parentElement.offsetWidth)-(s.left+s.right)):(+A.width-(s.left+s.right)));t=(A.height==="undefined"?((h[0].parentElement.offsetHeight)-(s.top+s.bottom)):(+A.height-(s.top+s.bottom)));if(!A.id){v="legend-"+Math.random()}else{v=A.id}n=d3.select(this).classed("legend-"+v,true);if(A.columns){f=(+A.columns)}if(A.padding){q=(+A.padding)}H=q+"";u=document.createElementNS(c,"svg");if(A.width){u.setAttribute("width",B+"")}if(A.height){u.setAttribute("height",t+"")}u.setAttribute("id",v);if(A.x){m=(+A.x)}if(A.y){k=(+A.y)}h.append(u);D=document.createElementNS(c,"g");D.setAttribute("transform","translate("+m+","+k+")");u.appendChild(D);if(A.labels){F=e.$eval(A.labels)}if(A.styles){j=e.$eval(A.styles)}if(A.classes){E=e.$eval(A.classes)}if(A.shapes){z=e.$eval(A.shapes)}for(var C in F){var w=z[C],d,p,r,b;if((G%f)===0){o=0;l=l+(q+(q*1.5))}b=document.createElementNS(c,"g");b.setAttribute("transform","translate("+o+", "+l+")");if(w==="rect"){d=document.createElementNS(c,"rect");d.setAttribute("y",(0-(q/2))+"");d.setAttribute("width",H);d.setAttribute("height",H)}else{if(w==="ellipse"){d=document.createElementNS(c,"ellipse");d.setAttribute("rx",H);d.setAttribute("ry",(q+(q/2))+"")}else{d=document.createElementNS(c,"circle");d.setAttribute("r",(q/2)+"")}}if(j&&j[C]){d.setAttribute("style",j[C])}if(E&&E[C]){d.setAttribute("class",E[C])}b.appendChild(d);o=o+d.clientWidth+(q+(q/2));p=document.createElementNS(c,"text");p.setAttribute("transform","translate(10, 5)");p.appendChild(document.createTextNode(F[C]));b.appendChild(p);D.appendChild(b);r=p.clientWidth;o=o+r+(q+(q*0.75));G++}}}}});function processEvents(b,a){if(b.dispatch){if(b.dispatch.tooltipShow){b.dispatch.on("tooltipShow.directive",function(c){a.$emit("tooltipShow.directive",c)})}if(b.dispatch.tooltipHide){b.dispatch.on("tooltipHide.directive",function(c){a.$emit("tooltipHide.directive",c)})}if(b.dispatch.beforeUpdate){b.dispatch.on("beforeUpdate.directive",function(c){a.$emit("beforeUpdate.directive",c)})}if(b.dispatch.stateChange){b.dispatch.on("stateChange.directive",function(c){a.$emit("stateChange.directive",c)})}if(b.dispatch.changeState){b.dispatch.on("changeState.directive",function(c){a.$emit("changeState.directive",c)})}}if(b.lines){b.lines.dispatch.on("elementMouseover.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)});b.lines.dispatch.on("elementMouseout.tooltip.directive",function(c){a.$emit("elementMouseout.tooltip.directive",c)});b.lines.dispatch.on("elementClick.directive",function(c){a.$emit("elementClick.directive",c)})}if(b.stacked&&b.stacked.dispatch){b.stacked.dispatch.on("areaClick.toggle.directive",function(c){a.$emit("areaClick.toggle.directive",c)});b.stacked.dispatch.on("tooltipShow.directive",function(c){a.$emit("tooltipShow.directive",c)});b.stacked.dispatch.on("tooltipHide.directive",function(c){a.$emit("tooltipHide.directive",c)})}if(b.interactiveLayer){if(b.interactiveLayer.elementMouseout){b.interactiveLayer.dispatch.on("elementMouseout.directive",function(c){a.$emit("elementMouseout.directive",c)})}if(b.interactiveLayer.elementMousemove){b.interactiveLayer.dispatch.on("elementMousemove.directive",function(c){a.$emit("elementMousemove.directive",c)})}}if(b.discretebar){b.discretebar.dispatch.on("elementMouseover.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)});b.discretebar.dispatch.on("elementMouseout.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)})}if(b.multibar){b.multibar.dispatch.on("elementMouseover.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)});b.multibar.dispatch.on("elementMouseout.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)})}if(b.pie){b.pie.dispatch.on("elementMouseover.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)});b.pie.dispatch.on("elementMouseout.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)})}if(b.scatter){b.scatter.dispatch.on("elementMouseover.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)});b.scatter.dispatch.on("elementMouseout.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)})}if(b.bullet){b.bullet.dispatch.on("elementMouseover.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)});b.bullet.dispatch.on("elementMouseout.tooltip.directive",function(c){a.$emit("elementMouseover.tooltip.directive",c)})}if(b.legend){b.legend.dispatch.on("stateChange.legend.directive",function(c){a.$emit("stateChange.legend.directive",c)});b.legend.dispatch.on("legendClick.directive",function(e,c){a.$emit("legendClick.directive",e,c)})}if(b.controls){if(b.controls.legendClick){b.controls.dispatch.on("legendClick.directive",function(e,c){a.$emit("legendClick.directive",e,c)})}}}function configureXaxis(c,b,a){if(a.xaxisorient){c.xAxis.orient(a.xaxisorient)}if(a.xaxisticks){c.xAxis.scale().ticks(a.xaxisticks)}if(a.xaxistickvalues){if(Array.isArray(b.$eval(a.xaxistickvalues))){c.xAxis.tickValues(b.$eval(a.xaxistickvalues))}else{if(typeof b.xaxistickvalues()==="function"){c.xAxis.tickValues(b.xaxistickvalues())}}}if(a.xaxisticksubdivide){c.xAxis.tickSubdivide(b.xaxisticksubdivide())}if(a.xaxisticksize){c.xAxis.tickSize(b.xaxisticksize())}if(a.xaxistickpadding){c.xAxis.tickPadding(b.xaxistickpadding())}if(a.xaxistickformat){c.xAxis.tickFormat(b.xaxistickformat())}if(a.xaxislabel){c.xAxis.axisLabel(a.xaxislabel)}if(a.xaxisscale){c.xAxis.scale(b.xaxisscale())}if(a.xaxisdomain){c.xAxis.domain(b.xaxisdomain())}if(a.xaxisrange){c.xAxis.range(b.xaxisrange())}if(a.xaxisrangeband){c.xAxis.rangeBand(b.xaxisrangeband())}if(a.xaxisrangebands){c.xAxis.rangeBands(b.xaxisrangebands())}if(a.xaxisshowmaxmin){c.xAxis.showMaxMin((a.xaxisshowmaxmin==="true"))}if(a.xaxishighlightzero){c.xAxis.highlightZero((a.xaxishighlightzero==="true"))}if(a.xaxisrotatelables){c.xAxis.rotateLabels((+a.xaxisrotatelables))}if(a.xaxisstaggerlabels){c.xAxis.staggerLabels((a.xaxisstaggerlabels==="true"))}}function configureYaxis(c,b,a){if(a.yaxisorient){c.yAxis.orient(a.yaxisorient)}if(a.yaxisticks){c.yAxis.scale().ticks(a.yaxisticks)}if(a.yaxistickvalues){if(Array.isArray(b.$eval(a.yaxistickvalues))){c.yAxis.tickValues(b.$eval(a.yaxistickvalues))}else{if(typeof b.yaxistickvalues()==="function"){c.yAxis.tickValues(b.yaxistickvalues())}}}if(a.yaxisticksubdivide){c.yAxis.tickSubdivide(b.yaxisticksubdivide())}if(a.yaxisticksize){c.yAxis.tickSize(b.yaxisticksize())}if(a.yaxistickpadding){c.yAxis.tickPadding(b.yaxistickpadding())}if(a.yaxistickformat){c.yAxis.tickFormat(b.yaxistickformat())}if(a.yaxislabel){c.yAxis.axisLabel(a.yaxislabel)}if(a.yaxisscale){c.yAxis.scale(b.yaxisscale())}if(a.yaxisdomain){c.yAxis.domain(b.yaxisdomain())}if(a.yaxisrange){c.yAxis.range(b.yaxisrange())}if(a.yaxisrangeband){c.yAxis.rangeBand(b.yaxisrangeband())}if(a.yaxisrangebands){c.yAxis.rangeBands(b.yaxisrangebands())}if(a.yaxisshowmaxmin){c.yAxis.showMaxMin((a.yaxisshowmaxmin==="true"))}if(a.yaxishighlightzero){c.yAxis.highlightZero((a.yaxishighlightzero==="true"))}if(a.yaxisrotatelables){c.yAxis.rotateLables(a.yaxisrotatelables)}if(a.yaxisrotateylabel){c.yAxis.rotateYLabel((a.yaxisrotateylabel==="true"))}if(a.yaxisstaggerlabels){c.yAxis.staggerLabels((a.yaxisstaggerlabels==="true"))}}function configureY1axis(c,b,a){if(a.y1axisticks){c.y1Axis.scale().ticks(a.y1axisticks)}if(a.y1axistickvalues){c.y1Axis.tickValues(a.y1axistickvalues)}if(a.y1axisticksubdivide){c.y1Axis.tickSubdivide(b.y1axisticksubdivide())}if(a.y1axisticksize){c.y1Axis.tickSize(b.y1axisticksize())}if(a.y1axistickpadding){c.y1Axis.tickPadding(b.y1axistickpadding())}if(a.y1axistickformat){c.y1Axis.tickFormat(b.y1axistickformat())}if(a.y1axislabel){c.y1Axis.axisLabel(a.y1axislabel)}if(a.y1axisscale){c.y1Axis.yScale(b.y1axisscale())}if(a.y1axisdomain){c.y1Axis.domain(b.y1axisdomain())}if(a.y1axisrange){c.y1Axis.range(b.y1axisrange())}if(a.y1axisrangeband){c.y1Axis.rangeBand(b.y1axisrangeband())}if(a.y1axisrangebands){c.y1Axis.rangeBands(b.y1axisrangebands())}if(a.y1axisshowmaxmin){c.y1Axis.showMaxMin((a.y1axisshowmaxmin==="true"))}if(a.y1axishighlightzero){c.y1Axis.highlightZero((a.y1axishighlightzero==="true"))}if(a.y1axisrotatelables){c.y1Axis.highlightZero(b.y1axisrotatelables)}if(a.y1axisrotateylabel){c.y1Axis.rotateYLabel((a.y1axisrotateylabel==="true"))}if(a.y1axisstaggerlabels){c.y1Axis.staggerlabels((a.y1axisstaggerlabels==="true"))}}function configureY2axis(c,b,a){if(a.y2axisticks){c.y2Axis.scale().ticks(a.y2axisticks)}if(a.y2axistickvalues){c.y2Axis.tickValues(b.$eval(a.y2axistickvalues))}if(a.y2axisticksubdivide){c.y2Axis.tickSubdivide(b.y2axisticksubdivide())}if(a.y2axisticksize){c.y2Axis.tickSize(b.y2axisticksize())}if(a.y2axistickpadding){c.y2Axis.tickPadding(b.y2axistickpadding())}if(a.y2axistickformat){c.y2Axis.tickFormat(b.y2axistickformat())}if(a.y2axislabel){c.y2Axis.axisLabel(a.y2axislabel)}if(a.y2axisscale){c.y2Axis.yScale(b.y2axisscale())}if(a.y2axisdomain){c.y2Axis.domain(b.y2axisdomain())}if(a.y2axisrange){c.y2Axis.range(b.y2axisrange())}if(a.y2axisrangeband){c.y2Axis.rangeBand(b.y2axisrangeband())}if(a.y2axisrangebands){c.y2Axis.rangeBands(b.y2axisrangebands())}if(a.y2axisshowmaxmin){c.y2Axis.showMaxMin((a.y2axisshowmaxmin==="true"))}if(a.y2axishighlightzero){c.y2Axis.highlightZero((a.y2axishighlightzero==="true"))}if(a.y2axisrotatelables){c.y2Axis.highlightZero(b.y2axisrotatelables)}if(a.y2axisrotateylabel){c.y2Axis.rotateYLabel((a.y2axisrotateylabel==="true"))}if(a.y2axisstaggerlabels){c.y2Axis.staggerlabels((a.y2axisstaggerlabels==="true"))}}function setupDimensions(c,a,b){var d=(c.$eval(a.margin)||{left:50,top:50,bottom:50,right:50});c.width=(a.width==="undefined"?((b[0].parentElement.offsetWidth)-(d.left+d.right)):(+a.width-(d.left+d.right)));c.height=(a.height==="undefined"?((b[0].parentElement.offsetHeight)-(d.top+d.bottom)):(+a.height-(d.top+d.bottom)));return d}angular.module("nvd3ChartDirectives",[]).directive("nvd3LineChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showxaxis:"@",showyaxis:"@",rightalignyaxis:"@",defaultstate:"@",nodata:"@",margin:"&",tooltipcontent:"&",color:"&",x:"&",y:"&",forcex:"@",forcey:"@",isArea:"@",interactive:"@",clipedge:"@",clipvoronoi:"@",interpolate:"@",xaxisorient:"&",xaxisticks:"@",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelables:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelables:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.lineChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l[0]}:e.x()).y(c.y===undefined?function(l){return l[1]}:e.y()).forceX(c.forcex===undefined?[]:e.$eval(c.forcex)).forceY(c.forcey===undefined?[0]:e.$eval(c.forcey)).showLegend(c.showlegend===undefined?false:(c.showlegend==="true")).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).showXAxis(c.showxaxis===undefined?false:(c.showxaxis==="true")).showYAxis(c.showyaxis===undefined?false:(c.showyaxis==="true")).rightAlignYAxis(c.rightalignyaxis===undefined?false:(c.rightalignyaxis==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata).interactive(c.interactive===undefined?false:(c.interactive==="true")).clipEdge(c.clipedge===undefined?false:(c.clipedge==="true")).clipVoronoi(c.clipvoronoi===undefined?false:(c.clipvoronoi==="true")).interpolate(c.interpolate===undefined?"linear":c.interpolate).color(c.color===undefined?nv.utils.defaultColor():e.color()).isArea(c.isarea===undefined?function(){return false}:function(){return(c.isarea==="true")});if(i.useInteractiveGuideline){i.useInteractiveGuideline(c.useinteractiveguideline===undefined?false:(c.useinteractiveguideline==="true"))}if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}configureXaxis(i,e,c);configureYaxis(i,e,c);processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(l<0){l=0}if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();nv.log("newWidth",n,"newHeight",l);i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3CumulativeLineChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showxaxis:"@",showyaxis:"@",rightalignyaxis:"@",defaultstate:"@",nodata:"@",margin:"&",tooltipcontent:"&",color:"&",x:"&",y:"&",forcex:"@",forcey:"@",isArea:"@",interactive:"@",clipedge:"@",clipvoronoi:"@",usevoronoi:"@",average:"&",rescaley:"@",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelables:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelables:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.cumulativeLineChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l[0]}:e.x()).y(c.y===undefined?function(l){return l[1]}:e.y()).forceX(c.forcex===undefined?[]:e.$eval(c.forcex)).forceY(c.forcey===undefined?[0]:e.$eval(c.forcey)).showLegend(c.showlegend===undefined?false:(c.showlegend==="true")).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).showXAxis(c.showxaxis===undefined?false:(c.showxaxis==="true")).showYAxis(c.showyaxis===undefined?false:(c.showyaxis==="true")).rightAlignYAxis(c.rightalignyaxis===undefined?false:(c.rightalignyaxis==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata).interactive(c.interactive===undefined?false:(c.interactive==="true")).clipEdge(c.clipedge===undefined?false:(c.clipedge==="true")).clipVoronoi(c.clipvoronoi===undefined?false:(c.clipvoronoi==="true")).useVoronoi(c.usevoronoi===undefined?false:(c.usevoronoi==="true")).average(c.average===undefined?function(l){return l.average}:e.average()).color(c.color===undefined?d3.scale.category10().range():e.color()).isArea(c.isarea===undefined?false:(c.isarea==="true"));if(i.useInteractiveGuideline){i.useInteractiveGuideline(c.useinteractiveguideline===undefined?false:(c.useinteractiveguideline==="true"))}if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}configureXaxis(i,e,c);configureYaxis(i,e,c);processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(l<0){l=0}if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();nv.log("newWidth",n,"newHeight",l);i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3StackedAreaChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showcontrols:"@",nodata:"@",margin:"&",tooltipcontent:"&",color:"&",x:"&",y:"&",forcex:"@",forcey:"@",forcesize:"@",interactive:"@",usevoronoi:"@",clipedge:"@",interpolate:"@",style:"@",order:"@",offset:"@",size:"&",xScale:"&",yScale:"&",xDomain:"&",yDomain:"&",xRange:"&",yRange:"&",sizeDomain:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelables:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelables:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.stackedAreaChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l[0]}:e.x()).y(c.y===undefined?function(l){return l[1]}:e.y()).forceX(c.forcex===undefined?[]:e.$eval(c.forcex)).forceY(c.forcey===undefined?[0]:e.$eval(c.forcey)).size(c.size===undefined?function(l){return l.size||1}:e.size()).forceSize(c.forcesize===undefined?[]:e.$eval(c.forcesize)).showLegend(c.showlegend===undefined?false:(c.showlegend==="true")).showControls(c.showcontrols===undefined?false:(c.showcontrols==="true")).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata).interactive(c.interactive===undefined?false:(c.interactive==="true")).clipEdge(c.clipedge===undefined?false:(c.clipedge==="true")).color(c.color===undefined?nv.utils.defaultColor():e.color());if(i.useInteractiveGuideline){i.useInteractiveGuideline(c.useinteractiveguideline===undefined?false:(c.useinteractiveguideline==="true"))}if(c.usevoronoi){i.useVoronoi((c.usevoronoi==="true"))}if(c.style){i.style(c.style)}if(c.order){i.order(c.order)}if(c.offset){i.offset(c.offset)}if(c.interpolate){i.interpolate(c.interpolate)}if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}if(c.xscale){i.xScale(e.xscale())}if(c.yscale){i.yScale(e.yscale())}if(c.xdomain){i.xDomain(e.xdomain())}if(c.ydomain){i.yDomain(e.ydomain())}if(c.sizedomain){i.sizeDomain(e.sizedomain())}configureXaxis(i,e,c);configureYaxis(i,e,c);processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3MultiBarChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",tooltipcontent:"&",color:"&",showcontrols:"@",nodata:"@",reducexticks:"@",staggerlabels:"@",rotatelabels:"@",margin:"&",x:"&",y:"&",forcey:"@",delay:"@",stacked:"@",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelables:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelables:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.multiBarChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l[0]}:e.x()).y(c.y===undefined?function(l){return l[1]}:e.y()).forceY(c.forcey===undefined?[0]:e.$eval(c.forcey)).showLegend(c.showlegend===undefined?false:(c.showlegend==="true")).showControls(c.showcontrols===undefined?false:(c.showcontrols==="true")).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).reduceXTicks(c.reducexticks===undefined?false:(c.reducexticks==="true")).staggerLabels(c.staggerlabels===undefined?false:(c.staggerlabels==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata).rotateLabels(c.rotatelabels===undefined?0:c.rotatelabels).color(c.color===undefined?nv.utils.defaultColor():e.color()).delay(c.delay===undefined?1200:c.delay).stacked(c.stacked===undefined?false:(c.stacked==="true"));configureXaxis(i,e,c);configureYaxis(i,e,c);processEvents(i,e);if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3DiscreteBarChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",tooltips:"@",tooltipcontent:"&",staggerlabels:"@",color:"&",margin:"&",nodata:"@",x:"&",y:"&",forcey:"@",showvalues:"@",valueformat:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelables:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelables:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.discreteBarChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l[0]}:e.x()).y(c.y===undefined?function(l){return l[1]}:e.y()).forceY(c.forcey===undefined?[0]:e.$eval(c.forcey)).showValues(c.showvalues===undefined?false:(c.showvalues==="true")).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata).staggerLabels(c.staggerlabels===undefined?false:(c.staggerlabels==="true")).color(c.color===undefined?nv.utils.defaultColor():e.color());configureXaxis(i,e,c);configureYaxis(i,e,c);if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}if(c.valueformat){i.valueFormat(e.valueformat())}processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3HistoricalBarChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",tooltips:"@",tooltipcontent:"&",color:"&",margin:"&",nodata:"@",x:"&",y:"&",forcey:"@",isarea:"@",interactive:"@",clipedge:"@",clipvoronoi:"@",interpolate:"@",highlightPoint:"@",clearHighlights:"@",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelables:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelables:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.historicalBarChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l[0]}:e.x()).y(c.y===undefined?function(l){return l[1]}:e.y()).forceY(c.forcey===undefined?[0]:e.$eval(c.forcey)).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata).interactive(c.interactive===undefined?false:(c.interactive==="true")).color(c.color===undefined?nv.utils.defaultColor():e.color());configureXaxis(i,e,c);configureYaxis(i,e,c);if(i.useInteractiveGuideline){i.useInteractiveGuideline(c.useinteractiveguideline===undefined?false:(c.useinteractiveguideline==="true"))}if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}if(c.valueformat){i.valueFormat(e.valueformat())}processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3MultiBarHorizontalChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",tooltipcontent:"&",color:"&",showcontrols:"@",margin:"&",nodata:"@",x:"&",y:"&",forcey:"@",stacked:"@",showvalues:"@",valueformat:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelables:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelables:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.multiBarHorizontalChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l[0]}:e.x()).y(c.y===undefined?function(l){return l[1]}:e.y()).forceY(c.forcey===undefined?[0]:e.$eval(c.forcey)).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata).color(c.color===undefined?nv.utils.defaultColor():e.color()).showLegend(c.showlegend===undefined?false:(c.showlegend==="true")).showControls(c.showcontrols===undefined?false:(c.showcontrols==="true")).showValues(c.showvalues===undefined?false:(c.showvalues==="true")).stacked(c.stacked===undefined?false:(c.stacked==="true"));configureXaxis(i,e,c);configureYaxis(i,e,c);if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}if(c.valueformat){i.valueFormat(e.valueformat())}e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3PieChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",showlabels:"@",showlegend:"@",donutLabelsOutside:"@",pieLabelsOutside:"@",labelType:"@",nodata:"@",margin:"&",x:"&",y:"&",color:"&",donut:"@",donutRatio:"@",labelThreshold:"@",description:"&",tooltips:"@",tooltipcontent:"&",valueFormat:"&",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.pieChart().x(c.x===undefined?function(l){return l[0]}:e.x()).y(c.y===undefined?function(l){return l[1]}:e.y()).width(e.width).height(e.height).margin(k).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata).showLabels(c.showlabels===undefined?false:(c.showlabels==="true")).labelThreshold(c.labelThreshold===undefined?0.02:c.labelthreshold).labelType(c.labeltype===undefined?"key":c.labeltype).pieLabelsOutside(c.pielabelsoutside===undefined?true:(c.pielabelsoutside==="true")).valueFormat(c.valueformat===undefined?d3.format(",.2f"):c.valueformat).showLegend(c.showlegend===undefined?false:(c.showlegend==="true")).description(c.description===undefined?function(l){return l.description}:e.description()).color(c.color===undefined?nv.utils.defaultColor():e.color()).donutLabelsOutside(c.donutlabelsoutside===undefined?false:(c.donutlabelsoutside==="true")).donut(c.donut===undefined?false:(c.donut==="true")).donutRatio(c.donutratio===undefined?0.5:(c.donutratio));if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration((c.transitionduration===undefined?500:c.transitionduration)).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3ScatterChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showcontrols:"@",showDistX:"@",showDistY:"@",rightAlignYAxis:"@",fisheye:"@",xPadding:"@",yPadding:"@",tooltipContent:"&",tooltipXContent:"&",tooltipYContent:"&",color:"&",margin:"&",nodata:"@",transitionDuration:"@",shape:"&",onlyCircles:"@",interactive:"@",x:"&",y:"&",size:"&",forceX:"@",forceY:"@",forceSize:"@",xrange:"&",xdomain:"&",xscale:"&",yrange:"&",ydomain:"&",yscale:"&",sizerange:"&",sizedomain:"&",zscale:"&",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelables:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelables:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.scatterChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l.x}:e.x()).y(c.y===undefined?function(l){return l.y}:e.y()).size(c.size===undefined?function(l){return l.size}:e.size()).forceX(c.forcex===undefined?[]:e.$eval(c.forcex)).forceY(c.forcey===undefined?[]:e.$eval(c.forcey)).forceSize(c.forcesize===undefined?[]:e.$eval(c.forcesize)).interactive(c.interactive===undefined?false:(c.interactive==="true")).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).tooltipContent(c.tooltipContent===undefined?null:e.tooltipContent()).tooltipXContent(c.tooltipxcontent===undefined?function(m,l){return""+l+""}:e.tooltipXContent()).tooltipYContent(c.tooltipycontent===undefined?function(m,l,n){return""+n+""}:e.tooltipYContent()).showControls(c.showcontrols===undefined?false:(c.showcontrols==="true")).showLegend(c.showlegend===undefined?false:(c.showlegend==="true")).showDistX(c.showdistx===undefined?false:(c.showdistx==="true")).showDistY(c.showdisty===undefined?false:(c.showdisty==="true")).xPadding(c.xpadding===undefined?0:(+c.xpadding)).yPadding(c.ypadding===undefined?0:(+c.ypadding)).fisheye(c.fisheye===undefined?0:(+c.fisheye)).noData(c.nodata===undefined?"No Data Available.":e.nodata).color(c.color===undefined?nv.utils.defaultColor():e.color()).transitionDuration(c.transitionduration===undefined?250:(+c.transitionduration));if(c.shape){i.scatter.onlyCircles(false);i.scatter.shape(c.shape===undefined?function(l){return l.shape||"circle"}:e.shape())}configureXaxis(i,e,c);configureYaxis(i,e,c);if(c.xscale){i.xDomain(e.xdomain());i.xRange(e.xrange());i.xScale(e.xscale())}if(c.yscale){i.yDomain(e.ydomain());i.yRange(e.yrange());i.yScale(e.yscale())}if(c.zscale){i.sizeDomain(e.sizedomain());i.sizeRange(e.sizerange());i.zScale(e.zscale())}processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3ScatterPlusLineChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.scatterPlusLineChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l.x}:e.x()).y(c.y===undefined?function(l){return l.y}:e.y()).size(c.size===undefined?function(l){return l.size}:e.size()).interactive(c.interactive===undefined?false:(c.interactive==="true")).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).tooltipContent(c.tooltipContent===undefined?null:e.tooltipContent()).tooltipXContent(c.tooltipxcontent===undefined?function(m,l){return""+l+""}:e.tooltipXContent()).tooltipYContent(c.tooltipycontent===undefined?function(m,l,n){return""+n+""}:e.tooltipYContent()).showControls(c.showcontrols===undefined?false:(c.showcontrols==="true")).showLegend(c.showlegend===undefined?false:(c.showlegend==="true")).showDistX(c.showdistx===undefined?false:(c.showdistx==="true")).showDistY(c.showdisty===undefined?false:(c.showdisty==="true")).xPadding(c.xpadding===undefined?0:(+c.xpadding)).yPadding(c.ypadding===undefined?0:(+c.ypadding)).fisheye(c.fisheye===undefined?0:(+c.fisheye)).noData(c.nodata===undefined?"No Data Available.":e.nodata).color(c.color===undefined?nv.utils.defaultColor():e.color()).transitionDuration(c.transitionduration===undefined?250:(+c.transitionduration));if(c.shape){i.scatter.onlyCircles(false);i.scatter.shape(c.shape===undefined?function(l){return l.shape||"circle"}:e.shape())}processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}})}}}]).directive("nvd3LinePlusBarChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showxaxis:"@",showyaxis:"@",rightalignyaxis:"@",defaultstate:"@",nodata:"@",margin:"&",tooltipcontent:"&",color:"&",x:"&",y:"&",clipvoronoi:"@",interpolate:"@",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelables:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelables:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",y2axisorient:"&",y2axisticks:"&",y2axistickvalues:"&",y2axisticksubdivide:"&",y2axisticksize:"&",y2axistickpadding:"&",y2axistickformat:"&",y2axislabel:"&",y2axisscale:"&",y2axisdomain:"&",y2axisrange:"&",y2axisrangeband:"&",y2axisrangebands:"&",y2axisshowmaxmin:"@",y2axishighlightzero:"@",y2axisrotatelables:"@",y2axisrotateylabel:"@",y2axisstaggerlabels:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.linePlusBarChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l[0]}:e.x()).y(c.y===undefined?function(l){return l[1]}:e.y()).showLegend(c.showlegend===undefined?false:(c.showlegend==="true")).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata).color(c.color===undefined?nv.utils.defaultColor():e.color());if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}configureXaxis(i,e,c);configureY1axis(i,e,c);configureY2axis(i,e,c);processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3LineWithFocusChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",showlegend:"@",tooltips:"@",showxaxis:"@",showyaxis:"@",rightalignyaxis:"@",defaultstate:"@",nodata:"@",margin:"&",margin2:"&",tooltipcontent:"&",color:"&",x:"&",y:"&",clipvoronoi:"@",interpolate:"@",xaxisorient:"&",xaxisticks:"&",xaxistickvalues:"&xaxistickvalues",xaxisticksubdivide:"&",xaxisticksize:"&",xaxistickpadding:"&",xaxistickformat:"&",xaxislabel:"@",xaxisscale:"&",xaxisdomain:"&",xaxisrange:"&",xaxisrangeband:"&",xaxisrangebands:"&",xaxisshowmaxmin:"@",xaxishighlightzero:"@",xaxisrotatelables:"@",xaxisrotateylabel:"@",xaxisstaggerlabels:"@",yaxisorient:"&",yaxisticks:"&",yaxistickvalues:"&yaxistickvalues",yaxisticksubdivide:"&",yaxisticksize:"&",yaxistickpadding:"&",yaxistickformat:"&",yaxislabel:"@",yaxisscale:"&",yaxisdomain:"&",yaxisrange:"&",yaxisrangeband:"&",yaxisrangebands:"&",yaxisshowmaxmin:"@",yaxishighlightzero:"@",yaxisrotatelables:"@",yaxisrotateylabel:"@",yaxisstaggerlabels:"@",y2axisorient:"&",y2axisticks:"&",y2axistickvalues:"&",y2axisticksubdivide:"&",y2axisticksize:"&",y2axistickpadding:"&",y2axistickformat:"&",y2axislabel:"&",y2axisscale:"&",y2axisdomain:"&",y2axisrange:"&",y2axisrangeband:"&",y2axisrangebands:"&",y2axisshowmaxmin:"@",y2axishighlightzero:"@",y2axisrotatelables:"@",y2axisrotateylabel:"@",y2axisstaggerlabels:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.lineWithFocusChart().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l[0]}:e.x()).y(c.y===undefined?function(l){return l[1]}:e.y()).showLegend(c.showlegend===undefined?false:(c.showlegend==="true")).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata);if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}configureXaxis(i,e,c);configureY1axis(i,e,c);configureY2axis(i,e,c);processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3BulletChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",margin:"&",tooltips:"@",tooltipcontent:"&",orient:"@",ranges:"&",markers:"&",measures:"&",tickformat:"&",nodata:"@",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.bulletChart().width(e.width).height(e.height).margin(k).orient(c.orient===undefined?"left":c.orient).tickFormat(c.tickformat===undefined?null:e.tickformat()).tooltips(c.tooltips===undefined?false:(c.tooltips==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata);if(c.tooltipcontent){i.tooltipContent(e.tooltipcontent())}processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]).directive("nvd3SparklineChart",["$window","$timeout",function(b,a){return{restrict:"E",scope:{data:"=",width:"@",height:"@",id:"@",margin:"&",x:"&",y:"&",color:"&",xscale:"&",yscale:"&",showvalue:"@",alignvalue:"@",rightalignvalue:"@",nodata:"@",xaxistickformat:"&",yaxistickformat:"&",objectequality:"@",transitionduration:"@"},controller:["$scope","$element","$attrs",function(e,d,c){e.d3Call=function(g,f){d3.select("#"+c.id+" svg").attr("height",e.height).attr("width",e.width).datum(g).transition().duration((c.transitionduration===undefined?250:(+c.transitionduration))).call(f)}}],link:function(e,d,c){e.$watch("data",function(f){if(f){if(e.chart){return e.d3Call(f,e.chart)}nv.addGraph({generate:function(){var k=setupDimensions(e,c,d);var i=nv.models.sparklinePlus().width(e.width).height(e.height).margin(k).x(c.x===undefined?function(l){return l.x}:e.x()).y(c.y===undefined?function(l){return l.y}:e.y()).color(c.color===undefined?nv.utils.getColor(["#000"]):e.color()).showValue(c.showvalue===undefined?true:(c.showvalue==="true")).alignValue(c.alignvalue===undefined?true:(c.alignvalue==="true")).rightAlignValue(c.rightalignvalue===undefined?false:(c.rightalignvalue==="true")).noData(c.nodata===undefined?"No Data Available.":e.nodata);if(c.xScale){i.xScale(e.xScale())}if(c.yScale){i.yScale(e.yScale())}configureXaxis(i,e,c);configureYaxis(i,e,c);processEvents(i,e);e.d3Call(f,i);var j=function(){var m=parseInt(d3.select("#"+c.id+" svg").attr("width"),10),o=parseInt(d3.select("#"+c.id+" svg").attr("height"),10),n=(c.width||d[0].parentElement.offsetWidth)-(k.left+k.right),l=(c.height||d[0].parentElement.offsetHeight)-(k.top+k.bottom);if(n===m&&l===o){return}d3.select("#"+c.id+" svg").node().remove();i.width(n).height(l);d3.select(d[0]).append("svg").attr("id",c.id).attr("width",n).attr("height",l).datum(f).transition().duration(500).call(i)};var h;var g=function(){a.cancel(h);h=a(j,100)};b.addEventListener("resize",g);e.chart=i;return i}})}},(c.objectequality===undefined?false:(c.objectequality==="true")))}}}]);