function ScatterPlot(){return Highcharts.chart("container_ScatterPlot",{chart:{type:"bubble",plotBorderWidth:1,zoomType:"xy",panning:!0,panKey:"shift",width:800},subtitle:{text:""},title:{text:"",style:{fontColor:"#444444",fontWeight:"bold"}},xAxis:{title:{style:{fontWeight:"bold"}},gridLineWidth:1,startOnTick:!1,endOnTick:!1},yAxis:{title:{style:{fontWeight:"bold"}},gridLineWidth:1,startOnTick:!1,endOnTick:!1},plotOptions:{bubble:{minSize:1,maxSize:25}},tooltip:{useHTML:!0,style:{pointerEvents:"auto"},formatter:function(){return addToolTip(this.point,this.point.series.xAxis.axisTitle.textStr,this.point.series.yAxis.axisTitle.textStr)}},responsive:{rules:[{condition:{minWidth:"800px",maxWidth:"800px"},chartOptions:{}}]},exporting:[{enabled:!1}]})}function MakePieChart_Demographics(n,t,i,r,u,f,e,o,s,h){$("[id^=pie_]").each(function(){var c=this.id;c.indexOf("Race")!==-1&&($(this).attr("data-categories",n),$(this).attr("data-percent",t));c.indexOf("Gender")!==-1&&($(this).attr("data-categories",i),$(this).attr("data-percent",r));c.indexOf("ELL")!==-1&&($(this).attr("data-categories",u),$(this).attr("data-percent",f));c.indexOf("IEP")!==-1&&($(this).attr("data-categories",e),$(this).attr("data-percent",o));c.indexOf("FRL")!==-1&&($(this).attr("data-categories",s),$(this).attr("data-percent",h))});$("[id^=pie_]").each(function(){for(var r=$(this).attr("data-categories").split(", "),u=$(this).attr("data-percent").split(", ").map(Number),i=[],t=0,n=0;n<r.length;n++)i[n]={name:r[n],y:u[n]},t=t+u[n];return t<100&&(i[n]={name:"Other",y:100-t}),Highcharts.chart(this.id,{colors:["#729bc3","#dde8f2","#90ee7e","#7798BF","#aaeeee","#ff0066","#eeaaee","#55BF3B","#DF5353","#7798BF","#aaeeee"],chart:{plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1,type:"pie"},title:{text:null},tooltip:{enabled:!1},legend:{labelFormatter:function(){var i=this.name.split(/[\s]+/),t=[],n;for(n in i)n>0&&n%1==0&&t.push("<br>"),t.push(i[n]);return t.join(" ")}},plotOptions:{pie:{dataLabels:{distance:0,enabled:!1},showInLegend:!0,allowPointSelect:!1,point:{events:{legendItemClick:function(n){n.preventDefault()}}}}},series:[{colorByPoint:!0,data:i,states:{hover:{enabled:!1}}}],exporting:[{enabled:!1}]})})}function DonutChart(n,t,i,r,u,f,e){var o="#729bc3",s="#dde8f2";$("[id^="+n+"]").each(function(){var h=parseFloat(t),n=[{name:h,y:t,color:o},{name:"Remaining",y:i,color:s}],c={chart:{renderTo:this,spacing:[0,0,0,0],type:"pie",fontFamily:"proxima-nova"},credits:{enabled:!1},legend:{enabled:!1},plotOptions:{series:{states:{hover:{enabled:!1}}},pie:{dataLabels:{enabled:!1}}},tooltip:{enabled:!1},series:[{data:n,name:"",size:"100%",innerSize:"75%"}],title:{useHTML:!0,verticalAlign:"middle",align:"center",y:-10,text:'<span class="donutInnerLabelUpper donutInnerLabel">'+n[0].name+"<\/span>"},subtitle:{useHTML:!0,verticalAlign:"middle",align:"center",y:40,text:'<span class="donutInnerLabelLower donutInnerLabel">'+r+"<\/span>"},exporting:[{enabled:!1}]};new Highcharts.Chart(c);$(this).parent().find(".btmDonutChartLabelSpan").text(u);$(this).parent().find(".btmDonutChartLabelSpan2").text(f);$(this).parent().find(".btmDonutChartLabelSpan3").text(e)})}function TrendDonutChart(n,t,i,r,u,f,e){var o="#729bc3",s="#dde8f2";$("[id^="+n+"]").each(function(){var h=parseFloat(t),n=[{name:h,y:t,color:o},{name:"Remaining",y:i,color:s}],c={chart:{renderTo:this,spacing:[0,0,0,0],type:"pie",fontFamily:"proxima-nova"},credits:{enabled:!1},legend:{enabled:!1},plotOptions:{series:{states:{hover:{enabled:!1}}},pie:{dataLabels:{enabled:!1}}},tooltip:{enabled:!1},series:[{data:n,name:"",size:"100%",innerSize:"75%"}],title:{useHTML:!0,verticalAlign:"middle",align:"center",y:-10,text:'<span class="trendDonutInnerLabelUpper donutInnerLabel">'+n[0].name+"<\/span>"},subtitle:{useHTML:!0,verticalAlign:"middle",align:"center",y:30,text:'<span class="trendDonutInnerLabelLower donutInnerLabel">'+r+"<\/span>"},exporting:[{enabled:!1}]};new Highcharts.Chart(c);$(this).parent().find(".btmDonutChartLabelSpan").text(u);$(this).parent().find(".btmDonutChartLabelSpan2").text(f);$(this).parent().find(".btmDonutChartLabelSpan3").text(e)})}function MakeByAreaPerformance(n,t,i,r,u){var l="#729bc3",a="#dde8f2",b,k,c;u==="alt1"&&(l="#f78c20",a="#ffe6cc");for(var v=[],h=[],o="",s="",y=[],e=[],f=0;f<i;f++){var d=t[f].Yval,g=t[f].Xval,p=t[f].XvalLink,w=t[f].XvalHelp,nt=t[f].StateAverage;o===""?o="{"+p:o+=","+p;s===""?s="{"+w:s+=","+w;v.push(g);h.push(d);y.push(100);e.push(nt)}return o=o+"}",b=JSON.parse(o),s=s+"}",k=JSON.parse(s),c=Highcharts.chart(n,{tooltip:{enabled:!1},chart:{type:"bar",style:{fontFamily:"proxima-nova,"}},title:{text:" "},xAxis:[{categories:v,lineWidth:0,labels:{formatter:function(){return'<a href="'+b[this.value]+'">'+this.value+'<\/a> <img src="../Content/images/tooltip.png" class="popoverhelptext chartpopover" alt="help" data-toggle="popover" title="'+this.value+'" data-content="'+k[this.value]+'">'},style:{fontFamily:"proxima-nova",fontSize:"16px",color:"#333","min-width":"300px"},useHTML:!0,align:"left",reserveSpace:!0},minorTickLength:0,tickLength:0},{opposite:!0,linkedTo:0,categories:h,labels:{style:{fontSize:"16px",color:"#333",fontFamily:"proxima-nova"}},minorTickLength:0,tickLength:0,lineWidth:0}],yAxis:{min:0,max:100,lineWidth:0,gridLineWidth:0,minorGridLineWidth:0,opposite:!0,title:{enabled:!1},labels:{enabled:!0,step:2,style:{fontSize:"16px",color:"#333"}}},legend:{itemStyle:{color:"#000000",fontWeight:"bold",fontSize:"18px",fontFamily:"proxima-nova"}},plotOptions:{series:{maxPointWidth:35,stacking:"bar",events:{legendItemClick:function(n){n.preventDefault()}}}},series:[{name:"background filler",data:y,showInLegend:!1,color:a,states:{hover:{enabled:!1}}},{name:"actual value",data:h,showInLegend:!1,color:l,states:{hover:{enabled:!1}}}],responsive:{rules:[{condition:{maxWidth:400},chartOptions:{}}]},exporting:[{enabled:!1}]}),r&&e!==0&&e!==null&&e!==""&&Array.isArray(e)&&e.length>0&&c.addSeries({type:"line",name:"State Average",data:e,showInLegend:!0,dataLabels:{enabled:!0,verticalAlign:"bottom",align:"right",style:{textOutline:!1},x:15,y:35},lineWidth:0,marker:{symbol:"diamond",fillColor:"#000000"},states:{hover:{enabled:!1}}}),c}function MakeByAreaPerformance1(n,t,i,r,u){var l="#729bc3",a="#dde8f2",b,k,c;u==="alt1"&&(l="#f78c20",a="#ffe6cc");for(var v=[],h=[],o="",s="",y=[],e=[],f=0;f<i;f++){var d=t[f].Yval,g=t[f].Xval,p=t[f].XvalLink,w=t[f].XvalHelp,nt=t[f].StateAverage;o===""?o="{"+p:o+=","+p;s===""?s="{"+w:s+=","+w;v.push(g);h.push(d);y.push(100);e.push(nt)}return o=o+"}",b=JSON.parse(o),s=s+"}",k=JSON.parse(s),c=Highcharts.chart(n,{tooltip:{enabled:!1},chart:{type:"bar",style:{fontFamily:"proxima-nova,"}},title:{text:" "},xAxis:[{categories:v,lineWidth:0,labels:{formatter:function(){return'<a href="'+b[this.value]+'">'+this.value+'<\/a> <img src="../Content/images/tooltip.png" class="popoverhelptext chartpopover" alt="help" data-toggle="popover" title="'+this.value+'" data-content="'+k[this.value]+'">'},style:{fontFamily:"proxima-nova",fontSize:"16px",color:"#333","min-width":"300px"},useHTML:!0,align:"left",reserveSpace:!0},minorTickLength:0,tickLength:0},{opposite:!0,linkedTo:0,categories:h,labels:{style:{fontSize:"16px",color:"#333",fontFamily:"proxima-nova"}},minorTickLength:0,tickLength:0,lineWidth:0}],yAxis:{min:0,max:100,lineWidth:0,gridLineWidth:0,minorGridLineWidth:0,opposite:!0,title:{enabled:!1},labels:{enabled:!0,step:2,style:{fontSize:"16px",color:"#333"}}},legend:{itemStyle:{color:"#000000",fontWeight:"bold",fontSize:"18px",fontFamily:"proxima-nova"}},plotOptions:{series:{maxPointWidth:35,stacking:"normal",events:{legendItemClick:function(n){n.preventDefault()}}}},series:[{name:"background filler",data:y,showInLegend:!1,color:a,states:{hover:{enabled:!1}}},{name:"actual value",data:h,showInLegend:!1,color:l,states:{hover:{enabled:!1}}}],responsive:{rules:[{condition:{maxWidth:400},chartOptions:{}}]},exporting:[{enabled:!1}]}),r&&e!==0&&e!==null&&e!==""&&Array.isArray(e)&&e.length>0&&c.addSeries({type:"line",name:"State Average",data:e,showInLegend:!0,dataLabels:{enabled:!0,verticalAlign:"bottom",align:"right",style:{textOutline:!1},x:15,y:35},lineWidth:0,marker:{symbol:"diamond",fillColor:"#000000"},states:{hover:{enabled:!1}}}),c}function MakeByProgram(n){$("[id^=bar_ByProgram]").each(function(){for(var o=$(this).attr("data-categories").split(", "),u=$(this).attr("data-percent").split(", ").map(Number),t=parseInt($(this).attr("data-ticks")),s=!t,f=[],i=$(this).attr("data-stateaverage").split(", ").map(Number),e,r=0;r<u.length;r++)f[r]=100-u[r];t=Boolean(t);e=Highcharts.chart(this.id,{chart:{type:"bar"},fontFamily:"proxima-nova",fontWeight:700,color:"#001c48",title:{text:null},tooltip:{enabled:!1},xAxis:[{lineWidth:0,tickLength:0,categories:o,labels:{enabled:t,style:{fontSize:"16px",fontFamily:"proxima-nova",fontWeight:700,color:"#001c48"}}},{lineWidth:0,tickLength:0,opposite:!0,categories:u,labels:{enabled:t,style:{fontSize:"16px",fontFamily:"proxima-nova",fontWeight:700,color:"#001c48"}}}],yAxis:{min:0,max:100,opposite:!0,title:{enabled:!1},stackLabels:{enabled:s,formatter:function(){return'<div class="barLabel">'+this.axis.chart.xAxis[0].categories[this.x]+"<\/div>"},useHTML:!0,verticalAlign:"top",align:"left",y:-10,style:{fontSize:"16px",fontFamily:"proxima-nova"}},labels:{enabled:t},gridLineWidth:0},legend:{itemStyle:{color:"#000000",fontWeight:"bold",fontSize:"18px",fontFamily:"proxima-nova"}},plotOptions:{series:{maxPointWidth:35,stacking:"normal",dataLabels:{enabled:!1},events:{legendItemClick:function(n){n.preventDefault()}}}},series:[{name:"background fller",data:f,showInLegend:!1,animation:!1,dataLabels:{enabled:!1},color:"#dde8f2",states:{hover:{enabled:!1}}},{type:"bar",name:"actual value",data:u,showInLegend:!1,color:"#729bc3",dataLabels:{verticalAlign:"top",enabled:!0,align:"left",style:{textOutline:!1,color:"#000000",fontWeight:"bold",fontSize:"16px",fontFamily:"proxima-nova"},y:3},states:{hover:{enabled:!1}}}],responsive:{rules:[{condition:{maxWidth:400},chartOptions:{}}]}});n&&i!==0&&i!==null&&i!==""&&Array.isArray(i)&&i.length>0&&e.addSeries({type:"line",name:"State Average",data:i,showInLegend:!0,dataLabels:{enabled:!0,verticalAlign:"bottom",align:"right",style:{textOutline:!1},x:15,y:35},lineWidth:0,marker:{symbol:"diamond",fillColor:"#000000"},states:{hover:{enabled:!1}}})})}function MakeByAllStudents(n,t){for(var u=[],f=[],r=[],e,o,i=0;i<t;i++)e=n[i].Yval,o=n[i].Xval,u.push(o),r.push(e),f.push(100);return Highcharts.chart("barChart1",{tooltip:{enabled:!1},chart:{type:"bar",style:{fontFamily:"proxima-nova"}},title:{text:" "},xAxis:[{categories:u,lineWidth:0,labels:{style:{fontSize:"16px",color:"#333"},align:"left",reserveSpace:!0},minorTickLength:0,tickLength:0},{opposite:!0,linkedTo:0,categories:r,labels:{style:{fontSize:"16px",color:"#333"}},minorTickLength:0,tickLength:0}],yAxis:{min:0,max:100,lineWidth:0,gridLineWidth:0,minorGridLineWidth:0,opposite:!0,categories:"",title:{enabled:!1},labels:{enabled:!0,step:2,style:{fontSize:"16px",color:"#333"}}},legend:{enabled:!1},plotOptions:{bar:{grouping:!1},series:{maxPointWidth:35}},series:[{name:"background filler",data:f,animation:!1,color:"#dde8f2",states:{hover:{enabled:!1}}},{name:"actual value",data:r,dataLabels:{enabled:!1,inside:!0,align:"left",crop:!1,defer:!1,format:"{point.category}",style:{color:"#333",textOutline:"0px #333",fontWeight:"normal",fontSize:"16px",y:-40}},color:"#729bc3",states:{hover:{enabled:!1}}}],responsive:{rules:[{condition:{},chartOptions:{}}]},exporting:[{enabled:!1}]})}function MakeByDomain(n){$("[id^=bar_Domain_]").each(function(){for(var o=$(this).attr("data-categories").split(", "),u=$(this).attr("data-percent").split(", ").map(Number),t=parseInt($(this).attr("data-ticks")),s=!t,f=[],i=$(this).attr("data-stateaverage").split(", ").map(Number),e,r=0;r<u.length;r++)f[r]=100-u[r];t=Boolean(t);e=Highcharts.chart(this.id,{chart:{type:"bar"},fontFamily:"proxima-nova",fontWeight:700,color:"#001c48",title:{text:null},tooltip:{enabled:!1},xAxis:[{lineWidth:0,tickLength:0,categories:o,labels:{enabled:t,style:{fontSize:"16px",fontFamily:"proxima-nova",fontWeight:700,color:"#001c48"}}},{lineWidth:0,tickLength:0,opposite:!0,categories:u,labels:{enabled:t,style:{fontSize:"16px",fontFamily:"proxima-nova",fontWeight:700,color:"#001c48"}}}],yAxis:{min:0,max:100,opposite:!0,title:{enabled:!1},stackLabels:{enabled:s,formatter:function(){return'<div class="barLabel">'+this.axis.chart.xAxis[0].categories[this.x]+"<\/div>"},useHTML:!0,verticalAlign:"top",align:"left",y:-10,style:{fontSize:"16px",fontFamily:"proxima-nova"}},labels:{enabled:t},gridLineWidth:0},legend:{itemStyle:{color:"#000000",fontWeight:"bold",fontSize:"18px",fontFamily:"proxima-nova"}},plotOptions:{series:{maxPointWidth:35,stacking:"normal",dataLabels:{enabled:!1},events:{legendItemClick:function(n){n.preventDefault()}}}},series:[{name:"background fller",data:f,showInLegend:!1,animation:!1,dataLabels:{enabled:!1},color:"#dde8f2",states:{hover:{enabled:!1}}},{type:"bar",name:"actual value",data:u,showInLegend:!1,color:"#729bc3",dataLabels:{verticalAlign:"top",enabled:!0,align:"left",style:{textOutline:!1,color:"#000000",fontWeight:"bold",fontSize:"16px",fontFamily:"proxima-nova"},y:3},states:{hover:{enabled:!1}}}],responsive:{rules:[{condition:{maxWidth:400},chartOptions:{}}]}});n&&i!==0&&i!==null&&i!==""&&Array.isArray(i)&&i.length>0&&e.addSeries({type:"line",name:"State Average",data:i,showInLegend:!0,dataLabels:{enabled:!0,verticalAlign:"bottom",align:"right",style:{textOutline:!1},x:15,y:35},lineWidth:0,marker:{symbol:"diamond",fillColor:"#000000"},states:{hover:{enabled:!1}}})})}function MakeByGradRate(n){$("[id^=bar_GradRate]").each(function(){for(var o=$(this).attr("data-categories").split(", "),u=$(this).attr("data-percent").split(", ").map(Number),t=parseInt($(this).attr("data-ticks")),s=!t,f=[],i=$(this).attr("data-stateaverage").split(", ").map(Number),e,r=0;r<u.length;r++)f[r]=100-u[r];t=Boolean(t);e=Highcharts.chart(this.id,{chart:{animation:!1,type:"bar"},animation:{enabled:!1},title:{text:null},style:{fontSize:"16px",fontFamily:"proxima-nova",fontWeight:700,color:"#001c48"},tooltip:{enabled:!1},xAxis:[{lineWidth:0,tickLength:0,categories:o,labels:{enabled:t,style:{fontSize:"16px",fontFamily:"proxima-nova",fontWeight:700,color:"#001c48"}}},{lineWidth:0,tickLength:0,opposite:!0,categories:u,labels:{enabled:t,style:{fontSize:"16px",fontFamily:"proxima-nova",fontWeight:700,color:"#001c48"}}}],yAxis:{min:0,max:100,opposite:!0,title:{enabled:!1},stackLabels:{enabled:s,formatter:function(){return'<div class="barLabel">'+this.axis.chart.xAxis[0].categories[this.x]+"<\/div>"},useHTML:!0,verticalAlign:"top",align:"left",y:-10,style:{fontSize:"16px",fontFamily:"proxima-nova"}},labels:{enabled:t},lineWidth:0,gridLineWidth:0},legend:{itemStyle:{color:"#000000",fontWeight:"bold",fontSize:"18px",fontFamily:"proxima-nova",cursor:"default"}},plotOptions:{bar:{grouping:!1},series:{maxPointWidth:35,stacking:"normal",dataLabels:{enabled:!1}}},series:[{type:"bar",name:"background filler",data:f,showInLegend:!1,animation:!1,dataLabels:{enabled:!1},color:"#dde8f2",states:{hover:{enabled:!1}}},{type:"bar",name:"actual value",data:u,showInLegend:!1,color:"#729bc3",dataLabels:{verticalAlign:"top",enabled:!0,align:"left",style:{textOutline:!1,color:"#000000",fontWeight:"bold",fontSize:"16px",fontFamily:"proxima-nova"},x:2,y:3},states:{hover:{enabled:!1}}}],responsive:{rules:[{condition:{maxWidth:400},chartOptions:{}}]}});n&&i!==0&&i!==null&&i!==""&&Array.isArray(i)&&i.length>0&&e.addSeries({type:"line",name:"State Average",data:i,showInLegend:!0,dataLabels:{enabled:!0,verticalAlign:"bottom",align:"right",style:{textOutline:!1},x:15,y:35},lineWidth:0,marker:{symbol:"diamond",fillColor:"#000000"},states:{hover:{enabled:!1}}})})}function MakeByGrade(){$("[id^=bar_ByGrade]").each(function(){for(var u=$(this).attr("data-categories").split(", "),i=$(this).attr("data-percent").split(", ").map(Number),n=parseInt($(this).attr("data-ticks")),f=!n,r=[],t=0;t<i.length;t++)r[t]=350-i[t];return n=Boolean(n),Highcharts.chart(this.id,{chart:{type:"bar"},fontFamily:"proxima-nova",fontWeight:700,color:"#001c48",title:{text:null},tooltip:{enabled:!1},xAxis:[{lineWidth:0,tickLength:0,categories:u,labels:{enabled:n,style:{fontSize:"16px",fontFamily:"proxima-nova",fontWeight:700,color:"#001c48"}}},{lineWidth:0,tickLength:0,opposite:!0,categories:i,labels:{enabled:n,style:{fontSize:"16px",fontFamily:"proxima-nova",fontWeight:700,color:"#001c48"}}}],yAxis:{min:0,max:350,opposite:!0,title:{enabled:!1},stackLabels:{enabled:f,formatter:function(){return'<div class="barLabel">'+this.axis.chart.xAxis[0].categories[this.x]+"<\/div>"},useHTML:!0,verticalAlign:"top",align:"left",y:-10,style:{fontSize:"16px",fontFamily:"proxima-nova"}},labels:{enabled:n},gridLineWidth:0},legend:{itemStyle:{color:"#000000",fontWeight:"bold",fontSize:"18px",fontFamily:"proxima-nova"}},plotOptions:{series:{maxPointWidth:35,stacking:"normal",dataLabels:{enabled:!1}}},series:[{name:"background fller",data:r,showInLegend:!1,animation:!1,dataLabels:{enabled:!1},color:"#dde8f2",states:{hover:{enabled:!1}}},{type:"bar",name:"actual value",data:i,showInLegend:!1,color:"#729bc3",dataLabels:{verticalAlign:"top",enabled:!0,align:"left",style:{textOutline:!1,color:"#000000",fontWeight:"bold",fontSize:"16px",fontFamily:"proxima-nova"},y:3},states:{hover:{enabled:!1}}}],responsive:{rules:[{condition:{maxWidth:400},chartOptions:{}}]}})})}function MakeByGap(){$("[id^=bar_]").each(function(){for(var u=$(this).attr("data-categories").split(", "),i=$(this).attr("data-percent").split(", ").map(Number),n=parseInt($(this).attr("data-ticks")),f=!n,r=[],t=0;t<i.length;t++)r[t]=100-i[t];return n=Boolean(n),Highcharts.chart(this.id,{tooltip:{enabled:!1},title:{text:null},xAxis:[{lineWidth:0,tickLength:0,categories:u,labels:{enabled:n}},{lineWidth:0,tickLength:0,opposite:!0,categories:i}],yAxis:{min:0,max:100,opposite:!0,title:{enabled:!1},stackLabels:{enabled:f,formatter:function(){return'<div class="barLabel">'+this.axis.chart.xAxis[0].categories[this.x]+"<\/div>"},useHTML:!0,verticalAlign:"top",align:"left",y:-10,style:{fontSize:"16px",fontFamily:"proxima-nova"}},labels:{enabled:n},lineWidth:0,gridLineWidth:0},plotOptions:{bar:{grouping:!1},series:{maxPointWidth:35,stacking:"normal",dataLabels:{enabled:!1}}},series:[{type:"bar",name:"background filler",data:r,showInLegend:!1,animation:!1,dataLabels:{enabled:!1},color:"#dde8f2",states:{hover:{enabled:!1}}},{type:"bar",name:"actual value",data:i,showInLegend:!1,color:"#729bc3",dataLabels:{verticalAlign:"top",enabled:!0,align:"left",style:{textOutline:!1,color:"#000000",fontWeight:"bold",fontSize:"16px",fontFamily:"proxima-nova"},x:2,y:3},states:{hover:{enabled:!1}}}],responsive:{rules:[{condition:{maxWidth:400}}]},exporting:[{enabled:!1}]})})}function MakeByGapNeg(){$("[id^=barneg_]").each(function(){var n=$(this).attr("data-categories").split(", "),t=$(this).attr("data-percent").split(", ").map(Number);return Highcharts.chart(this.id,{chart:{type:"bar",fontFamily:"proxima-nova"},title:{text:null},plotOptions:{series:{maxPointWidth:35,stacking:"normal"},bar:{dataLabels:{enabled:!0,inside:!0,y:-30}}},tooltip:{enabled:!1},xAxis:[{lineWidth:0,minorGridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0,labels:{enabled:!1},categories:n},{lineWidth:0,minorGridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0,opposite:!0,reversed:!0,labels:{enabled:!1}}],yAxis:{lineWidth:0,minorGridLineWidth:0,gridLineWidth:0,lineColor:"transparent",minorTickLength:0,tickLength:0,title:{text:null},labels:{enabled:!1},plotLines:[{color:"#729bc3",width:2,value:0}]},legend:{enabled:!1},series:[{name:"Information",states:{hover:{enabled:!1}},color:"#729bc3",data:t,dataLabels:{enabled:!0,color:"#001c48",format:"{x}  {y}",style:{fontSize:"16px",fontFamily:"proxima-nova"}}}]})})}function MakeByCategory(n,t,i,r,u,f,e,o,s){$("#"+n).each(function(){var n,w,v,h,c,l;Highcharts.setOptions({lang:{thousandsSep:","}});n=$(this).attr("data-categories").split(",");w=$(this).attr("data-categories").indexOf("<\/span>");w>0&&(n=$(this).attr("data-categories").split("<\/span>,"));var p=$(this).attr("data-percent").split(",").map(Number),a=parseInt($(this).attr("data-ticks")),g=!a,b=[];if((typeof t=="undefined"||t==="")&&(t=100),typeof i!="undefined"&&i!==""&&i===!0)for(v=0;v<p.length;v++)b[v]=t-p[v];a=Boolean(a);h=90*n.length;n.length===1&&(h=210*n.length);n.length===2&&(h=175*n.length);n.length===3&&(h=125*n.length);n.length===4&&(h=110*n.length);n.length===5&&(h=110*n.length);n.length===6&&(h=100*n.length);n.length===7&&(h=100*n.length);n.length===8&&(h=100*n.length);n.length===9&&(h=100*n.length);h=h+"px";var k=Highcharts.chart(this.id,{chart:{type:"bar",height:h},title:{text:o,style:{fontFamily:"proxima-nova"}},subtitle:{text:s,style:{fontFamily:"proxima-nova",fontSize:"14px"}},tooltip:{enabled:!1},xAxis:[{categories:n,lineWidth:0,tickLength:0,labels:{enabled:a}},{lineWidth:0,tickLength:0,opposite:!1,categories:p}],yAxis:{min:0,max:t,opposite:!0,color:"url(#highcharts-default-pattern-0)",title:{enabled:!1},stackLabels:{enabled:g,formatter:function(){return'<div class="barLabel">'+this.axis.chart.xAxis[0].categories[this.x]+"<\/div>"},useHTML:!0,verticalAlign:"top",align:"left",y:-10,style:{fontSize:"16px",fontFamily:"proxima-nova"}},labels:{enabled:a},gridLineWidth:0},legend:{itemStyle:{color:"#000000",fontWeight:"bold",fontSize:"18px",fontFamily:"proxima-nova"}},plotOptions:{series:{pointWidth:35,stacking:"normal",dataLabels:{enabled:!1},events:{legendItemClick:function(n){n.preventDefault()}}}},series:[{name:"Remining Filler",data:b,showInLegend:!1,animation:!1,dataLabels:{enabled:!1},color:"#dde8f2",states:{hover:{enabled:!1}}},{type:"bar",name:"Main Value",data:p,showInLegend:!1,color:"#729bc3",dataLabels:{verticalAlign:"top",enabled:!0,align:"left",style:{textOutline:!1,color:"#000000",fontWeight:"bold",fontSize:"16px",fontFamily:"proxima-nova"},y:3},states:{hover:{enabled:!1}}}],responsive:{rules:[{condition:{maxWidth:400},chartOptions:{}}]},exporting:{buttons:{contextButton:{enabled:!1}}},defs:{hatchLeft:{tagName:"pattern",id:"hatch-left",patternUnits:"userSpaceOnUse",width:4,height:4,children:[{tagName:"path",d:"M-1,1 l2,-2 M0,4 l4,-4 M3,5 l2,-2"}]}}}),y=-.2,d=0;n.length===1&&(y=-.11);n.length===2&&(y=-.13);n.length===3&&(y=-.15);r&&f&&(y=-.15,d=.15);r&&(c=$(this).attr("data-indicator1").split(", ").map(Number),c!==0&&c!==null&&c!==""&&Array.isArray(c)&&c.length>0&&k.addSeries({type:"line",name:u,data:c,stack:1,pointPlacement:y,showInLegend:!0,dataLabels:{enabled:!0,verticalAlign:"top",align:"right",style:{textOutline:!1}},lineWidth:0,marker:{symbol:"diamond",fillColor:"#000000",align:"middle"},states:{hover:{enabled:!1}}}));f&&(l=$(this).attr("data-indicator2").split(", ").map(Number),f===!0&&l!==0&&l!==null&&l!==""&&Array.isArray(l)&&l.length>0&&k.addSeries({type:"line",name:e,data:l,stack:0,pointPlacement:d,showInLegend:!0,dataLabels:{enabled:!0,verticalAlign:"top",align:"right",textOutline:"1 #fff"},lineWidth:0,marker:{symbol:"circle",fillColor:"#fff",lineColor:"#000000",lineWidth:1},states:{hover:{enabled:!1}}}))})}function getSite(n){return getBaseUrl(!0)+n}function getBaseUrl(n){var t=window.location,i="",r;return n?(r=/\blocalhost/g,i=t.host.match(r)!="localhost"?t.protocol+"//"+t.host+"/"+t.pathname.split("/")[1]+"/":t.protocol+"//"+t.host+"/"):i=t.protocol+"//"+t.host+"/",i}function AdjustHeader(){var n=$("#main-nav");$(window).scrollTop()>1?(n.removeClass("spaceforsliver"),n.hasClass("navbar-fixed-top")||n.addClass("navbar-fixed-top")):n.addClass("spaceforsliver")}function getSchoolandDistrictList(n,t){var i=n,r="",u="";$.fn.dataTable.ext.errMode="throw";r=$("#findtarget").DataTable({oLanguage:{sZeroRecords:"No school or district data found",sEmptyTable:"No school or district data found"},destroy:!0,dom:"t",bAutoWidth:!0,fixedHeader:!1,paging:!1,info:!1,ordering:!1,sorting:!1,scrollY:"160px",scrollCollapse:!0,deferRender:!0,ajax:{url:getSite("Home/SchoolLandingPage?y="+i),dataSrc:""},columnDefs:[{className:"dt-left smallerSho",targets:[0]},{className:"dt-left smallerSho",targets:[1]},{className:"noSho",targets:[2]},{className:"noSho",targets:[3]},{className:"noSho",targets:[4]}],columns:[{data:"TARGET",width:"50px"},{data:"DISTRICT",width:"50px"},{data:"KEYID"},{data:"SCHOOLID"},{data:"DISTRICTID"}]});u=$("#findtargetSearch").DataTable({oLanguage:{sZeroRecords:"No school or district data found",sEmptyTable:"No school or district data found"},destroy:!0,dom:"t",bAutoWidth:!0,fixedHeader:!1,paging:!1,info:!1,ordering:!1,sorting:!1,scrollY:"160px",scrollCollapse:!0,deferRender:!0,ajax:{url:getSite("Home/SchoolLandingDataPage?y="+i),dataSrc:""},columnDefs:[{className:"dt-left smallerSho",targets:[0]},{className:"dt-left smallerSho",targets:[1]},{className:"noSho",targets:[2]},{className:"noSho",targets:[3]},{className:"noSho",targets:[4]}],columns:[{data:"TARGET",width:"50px"},{data:"DISTRICT",width:"50px"},{data:"KEYID"},{data:"SCHOOLID"},{data:"DISTRICTID"}]});$("#kickit").click(function(){$(".panel-collapse").collapse("show")});$("#searchIt").html("");$("#searchIt").click(function(){$(".panel-collapse").collapse("hide")});$("#searchIt").focus(function(){$(".panel-collapse").collapse("show")});$("#searchIt").keyup(function(){r.search($(this).val()).draw();u.search($(this).val()).draw()});$("#searchIt").keypress(function(n){if(n.keyCode==13)return n.preventDefault(),!1});$("#closePanelBody").tooltip();$("#closePanelBody").click(function(){$(".panel-collapse").collapse("hide");$("#searchIt").val("")});$("#findtarget tbody").delegate("tr","click",function(){let n=$("td:eq(3)",this).text(),u=$("td:eq(4)",this).text(),f=!1;document.getElementById("forCompare")&&(f=document.getElementById("forCompare").checked);var e=document.getElementById("modalsearcherr");(n.length==0||n=="0"||n==null)&&u.length>0&&u!="0"&&u!=null?f?t==="district"?window.location.assign(getSite("StateDistrictSchool/DistrictCompare?k="+u+"&y="+i)):e.innerHTML="You must select a school to compare.":window.location.assign(getSite("StateDistrictSchool/DistrictSummary?k="+u+"&y="+i)):n.length>0&&n.length!="0"&&n!=null?f?t==="school"?window.location.assign(getSite("StateDistrictSchool/SchoolCompare?k="+n+"&y="+i)):e.innerHTML="You must select a district to compare.":window.location.assign(getSite("StateDistrictSchool/SchoolSummary?k="+n+"&y="+i)):$("#alertModal").modal();r.state.clear()});$("#findtargetSearch tbody").delegate("tr","click",function(){let n=$("td:eq(3)",this).text();window.location.assign(getSite("StateDistrictSchool/SchoolListSummary?k="+n+"&y="+i));oTableTest.state.clear()});$("#viewCompChart").click(function(){let n=!1;if(document.getElementById("forCompare")&&(n=document.getElementById("forCompare").checked),n){var t=document.getElementById("modalsearcherr");return t.innerHTML="You must select a school or district to compare.",!1}});$("#viewStateSummary").click(function(){let n=!1;if(document.getElementById("forCompare")&&(n=document.getElementById("forCompare").checked),n){var t=document.getElementById("modalsearcherr");return t.innerHTML="You must select a school or district to compare.",!1}})}function doPrint(){var n,t,i,r,u;$("#ConvertHtmltoPdf").length?(n=$("#ConvertHtmltoPdf"),t=$("#element1"),i=$("#element2"),r=$("#element3"),u=$("#element4")):(n=document.createElement("form"),n.method="POST",n.action="ConvertHtmltoPdf",n.id="ConvertHtmltoPdf",t=document.createElement("input"),t.setAttribute("type","hidden"),t.classList.add("hidden-compare-inputs"),t.id="element1",t.name="url",n.appendChild(t),i=document.createElement("input"),i.setAttribute("type","hidden"),i.classList.add("hidden-compare-inputs"),i.id="element2",i.name="baseurl",n.appendChild(i),r=document.createElement("input"),r.setAttribute("type","hidden"),r.classList.add("hidden-compare-inputs"),r.id="element3",r.name="webPageWidth",n.appendChild(r),u=document.createElement("input"),u.setAttribute("type","hidden"),u.classList.add("hidden-compare-inputs"),u.id="element4",u.name="webPageHeight",n.appendChild(u),document.body.appendChild(n));t.value=(new XMLSerializer).serializeToString(document);i.value=getBaseUrl(!0);r.value=$(window).width();u.value=$(window).height();n.submit()}function alertPrint(){var n=document.getElementById("printlnk");n.classList.add("chartpopover");n.click();n.classList.remove("chartpopover")}function ConvertKeysToLowerCase(n){var t={};for(let i in n)Object.prototype.toString.apply(n[i])==="[object Object]"?t[i.toLowerCase()]=ConvertKeysToLowerCase(n[i]):Object.prototype.toString.apply(n[i])==="[object Array]"?(t[i.toLowerCase()]=[],t[i.toLowerCase()].push(ConvertKeysToLowerCase(n[i][0]))):t[i.toLowerCase()]=n[i];return t}$(document).ready(function(){AdjustHeader();$(window).scroll(function(){AdjustHeader()});$.fn.attachDragger=function(){var n=!1,t,i,r;$(this).on("mousedown mouseup mousemove",function(u){u.type==="mousedown"&&(n=!0,t=[u.clientX,u.clientY]);u.type==="mouseup"&&(n=!1);u.type=="mousemove"&&n==!0&&(i=[u.clientX,u.clientY],r=[i[0]-t[0],i[1]-t[1]],$(this).scrollLeft($(this).scrollLeft()-r[0]),$(this).scrollTop($(this).scrollTop()-r[1]),t=[u.clientX,u.clientY])});$(window).on("mouseup",function(){n=!1})};$(function(){$('[data-toggle="popover"]').popover({trigger:"hover",container:"body"})});$(document).on("click",".chartpopover",function(){var n,t;$('[data-toggle="popover"]').popover("hide");n=$(this).attr("title");n===""&&(n=$(this).data("original-title"));t=$(this).data("content");$("#modal-title").html(n);$("#modal-content").html(t);$("#toolTipModal").modal("show")});$(document).on("click",".searchmodallink",function(){var t=document.getElementById("current-info-name"),n=document.getElementById("search-modal-orig-name");n&&(n.innerHTML=t.innerHTML);$("#searchModal").modal("show")});$(document).on("click","#printlnk",function(){$("#bs-example-navbar-collapse-1").collapse("hide");doPrint();alertPrint()})});Highcharts.Chart.prototype.viewData=function(){var n,t,i;this.insertedTable?$("#"+this.insertedTableID).toggle():(n=document.createElement("div"),n.className="highcharts-data-table",this.renderTo.parentNode.insertBefore(n,this.renderTo.nextSibling),n.innerHTML=this.getTable(),this.insertedTable=!0,t=(new Date).getTime().toString(),i=Math.floor(Math.random()*1e6).toString(),this.insertedTableID="div_"+t+i,n.id=this.insertedTableID)}