You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
969 B
6 lines
969 B
/*!
|
|
* stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack)
|
|
* Copyright 2018 PIXINVENT
|
|
* Licensed under the Themeforest Standard Licenses
|
|
*/
|
|
$(window).on("load",function(){var options={series:{pie:{show:!0}},grid:{hoverable:!0,clickable:!0},colors:["#FFC400","#FF7D4D","#FF4558","#626E82","#28D094","#00A5A8"]},data=[{label:"Series1",data:50},{label:"Series2",data:70},{label:"Series3",data:60},{label:"Series4",data:90},{label:"Series5",data:80},{label:"Series6",data:110}],placeholder=$("#interactive-pie-chart");$.plot(placeholder,data,options),placeholder.bind("plothover",function(event,pos,obj){if(obj){var percent=parseFloat(obj.series.percent).toFixed(2);$("#hover").html("<span style='font-weight:bold; color:"+obj.series.color+"'>"+obj.series.label+" ("+percent+"%)</span>")}}),placeholder.bind("plotclick",function(event,pos,obj){obj&&(percent=parseFloat(obj.series.percent).toFixed(2),alert(""+obj.series.label+": "+percent+"%"))})}); |