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
1.2 KiB

/*!
* stack-admin-theme (https://pixinvent.com/bootstrap-admin-template/stack)
* Copyright 2018 PIXINVENT
* Licensed under the Themeforest Standard Licenses
*/
$(window).on("load",function(){require.config({paths:{echarts:"../../../app-assets/vendors/js/charts/echarts"}}),require(["echarts","echarts/chart/pie","echarts/chart/funnel"],function(ec){var myChart=ec.init(document.getElementById("your-top-expenses"));chartOptions={legend:{orient:"vertical",x:"left",data:["Internet","Infrastructure","Party","Assets","Electricity"]},color:["#FECEA8","#FF847C","#E84A5F","#2A363B","#99B898"],toolbox:{show:!0,orient:"vertical"},calculable:!0,series:[{name:"Browsers",type:"pie",radius:["50%","70%"],center:["50%","57.5%"],itemStyle:{normal:{label:{show:!0},labelLine:{show:!0}},emphasis:{label:{show:!0,formatter:"{b}\n\n{c} ({d}%)",position:"center",textStyle:{fontSize:"17",fontWeight:"500"}}}},data:[{value:335,name:"Internet"},{value:1548,name:"Infrastructure"},{value:135,name:"Party"},{value:234,name:"Assets"},{value:650,name:"Electricity"}]}]},myChart.setOption(chartOptions),$(function(){function resize(){setTimeout(function(){myChart.resize()},200)}$(window).on("resize",resize),$(".menu-toggle").on("click",resize)})})});