text: $(window).on("load",function(){var e=$("#interactive-pie-chart");$.plot(e,[{label:"Series1",data:50},{label:"Series2",data:70},{label:"Series3",data:60},{label:"Series4",data:90},{label:"Series5",data:80},{label:"Series6",data:110}],{series:{pie:{show:!0}},grid:{hoverable:!0,clickable:!0},colors:["#FFC400","#FF7D4D","#FF4558","#626E82","#16D39A","#00A5A8"]}),e.bind("plothover",function(e,a,l){if(l){var r=parseFloat(l.series.percent).toFixed(2);$("#hover").html("<span style='font-weight:bold; color:"+l.series.color+"'>"+l.series.label+" ("+r+"%)</span>")}}),e.bind("plotclick",function(e,a,l){l&&(percent=parseFloat(l.series.percent).toFixed(2),alert(l.series.label+": "+percent+"%"))})});