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
2.2 KiB
6 lines
2.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("invoice-total-recievables")),dataStyle={normal:{label:{show:!1},labelLine:{show:!1}}},placeHolderStyle={normal:{color:"rgba(0,0,0,0)",label:{show:!1},labelLine:{show:!1}},emphasis:{color:"rgba(0,0,0,0)"}};chartOptions={title:{text:"Total Receivables",subtext:"$ 2100.00",x:"center",y:"center",itemGap:10,textStyle:{color:"rgba(30,144,255,0.8)",fontSize:19,fontWeight:"500"}},tooltip:{show:!0,formatter:"{a} <br/>{b}: ({d}%)"},legend:{orient:"vertical",x:document.getElementById("invoice-total-recievables").offsetWidth/2,y:30,x:"55%",itemGap:15,data:["Current","Overdue by 1-15 days","Overdue by 16-30 days","Overdue by 31-45 days","Overdue by 45+ days"]},color:["#99B898","#FECEA8","#FF847C","#E84A5F","#b95462"],series:[{name:"$ 1200.00",type:"pie",clockWise:!1,radius:["75%","90%"],itemStyle:dataStyle,data:[{value:58,name:"Current"},{value:42,name:"invisible",itemStyle:placeHolderStyle}]},{name:"$ 450.00",type:"pie",clockWise:!1,radius:["60%","75%"],itemStyle:dataStyle,data:[{value:21,name:"Overdue by 1-15 days"},{value:79,name:"invisible",itemStyle:placeHolderStyle}]},{name:"$ 250.00",type:"pie",clockWise:!1,radius:["45%","60%"],itemStyle:dataStyle,data:[{value:11,name:"Overdue by 16-30 days"},{value:89,name:"invisible",itemStyle:placeHolderStyle}]},{name:"$ 150.00",type:"pie",clockWise:!1,radius:["30%","45%"],itemStyle:dataStyle,data:[{value:7,name:"Overdue by 31-45 days"},{value:93,name:"invisible",itemStyle:placeHolderStyle}]},{name:"$ 50.00",type:"pie",clockWise:!1,radius:["15%","30%"],itemStyle:dataStyle,data:[{value:2,name:"Overdue by 45+ days"},{value:98,name:"invisible",itemStyle:placeHolderStyle}]}]},myChart.setOption(chartOptions),$(function(){function resize(){setTimeout(function(){myChart.resize()},200)}$(window).on("resize",resize),$(".menu-toggle").on("click",resize)})})}); |