$((function(e){"use strict";new Morris.Area({element:"morrisBar2",data:[{x:"2010 Q4",y:3,z:7},{x:"2011 Q1",y:3,z:4},{x:"2011 Q2",y:null,z:1},{x:"2011 Q3",y:2,z:5},{x:"2011 Q4",y:8,z:2},{x:"2012 Q1",y:4,z:4}],xkey:"x",ykeys:["y","z"],lineColors:["#6c5ffc","#05c3fb"],labels:["Y","Z"],resize:!0}).on("click",(function(e,r){console.log(e,r)})),new Morris.Area({element:"morrisBar3",behaveLikeLine:!0,data:[{x:"2011 Q1",y:3,z:3},{x:"2011 Q2",y:2,z:1},{x:"2011 Q3",y:2,z:4},{x:"2011 Q4",y:3,z:3}],xkey:"x",ykeys:["y","z"],lineColors:["#6c5ffc","#05c3fb"],labels:["Y","Z"],resize:!0}),new Morris.Bar({element:"morrisBar4",data:[{x:"2011 Q1",y:0},{x:"2011 Q2",y:1},{x:"2011 Q3",y:2},{x:"2011 Q4",y:3},{x:"2012 Q1",y:4},{x:"2012 Q2",y:5},{x:"2012 Q3",y:6},{x:"2012 Q4",y:7},{x:"2013 Q1",y:8}],xkey:"x",ykeys:["y"],labels:["Y"],barColors:function(e,r,o){return"bar"===o?(Math.ceil(0*e.y/this.ymax),"#6c5ffc"):"#000"}});var r=[{period:"Jan",licensed:3407,sorned:660},{period:"Feb",licensed:3351,sorned:629},{period:"Mar",licensed:3269,sorned:618},{period:"Apr",licensed:3246,sorned:661},{period:"May",licensed:3257,sorned:667},{period:"June",licensed:3248,sorned:627},{period:"July",licensed:3171,sorned:660},{period:"Aug",licensed:3171,sorned:676},{period:"Sept",licensed:3201,sorned:656},{period:"Oct",licensed:3215,sorned:622}];new Morris.Bar({element:"morrisBar5",data:r,xkey:"period",ykeys:["licensed","sorned"],labels:["Licensed","SORN"],barColors:["#6c5ffc","#05c3fb"],xLabelAngle:0,resize:!0});var o=0;function a(e){for(var r=[],o=0;o<=360;o+=10){var a=(e+o)%360;r.push({x:o,y:Math.sin(Math.PI*a/180).toFixed(4),z:Math.cos(Math.PI*a/180).toFixed(4)})}return r}var l=Morris.Line({element:"morrisBar6",data:a(0),xkey:"x",ykeys:["y","z"],labels:["data1","data2"],lineColors:["#6c5ffc","#05c3fb"],parseTime:!1,ymin:-1,ymax:1,hideHover:!0,resize:!0});setInterval((function(){o++,l.setData(a(5*o)),$("#reloadStatus").text(o+" reloads")}),100),r=[{period:"2012-10-01",licensed:3407,sorned:660},{period:"2012-09-30",licensed:3351,sorned:629},{period:"2012-09-29",licensed:3269,sorned:618},{period:"2012-09-20",licensed:3246,sorned:661},{period:"2012-09-19",licensed:3257,sorned:667},{period:"2012-09-18",licensed:3248,sorned:627},{period:"2012-09-17",licensed:3171,sorned:660},{period:"2012-09-16",licensed:3171,sorned:676},{period:"2012-09-15",licensed:3201,sorned:656},{period:"2012-09-10",licensed:3215,sorned:622}],new Morris.Line({element:"morrisBar7",data:r,xkey:"period",ykeys:["licensed","sorned"],labels:["Licensed","SORN"],lineColors:["#6c5ffc","#05c3fb"],resize:!0}),new Morris.Donut({element:"morrisBar8",data:[{value:50,label:"data1"},{value:35,label:"data2"},{value:10,label:"data3"}],backgroundColor:"rgba(119, 119, 142, 0.2)",labelColor:"#77778e",colors:["#6c5ffc","#05c3fb","#09ad95"],resize:!0,formatter:function(e){return e+"%"}}).on("click",(function(e,r){console.log(e,r)})),new Morris.Donut({element:"morrisBar9",data:[{value:35,label:"data1"},{value:25,label:"data2"},{value:15,label:"data3"},{value:15,label:"data4"},{value:10,label:"data5"},{value:10,label:"data6"}],backgroundColor:"rgba(119, 119, 142, 0.2)",labelColor:"#77778e",resize:!0,colors:["#6c5ffc","#05c3fb","#09ad95","#1170e4","#f82649","#f7b731"],formatter:function(e){return e+"%"}})}));