$(window).on("load",(function(){var a=$("#bubble-chart"),r=function(){return(Math.random()>.5?1:-1)*Math.round(100*Math.random())},t={animation:{duration:1e4},datasets:[{label:"Medicine 1",backgroundColor:"#64FFDA",borderColor:"#64FFDA",data:[{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5}]},{label:"Medicine 2",backgroundColor:"#FF4081",borderColor:"#FF4081",data:[{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5}]},{label:"Medicine 3",backgroundColor:"#7C4DFF",borderColor:"#7C4DFF",data:[{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5}]},{label:"Medicine 4",backgroundColor:"#FF6E40",borderColor:"#FF6E40",data:[{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5}]},{label:"Medicine 5",backgroundColor:"#FFFF00",borderColor:"#FFFF00",data:[{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5},{x:r(),y:r(),r:Math.abs(r())/5}]}]},o=new Chart(a,{type:"bubble",options:{responsive:!0,maintainAspectRatio:!1,scales:{xAxes:[{display:!0,gridLines:{color:"#f3f3f3",drawTicks:!1},scaleLabel:{display:!0,labelString:"Month"}}],yAxes:[{display:!0,gridLines:{color:"#f3f3f3",drawTicks:!1},scaleLabel:{display:!0,labelString:"Value"}}]},title:{display:!1,text:"Chart.js Bubble Chart"}},data:t});window.setInterval((function(){Math.random();colors=["#64FFDA","#FF4081","#7C4DFF","#FF6E40","#FFEA00"],$.each(t.datasets,(function(a,t){t.backgroundColor=colors[a],t.borderColor=colors[a],t.data=t.data.map((function(){return{x:r(),y:r(),r:Math.abs(r())/5}}))})),o.update()}),2e3)}));