!function(){var e=$(window),a=echarts.init(document.getElementById("basic_chart"));option={tooltip:{trigger:"axis"},color:["#727cf5","#727cf5"],legend:{data:["Evaporation","Precipitation"]},calculable:!0,xAxis:[{type:"category",data:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}],yAxis:[{type:"value"}],series:[{name:"Evaporation",type:"bar",data:[2,4.9,7,23.2,25.6,76.7,135.6,162.2,32.6,20,6.4,3.3],markPoint:{data:[{type:"max",name:"The maximum value"},{type:"min",name:"Minimum value"}]},markLine:{data:[{type:"average",name:"average value"}]}},{name:"Precipitation",type:"bar",data:[2.6,5.9,9,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6,2.3],markPoint:{data:[{name:"The highest year",value:182.2,xAxis:7,yAxis:183,symbolSize:18},{name:"Year minimum",value:2.3,xAxis:11,yAxis:3}]},markLine:{data:[{type:"average",name:"average value"}]}}]},a.setOption(option),e.on("resize",function(){null!=a&&null!=a&&a.resize()}),require.config({paths:{echarts:"https://echarts.baidu.com/build/dist"}}),require(["echarts","echarts/chart/bar"],function(e){e.init(document.getElementById("main")).setOption({tooltip:{show:!0},color:["#727cf5"],legend:{data:["Sales"]},xAxis:[{type:"category",data:["Shirts","Sweaters","Chiffon Shirts","Pants","High Heels","Socks"]}],yAxis:[{type:"value"}],series:[{name:"Sales",type:"bar",data:[5,20,40,10,10,20]}]})});var t=echarts.init(document.getElementById("ladder_chart"));option={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(e){var a;return(a="-"!=e[1].value?e[1]:e[0]).name+"<br/>"+a.seriesName+" : "+a.value}},color:["#24ccda","#e9b02b"],legend:{data:["expenditure","income"],itemGap:30},xAxis:[{type:"category",splitLine:{show:!1},data:function(){for(var e=[],a=1;a<=11;a++)e.push("November "+a+" day");return e}()}],yAxis:[{type:"value"}],series:[{name:"Auxiliary",type:"bar",stack:"Total amount",itemStyle:{normal:{barBorderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"},emphasis:{barBorderColor:"rgba(0,0,0,0)",color:"rgba(0,0,0,0)"}},data:[0,900,1245,1530,1478,1376,1511,1689,1856,1495,1292]},{name:"income",type:"bar",stack:"Total amount",itemStyle:{normal:{label:{show:!0,position:"top"}}},data:[900,345,393,"-","-",135,178,286,"-","-","-"]},{name:"expenditure",type:"bar",stack:"Total amount",itemStyle:{normal:{label:{show:!0,position:"bottom"}}},data:["-","-","-",108,154,"-","-","-",119,361,203]}]},t.setOption(option),e.on("resize",function(){null!=t&&null!=t&&t.resize()});var i=echarts.init(document.getElementById("stack_chart"));option={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},color:["#00d1c1","#f8538d","#3862f5","#ffbb44","#816cfd","#25d5e4","#ff6f00","#3b3f5c","#ff3743"],legend:{data:["direct interview","Mail marketing","Affiliate advertising","Video ad","search engine","Baidu","Google","must","other"],itemGap:20},calculable:!0,xAxis:[{type:"category",data:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]}],yAxis:[{type:"value"}],series:[{name:"direct interview",type:"bar",data:[320,332,301,334,390,330,320]},{name:"Mail marketing",type:"bar",stack:"advertising",data:[120,132,101,134,90,230,210]},{name:"Affiliate advertising",type:"bar",stack:"advertising",data:[220,182,191,234,290,330,310]},{name:"Video ad",type:"bar",stack:"advertising",data:[150,232,201,154,190,330,410]},{name:"search engine",type:"bar",data:[862,1018,964,1026,1679,1600,1570],markLine:{itemStyle:{normal:{lineStyle:{type:"dashed"}}},data:[[{type:"min"},{type:"max"}]]}},{name:"Baidu",type:"bar",barWidth:5,stack:"search engine",data:[620,732,701,734,1090,1130,1120]},{name:"Google",type:"bar",stack:"search engine",data:[120,132,101,134,290,230,220]},{name:"must",type:"bar",stack:"search engine",data:[60,72,71,74,190,130,110]},{name:"other",type:"bar",stack:"search engine",data:[62,82,91,84,109,110,120]}]},i.setOption(option),e.on("resize",function(){null!=i&&null!=i&&i.resize()})}();