index.js 118 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621
  1. /**
  2. * Created by Administrator on 2017/5/17.
  3. */
  4. $(function(){
  5. // index();
  6. $(".index_nav ul li").each(function(index){
  7. $(this).click(function(){
  8. $(this).addClass("nav_active").siblings().removeClass("nav_active");
  9. $(".index_tabs .inner").eq(index).fadeIn().siblings("div").stop().hide();
  10. if(index==1){
  11. yingXiao();
  12. }else if(index==2){
  13. shouRu();
  14. }else if(index==3){
  15. AnQuan();
  16. }else if(index==4){
  17. user();
  18. }else if(index==5){
  19. manage();
  20. }
  21. })
  22. });
  23. $(".tabs ul li").each(function(index){
  24. $(this).click(function(){
  25. $(".tabs ul li div .div").removeClass("tabs_active");
  26. $(this).find("div .div").addClass("tabs_active");
  27. $(".tabs_map>div").eq(index).fadeIn().siblings("div").stop().hide();
  28. })
  29. });
  30. $(".middle_top_bot ul li").each(function(){
  31. $(this).click(function(){
  32. $(".middle_top_bot ul li").removeClass("middle_top_bot_active");
  33. $(this).addClass("middle_top_bot_active");
  34. })
  35. });
  36. });
  37. function user(){
  38. //游客来源分析
  39. $(function(){
  40. var myChart = echarts.init($("#container1")[0]);
  41. var option = {
  42. tooltip : {
  43. trigger: 'item',
  44. formatter: "{a} <br/>{b} : {c} ({d}%)"
  45. },
  46. legend: {
  47. x: 'center',
  48. y:"16",
  49. data: [],
  50. textStyle:{
  51. color:"#e9ebee"
  52. }
  53. },
  54. series : [
  55. {
  56. itemStyle: {
  57. normal: {
  58. label: {
  59. show: false
  60. },
  61. labelLine: {
  62. show: false
  63. }
  64. }
  65. },
  66. name: '',
  67. type: 'pie',
  68. radius : '55%',
  69. center: ['50%', '60%'],
  70. data:[
  71. {
  72. value:324,
  73. name:'省内游客',
  74. itemStyle:{
  75. normal:{
  76. color:"#2864ab"
  77. }
  78. }
  79. },
  80. {
  81. value:186,
  82. name:'北上广游客',
  83. itemStyle:{
  84. normal:{
  85. color:"#1afffd"
  86. }
  87. }
  88. },
  89. {
  90. value:99,
  91. name:'西南片区',
  92. itemStyle:{
  93. normal:{
  94. color:"#2e7cff"
  95. }
  96. }
  97. }
  98. ,
  99. {
  100. value:39,
  101. name:'海外游客',
  102. itemStyle:{
  103. normal:{
  104. color:"#ffcb89"
  105. }
  106. }
  107. }
  108. ,
  109. {
  110. value:78,
  111. name:'其他地区',
  112. itemStyle:{
  113. normal:{
  114. color:"#005ea1"
  115. }
  116. }
  117. }
  118. ]
  119. //data:[
  120. // {value:90, name:'男性'},
  121. // {value:10, name:'女性',
  122. // itemStyle:{
  123. // normal:{
  124. // color:"#ff81cb"
  125. // }
  126. // }}
  127. //]
  128. }
  129. ]
  130. };
  131. myChart.setOption(option);
  132. });
  133. //游客性别分析
  134. $(function(){
  135. var myChart = echarts.init($("#container2")[0]);
  136. var option = {
  137. tooltip : {
  138. trigger: 'item',
  139. formatter: "{a} <br/>{b} : {c} ({d}%)"
  140. },
  141. legend: {
  142. orient: 'vertical',
  143. x: 'left',
  144. y:"16",
  145. data: ['男性','女性'],
  146. textStyle:{
  147. color:"#e9ebee"
  148. }
  149. },
  150. series : [
  151. {
  152. itemStyle: {
  153. normal: {
  154. label: {
  155. show: false
  156. },
  157. labelLine: {
  158. show: false
  159. }
  160. }
  161. },
  162. name: '',
  163. type: 'pie',
  164. radius : '55%',
  165. center: ['50%', '60%'],
  166. data:[
  167. {value:90, name:'男性',
  168. itemStyle:{
  169. normal:{
  170. color:"#2865aa"
  171. }
  172. }},
  173. {value:10, name:'女性',
  174. itemStyle:{
  175. normal:{
  176. color:"#ff81cb"
  177. }
  178. }}
  179. ]
  180. }
  181. ]
  182. };
  183. myChart.setOption(option);
  184. });
  185. //游客年龄分析
  186. $(function(){
  187. var myChart = echarts.init($("#container3")[0]);
  188. var option = {
  189. tooltip : {
  190. trigger: 'item',
  191. formatter: "{a} <br/>{b} : {c} ({d}%)"
  192. },
  193. legend: {
  194. orient: 'vertical',
  195. x: 'right',
  196. y:"16",
  197. data: ['少年','青年','中年','老年','其他'],
  198. textStyle:{
  199. color:"#e9ebee"
  200. }
  201. },
  202. series : [
  203. {
  204. itemStyle: {
  205. normal: {
  206. label: {
  207. show: false
  208. },
  209. labelLine: {
  210. show: false
  211. }
  212. }
  213. },
  214. name: '',
  215. type: 'pie',
  216. radius : '55%',
  217. center: ['50%', '60%'],
  218. data:[
  219. {value:90, name:'少年',
  220. itemStyle:{
  221. normal:{
  222. color:"#45c0ff"
  223. }
  224. }},
  225. {value:254, name:'青年',
  226. itemStyle:{
  227. normal:{
  228. color:"#e15828"
  229. }
  230. }},
  231. {value:362, name:'中年',
  232. itemStyle:{
  233. normal:{
  234. color:"#005ea1"
  235. }
  236. }},
  237. {value:152, name:'老年',
  238. itemStyle:{
  239. normal:{
  240. color:"#ff81cb"
  241. }
  242. }},
  243. {value:86, name:'其他',
  244. itemStyle:{
  245. normal:{
  246. color:"#2e7cff"
  247. }
  248. }}
  249. ]
  250. }
  251. ]
  252. };
  253. myChart.setOption(option);
  254. });
  255. //散客——团队分析
  256. $(function(){
  257. var myChart = echarts.init(document.getElementById('container4'));
  258. var option = {
  259. tooltip : {
  260. trigger: 'axis',
  261. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  262. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  263. }
  264. },
  265. //legend: {
  266. // data:['散客(万人)','团队(万人)'],
  267. // y:'20',
  268. // textStyle: { fontWeight: 'bold', color: '#a4a7ab' }
  269. //},
  270. calculable : true,
  271. xAxis : [
  272. {
  273. type : 'category',
  274. data:['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
  275. splitLine: {
  276. show: false
  277. },
  278. axisLabel: {
  279. show: true,
  280. textStyle: {
  281. color: '#a4a7ab',
  282. align: 'center'
  283. }
  284. }
  285. }
  286. ],
  287. grid: {
  288. x: 46,
  289. y:30,
  290. x2:32,
  291. y2:40,
  292. borderWidth: 0
  293. },
  294. yAxis : [
  295. {
  296. type : 'value',
  297. splitLine: {
  298. show: false
  299. },
  300. axisLabel: {
  301. show: true,
  302. textStyle: {
  303. color: '#a4a7ab'
  304. }
  305. }
  306. }
  307. ],
  308. series : [
  309. {
  310. name:'散客(万人)',
  311. type:'bar',
  312. stack: '广告',
  313. barWidth:'30',
  314. data:[320, 332, 301, 334, 390, 330, 320, 332, 301, 334, 390, 330],
  315. itemStyle:{
  316. normal:{
  317. color:"#1afffd"
  318. }
  319. }
  320. },
  321. {
  322. name:'团队(万人)',
  323. type:'bar',
  324. stack: '广告',
  325. data:[120, 132, 101, 134, 90, 230, 210,220, 182, 191, 234, 290],
  326. itemStyle:{
  327. normal:{
  328. color:"#2e7cff"
  329. }
  330. }
  331. }
  332. ]
  333. };
  334. myChart.setOption(option);
  335. });
  336. //天气游客数据分析
  337. $(function(){
  338. var myChart = echarts.init(document.getElementById('container5'));
  339. var option = {
  340. tooltip : {
  341. trigger: 'axis',
  342. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  343. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  344. }
  345. },
  346. //legend: {
  347. // data:['散客人数(万人)','团队人数(万人)'],
  348. // textStyle: { fontWeight: 'bold', color: '#a4a7ab' }
  349. //},
  350. grid: {
  351. x: 46,
  352. y:30,
  353. x2:32,
  354. y2:40,
  355. borderWidth: 0
  356. },
  357. xAxis : [
  358. {
  359. type : 'category',
  360. data : ['炎热', '晴朗', '阴天', '多风', '大雾', '雨天','雨雪'],
  361. splitLine: {
  362. show: false
  363. },
  364. axisLabel: {
  365. show: true,
  366. textStyle: {
  367. color: '#a4a7ab',
  368. align: 'center'
  369. }
  370. }
  371. }
  372. ],
  373. yAxis : [
  374. {
  375. type : 'value',
  376. splitLine: {
  377. show: false
  378. },
  379. axisLabel: {
  380. show: true,
  381. textStyle: {
  382. color: '#a4a7ab'
  383. }
  384. }
  385. }
  386. ],
  387. series : [
  388. {
  389. name:'散客人数(万人)',
  390. type:'bar',
  391. data:[20, 15, 15, 16, 18, 15, 10,26,30],
  392. itemStyle:{
  393. normal:{
  394. color:"#2e7cff"
  395. }
  396. }
  397. },
  398. {
  399. name:'团队人数(万人)',
  400. type:'bar',
  401. stack: '广告',
  402. data:[20, 35, 50, 66, 84, 99, 109,80,70],
  403. itemStyle:{
  404. normal:{
  405. color:"#0ad5ff"
  406. }
  407. }
  408. }
  409. ]
  410. };
  411. myChart.setOption(option);
  412. });
  413. //游客出行交通方式分析
  414. $(function(){
  415. var myChart = echarts.init($("#container6")[0]);
  416. var option = {
  417. tooltip : {
  418. trigger: 'axis',
  419. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  420. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  421. }
  422. },
  423. grid: {
  424. x: 46,
  425. y:30,
  426. x2:32,
  427. y2:40,
  428. borderWidth: 0
  429. },
  430. calculable : true,
  431. xAxis : [
  432. {
  433. type : 'category',
  434. data:['汽车','火车','飞机','自驾游','公共交通','其他'],
  435. splitLine: {
  436. show: false
  437. },
  438. axisLabel: {
  439. show: true,
  440. textStyle: {
  441. color: '#a4a7ab',
  442. align: 'center'
  443. }
  444. }
  445. }
  446. ],
  447. yAxis : [
  448. {
  449. type : 'value',
  450. splitLine: {
  451. show: false
  452. },
  453. axisLabel: {
  454. show: true,
  455. textStyle: {
  456. color: '#a4a7ab'
  457. }
  458. }
  459. }
  460. ],
  461. series : [
  462. {
  463. name:'游客数量(万人)',
  464. type:'bar',
  465. barWidth:'30',
  466. data:[5, 9, 10, 7, 6, 3, 8, 4,6, 7, 3, 3, 1],
  467. itemStyle: {
  468. normal: {
  469. color:"#0aff6c"
  470. }
  471. }
  472. }
  473. ]
  474. };
  475. myChart.setOption(option);
  476. });
  477. //不同时间段入园情况
  478. $(function(){
  479. var myChart = echarts.init($("#container9")[0]);
  480. var option = {
  481. tooltip: { //提示框,鼠标悬浮交互时的信息提示
  482. show: true,
  483. trigger: 'axis'
  484. },
  485. grid: {
  486. x: 46,
  487. y:30,
  488. x2:32,
  489. y2:40,
  490. borderWidth: 0
  491. },
  492. legend: {
  493. data: [],
  494. orient: 'vertical',
  495. textStyle: { fontWeight: 'bold', color: '#a4a7ab' }
  496. },
  497. calculable: true,
  498. xAxis: [
  499. {
  500. type: 'category',
  501. boundaryGap: false,
  502. data: ['8:00-10:00', '10:00-12:00', '12:00-14:00', '14:00-16:00', '16:00-18:00', '18:00-20:00'],
  503. splitLine: {
  504. show: false
  505. },
  506. axisLabel: {
  507. show: true,
  508. //rotate:20,
  509. textStyle: {
  510. color: '#a4a7ab',
  511. align: 'center'
  512. }
  513. }
  514. }
  515. ],
  516. yAxis: [
  517. {
  518. type: 'value',
  519. splitLine: {
  520. show: false
  521. },
  522. axisLabel: {
  523. show: true,
  524. textStyle: {
  525. color: '#a4a7ab',
  526. align: 'right'
  527. }
  528. }
  529. }
  530. ],
  531. series: [
  532. {
  533. name: '客流量(人)',
  534. type: 'line',
  535. stack: '客流量',
  536. data: [1200, 1322, 1401, 1046, 1499, 820],
  537. itemStyle: {
  538. normal: {
  539. color: '#02bcbc'
  540. }
  541. }
  542. }
  543. ]
  544. };
  545. myChart.setOption(option);
  546. });
  547. //不同月份游客数量情况
  548. $(function(){
  549. var myChart = echarts.init($("#container10")[0]);
  550. var option = {
  551. tooltip : {
  552. trigger: 'axis',
  553. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  554. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  555. }
  556. },
  557. grid: {
  558. x: 46,
  559. y:30,
  560. x2:32,
  561. y2:40,
  562. borderWidth: 0
  563. },
  564. calculable : true,
  565. xAxis : [
  566. {
  567. type : 'category',
  568. data:['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
  569. splitLine: {
  570. show: false
  571. },
  572. axisLabel: {
  573. show: true,
  574. textStyle: {
  575. color: '#a4a7ab',
  576. align: 'center'
  577. }
  578. }
  579. }
  580. ],
  581. yAxis : [
  582. {
  583. type : 'value',
  584. splitLine: {
  585. show: false
  586. },
  587. axisLabel: {
  588. show: true,
  589. textStyle: {
  590. color: '#a4a7ab'
  591. }
  592. }
  593. }
  594. ],
  595. series : [
  596. {
  597. name:'游客数量(万人)',
  598. type:'bar',
  599. barWidth:'30',
  600. data:[5, 9, 10, 7, 6, 3, 8, 4,6, 7, 3, 3, 1],
  601. itemStyle: {
  602. normal: {
  603. color:"#269fec"
  604. }
  605. }
  606. }
  607. ]
  608. };
  609. myChart.setOption(option);
  610. });
  611. //不同月份游客走势情况
  612. $(function(){
  613. var myChart = echarts.init(document.getElementById('container11'));
  614. var option = {
  615. tooltip : {
  616. trigger: 'axis'
  617. },
  618. grid: {
  619. x: 46,
  620. y:30,
  621. x2:32,
  622. y2:40,
  623. borderWidth: 0
  624. },
  625. calculable : true,
  626. xAxis : [
  627. {
  628. type : 'category',
  629. boundaryGap : false,
  630. data : ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
  631. splitLine: {
  632. show: false
  633. },
  634. axisLabel: {
  635. show: true,
  636. textStyle: {
  637. color: '#a4a7ab'
  638. }
  639. }
  640. }
  641. ],
  642. yAxis : [
  643. {
  644. type : 'value',
  645. splitLine: {
  646. show: false
  647. },
  648. axisLabel: {
  649. show: true,
  650. textStyle: {
  651. color: '#a4a7ab'
  652. }
  653. }
  654. }
  655. ],
  656. series : [
  657. {
  658. name:'散客',
  659. type:'line',
  660. stack: '人',
  661. data:[120, 132, 101, 134, 90, 230, 210,230,245,256,278,300],
  662. itemStyle: {
  663. normal: {
  664. color:"#e15828"
  665. }
  666. }
  667. },
  668. {
  669. name:'团队',
  670. type:'line',
  671. stack: '人',
  672. data:[220, 182, 191, 234, 290, 330, 310,230,245,256,278,300],
  673. itemStyle: {
  674. normal: {
  675. color:"#2e7cff"
  676. }
  677. }
  678. }
  679. ]
  680. };
  681. myChart.setOption(option);
  682. });
  683. //出行方式排行
  684. $(function(){
  685. var myChart = echarts.init($("#container12")[0]);
  686. var option = {
  687. tooltip : {
  688. trigger: 'axis',
  689. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  690. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  691. }
  692. },
  693. grid: {
  694. x: 46,
  695. y:30,
  696. x2:32,
  697. y2:40,
  698. borderWidth: 0
  699. },
  700. xAxis: {
  701. type: 'value',
  702. x:'180',
  703. splitLine: {
  704. show: false
  705. },
  706. axisLabel: {
  707. show: true,
  708. textStyle: {
  709. color: '#a4a7ab'
  710. }
  711. }
  712. },
  713. yAxis: {
  714. type: 'category',
  715. data: ['其他','飞机','火车','自驾游','长途皮车'],
  716. splitLine: {
  717. show: false
  718. },
  719. axisLabel: {
  720. show: true,
  721. textStyle: {
  722. color: '#a4a7ab'
  723. }
  724. }
  725. },
  726. series: [
  727. {
  728. name: '出行人数(人)',
  729. type: 'bar',
  730. stack: '总量',
  731. label: {
  732. normal: {
  733. show: true,
  734. position: 'insideRight'
  735. }
  736. },
  737. data: [9900, 12350, 42563, 52364, 63524, 78224, 89254],
  738. itemStyle: {
  739. normal: {
  740. color:"#ff7d0a"
  741. }
  742. }
  743. }
  744. ]
  745. };
  746. myChart.setOption(option);
  747. });
  748. }
  749. function manage(){
  750. //工作人员性别分析
  751. $(function(){
  752. var myChart = echarts.init($("#userContainerSex")[0]);
  753. var option = {
  754. tooltip : {
  755. trigger: 'item',
  756. formatter: "{a} <br/>{b} : {c} ({d}%)"
  757. },
  758. legend: {
  759. orient: 'vertical',
  760. x: 'left',
  761. y:"16",
  762. data: ['男性','女性'],
  763. textStyle:{
  764. color:"#e9ebee"
  765. }
  766. },
  767. series : [
  768. {
  769. itemStyle: {
  770. normal: {
  771. label: {
  772. show: false
  773. },
  774. labelLine: {
  775. show: false
  776. }
  777. }
  778. },
  779. name: '',
  780. type: 'pie',
  781. radius : '55%',
  782. center: ['50%', '60%'],
  783. data:[
  784. {value:90, name:'男性',
  785. itemStyle:{
  786. normal:{
  787. color:"#2865aa"
  788. }
  789. }},
  790. {value:10, name:'女性',
  791. itemStyle:{
  792. normal:{
  793. color:"#ff81cb"
  794. }
  795. }}
  796. ]
  797. }
  798. ]
  799. };
  800. myChart.setOption(option);
  801. });
  802. //工作人员来源分析
  803. $(function(){
  804. var myChart = echarts.init($("#userContainerManage")[0]);
  805. var option = {
  806. tooltip : {
  807. trigger: 'item',
  808. formatter: "{a} <br/>{b} : {c} ({d}%)"
  809. },
  810. legend: {
  811. x: 'center',
  812. y:"16",
  813. data:['安保部', '售票部', '保洁部', '后勤部', '指导部', '急救部'],
  814. textStyle:{
  815. color:"#e9ebee"
  816. }
  817. },
  818. series : [
  819. {
  820. itemStyle: {
  821. normal: {
  822. label: {
  823. show: false
  824. },
  825. labelLine: {
  826. show: false
  827. }
  828. }
  829. },
  830. name: '',
  831. type: 'pie',
  832. radius : '55%',
  833. center: ['50%', '60%'],
  834. data:[
  835. {
  836. value:324,
  837. name:'安保部',
  838. itemStyle:{
  839. normal:{
  840. color:"#1afffd"
  841. }
  842. }
  843. },
  844. {
  845. value:186,
  846. name:'售票部',
  847. itemStyle:{
  848. normal:{
  849. color:"#2e7cff"
  850. }
  851. }
  852. },
  853. {
  854. value:99,
  855. name:'保洁部',
  856. itemStyle:{
  857. normal:{
  858. color:"#ffcb89"
  859. }
  860. }
  861. }
  862. ,
  863. {
  864. value:39,
  865. name:'后勤部',
  866. itemStyle:{
  867. normal:{
  868. color:"#005ea1"
  869. }
  870. }
  871. }
  872. ,
  873. {
  874. value:78,
  875. name:'指导部',
  876. itemStyle:{
  877. normal:{
  878. color:"#0ad5ff"
  879. }
  880. }
  881. },
  882. {
  883. value:78,
  884. name:'急救部',
  885. itemStyle:{
  886. normal:{
  887. color:"#feb602"
  888. }
  889. }
  890. }
  891. ]
  892. //data:[
  893. // {value:90, name:'男性',
  894. // itemStyle:{
  895. // normal:{
  896. // color:"#2865aa"
  897. // }
  898. // }},
  899. // {value:10, name:'女性',
  900. // itemStyle:{
  901. // normal:{
  902. // color:"#ff81cb"
  903. // }
  904. // }}
  905. //]
  906. }
  907. ]
  908. };
  909. myChart.setOption(option);
  910. });
  911. //工作人员年龄分析
  912. $(function(){
  913. var myChart = echarts.init($("#userContainerAge")[0]);
  914. var option = {
  915. tooltip : {
  916. trigger: 'item',
  917. formatter: "{a} <br/>{b} : {c} ({d}%)"
  918. },
  919. legend: {
  920. orient: 'vertical',
  921. x: 'right',
  922. y:"16",
  923. data: ['少年','青年','中年','老年','其他'],
  924. textStyle:{
  925. color:"#e9ebee"
  926. }
  927. },
  928. series : [
  929. {
  930. itemStyle: {
  931. normal: {
  932. label: {
  933. show: false
  934. },
  935. labelLine: {
  936. show: false
  937. }
  938. }
  939. },
  940. name: '',
  941. type: 'pie',
  942. radius : '55%',
  943. center: ['50%', '60%'],
  944. data:[
  945. {value:90, name:'少年',
  946. itemStyle:{
  947. normal:{
  948. color:"#0ad5ff"
  949. }
  950. }},
  951. {value:254, name:'青年',
  952. itemStyle:{
  953. normal:{
  954. color:"#005ea1"
  955. }
  956. }},
  957. {value:362, name:'中年',
  958. itemStyle:{
  959. normal:{
  960. color:"#ffcb89"
  961. }
  962. }},
  963. {value:152, name:'老年',
  964. itemStyle:{
  965. normal:{
  966. color:"#2e7cff"
  967. }
  968. }},
  969. {value:86, name:'其他',
  970. itemStyle:{
  971. normal:{
  972. color:"#1afffd"
  973. }
  974. }}
  975. ]
  976. }
  977. ]
  978. };
  979. myChart.setOption(option);
  980. });
  981. //景区个部门出勤情况分析
  982. $(function(){
  983. var myChart = echarts.init($("#userContainerAttendance")[0]);
  984. var option = {
  985. tooltip : {
  986. trigger: 'axis',
  987. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  988. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  989. }
  990. },
  991. grid: {
  992. x: 46,
  993. y:30,
  994. x2:32,
  995. y2:40,
  996. borderWidth: 0
  997. },
  998. calculable : true,
  999. xAxis : [
  1000. {
  1001. type : 'category',
  1002. data:['安保部', '售票部', '保洁部', '后勤部', '指导部', '急救部'],
  1003. splitLine: {
  1004. show: false
  1005. },
  1006. axisLabel: {
  1007. show: true,
  1008. textStyle: {
  1009. color: '#a4a7ab',
  1010. align: 'center'
  1011. }
  1012. }
  1013. }
  1014. ],
  1015. yAxis : [
  1016. {
  1017. type : 'value',
  1018. splitLine: {
  1019. show: false
  1020. },
  1021. axisLabel: {
  1022. show: true,
  1023. textStyle: {
  1024. color: '#a4a7ab'
  1025. }
  1026. }
  1027. }
  1028. ],
  1029. series : [
  1030. {
  1031. name:'出勤率(%)',
  1032. type:'bar',
  1033. barWidth:'30',
  1034. data:[76, 56, 39, 77, 86, 95, 58, 4,6, 7, 3, 3, 1],
  1035. itemStyle: {
  1036. normal: {
  1037. color:"#1afffd"
  1038. }
  1039. }
  1040. }
  1041. ]
  1042. };
  1043. myChart.setOption(option);
  1044. });
  1045. //个人出勤率排行
  1046. $(function(){
  1047. var myChart = echarts.init($("#userContainerPersonal")[0]);
  1048. var option = {
  1049. tooltip : {
  1050. trigger: 'axis',
  1051. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  1052. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  1053. }
  1054. },
  1055. grid: {
  1056. x: 46,
  1057. y:30,
  1058. x2:32,
  1059. y2:40,
  1060. borderWidth: 0
  1061. },
  1062. xAxis: {
  1063. type: 'value',
  1064. x:'180',
  1065. splitLine: {
  1066. show: false
  1067. },
  1068. axisLabel: {
  1069. show: true,
  1070. textStyle: {
  1071. color: '#a4a7ab'
  1072. }
  1073. }
  1074. },
  1075. yAxis: {
  1076. type: 'category',
  1077. data: ['陈杰','李进','张佳倩','孙林','李杰'],
  1078. splitLine: {
  1079. show: false
  1080. },
  1081. axisLabel: {
  1082. show: true,
  1083. textStyle: {
  1084. color: '#a4a7ab'
  1085. }
  1086. }
  1087. },
  1088. series: [
  1089. {
  1090. name: '出勤率(%)',
  1091. type: 'bar',
  1092. stack: '总量',
  1093. label: {
  1094. normal: {
  1095. show: true,
  1096. position: 'insideRight'
  1097. }
  1098. },
  1099. data: [60, 72, 85, 96, 99],
  1100. itemStyle: {
  1101. normal: {
  1102. color:"#45c0ff"
  1103. }
  1104. }
  1105. }
  1106. ]
  1107. };
  1108. myChart.setOption(option);
  1109. });
  1110. //不同月份人员流动情况
  1111. $(function(){
  1112. var myChart = echarts.init(document.getElementById('userContainerFlow'));
  1113. var option = {
  1114. tooltip : {
  1115. trigger: 'axis'
  1116. },
  1117. grid: {
  1118. x: 46,
  1119. y:30,
  1120. x2:32,
  1121. y2:40,
  1122. borderWidth: 0
  1123. },
  1124. calculable : true,
  1125. xAxis : [
  1126. {
  1127. type : 'category',
  1128. boundaryGap : false,
  1129. data : ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
  1130. splitLine: {
  1131. show: false
  1132. },
  1133. axisLabel: {
  1134. show: true,
  1135. textStyle: {
  1136. color: '#a4a7ab'
  1137. }
  1138. }
  1139. }
  1140. ],
  1141. yAxis : [
  1142. {
  1143. type : 'value',
  1144. splitLine: {
  1145. show: false
  1146. },
  1147. axisLabel: {
  1148. show: true,
  1149. textStyle: {
  1150. color: '#a4a7ab'
  1151. }
  1152. }
  1153. }
  1154. ],
  1155. series : [
  1156. {
  1157. name:'景区工作人员',
  1158. type:'line',
  1159. stack: '人',
  1160. data:[120, 132, 101, 134, 90, 230, 210,230,245,256,278,300],
  1161. itemStyle: {
  1162. normal: {
  1163. color:"#1afffd"
  1164. }
  1165. }
  1166. }
  1167. ]
  1168. };
  1169. myChart.setOption(option);
  1170. });
  1171. //景区个部门违规操作分析
  1172. $(function(){
  1173. var myChart = echarts.init($("#userContainerIllegal")[0]);
  1174. var option = {
  1175. tooltip : {
  1176. trigger: 'axis',
  1177. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  1178. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  1179. }
  1180. },
  1181. grid: {
  1182. x: 46,
  1183. y:30,
  1184. x2:32,
  1185. y2:40,
  1186. borderWidth: 0
  1187. },
  1188. calculable : true,
  1189. xAxis : [
  1190. {
  1191. type : 'category',
  1192. data:['安保部', '售票部', '保洁部', '后勤部', '指导部', '急救部'],
  1193. splitLine: {
  1194. show: false
  1195. },
  1196. axisLabel: {
  1197. show: true,
  1198. textStyle: {
  1199. color: '#a4a7ab',
  1200. align: 'center'
  1201. }
  1202. }
  1203. }
  1204. ],
  1205. yAxis : [
  1206. {
  1207. type : 'value',
  1208. splitLine: {
  1209. show: false
  1210. },
  1211. axisLabel: {
  1212. show: true,
  1213. textStyle: {
  1214. color: '#a4a7ab'
  1215. }
  1216. }
  1217. }
  1218. ],
  1219. series : [
  1220. {
  1221. name:'违规次数(次)',
  1222. type:'bar',
  1223. barWidth:'30',
  1224. data:[124, 522, 235, 365, 214, 265, 58, 4,6, 7, 3, 3, 1],
  1225. itemStyle: {
  1226. normal: {
  1227. color:"#269fec"
  1228. }
  1229. }
  1230. }
  1231. ]
  1232. };
  1233. myChart.setOption(option);
  1234. });
  1235. //不同月份各部门被投诉分析
  1236. $(function(){
  1237. var myChart = echarts.init(document.getElementById('userContainerComplaint'));
  1238. var option = {
  1239. tooltip : {
  1240. trigger: 'axis'
  1241. },
  1242. grid: {
  1243. x: 46,
  1244. y:30,
  1245. x2:32,
  1246. y2:40,
  1247. borderWidth: 0
  1248. },
  1249. calculable : true,
  1250. xAxis : [
  1251. {
  1252. type : 'category',
  1253. boundaryGap : false,
  1254. data : ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
  1255. splitLine: {
  1256. show: false
  1257. },
  1258. axisLabel: {
  1259. show: true,
  1260. textStyle: {
  1261. color: '#a4a7ab'
  1262. }
  1263. }
  1264. }
  1265. ],
  1266. yAxis : [
  1267. {
  1268. type : 'value',
  1269. splitLine: {
  1270. show: false
  1271. },
  1272. axisLabel: {
  1273. show: true,
  1274. textStyle: {
  1275. color: '#a4a7ab'
  1276. }
  1277. }
  1278. }
  1279. ],
  1280. series : [
  1281. {
  1282. name:'安保部',
  1283. type:'line',
  1284. stack: '人',
  1285. data:[120, 132, 101, 134, 90, 230, 210,230,245,256,278,300],
  1286. itemStyle: {
  1287. normal: {
  1288. color:"#45c0ff"
  1289. }
  1290. }
  1291. },
  1292. {
  1293. name:'售票部',
  1294. type:'line',
  1295. stack: '人',
  1296. data:[220, 182, 191, 234, 290, 330, 310,230,245,256,278,300],
  1297. itemStyle: {
  1298. normal: {
  1299. color:"#0ad5ff"
  1300. }
  1301. }
  1302. },
  1303. {
  1304. name:'保洁部',
  1305. type:'line',
  1306. stack: '人',
  1307. data:[220, 182, 191, 234, 290, 330, 310,230,245,256,278,300],
  1308. itemStyle: {
  1309. normal: {
  1310. color:"#005ea1"
  1311. }
  1312. }
  1313. },
  1314. {
  1315. name:'后勤部',
  1316. type:'line',
  1317. stack: '人',
  1318. data:[220, 182, 191, 234, 290, 330, 310,230,245,256,278,300],
  1319. itemStyle: {
  1320. normal: {
  1321. color:"#ffcb89"
  1322. }
  1323. }
  1324. },
  1325. {
  1326. name:'指导部',
  1327. type:'line',
  1328. stack: '人',
  1329. data:[220, 182, 191, 234, 290, 330, 310,230,245,256,278,300],
  1330. itemStyle: {
  1331. normal: {
  1332. color:"#2e7cff"
  1333. }
  1334. }
  1335. },
  1336. {
  1337. name:'急救部',
  1338. type:'line',
  1339. stack: '人',
  1340. data:[220, 182, 191, 234, 290, 330, 310,230,245,256,278,300],
  1341. itemStyle: {
  1342. normal: {
  1343. color:"#1afffd"
  1344. }
  1345. }
  1346. }
  1347. ]
  1348. };
  1349. myChart.setOption(option);
  1350. });
  1351. //员工奖惩分析
  1352. $(function(){
  1353. var myChart = echarts.init(document.getElementById('userContainerPrize'));
  1354. var option = {
  1355. tooltip : {
  1356. trigger: 'axis',
  1357. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  1358. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  1359. }
  1360. },
  1361. //legend: {
  1362. // data:['散客人数(万人)','团队人数(万人)'],
  1363. // textStyle: { fontWeight: 'bold', color: '#a4a7ab' }
  1364. //},
  1365. grid: {
  1366. x: 46,
  1367. y:30,
  1368. x2:32,
  1369. y2:40,
  1370. borderWidth: 0
  1371. },
  1372. xAxis : [
  1373. {
  1374. type : 'category',
  1375. data : ['李杰', '赵一鸣', '陈爽', '李焕', '周伟', '张杰','王维'],
  1376. splitLine: {
  1377. show: false
  1378. },
  1379. axisLabel: {
  1380. show: true,
  1381. textStyle: {
  1382. color: '#a4a7ab',
  1383. align: 'center'
  1384. }
  1385. }
  1386. }
  1387. ],
  1388. yAxis : [
  1389. {
  1390. type : 'value',
  1391. splitLine: {
  1392. show: false
  1393. },
  1394. axisLabel: {
  1395. show: true,
  1396. textStyle: {
  1397. color: '#a4a7ab'
  1398. }
  1399. }
  1400. }
  1401. ],
  1402. series : [
  1403. {
  1404. name:'奖励次数(次)',
  1405. type:'bar',
  1406. data:[5, 7, 4, 1, 2, 9, 6,5,7],
  1407. itemStyle:{
  1408. normal:{
  1409. color:"#1afffd"
  1410. }
  1411. }
  1412. },
  1413. {
  1414. name:'惩罚次数(次)',
  1415. type:'bar',
  1416. stack: '广告',
  1417. data:[2, 1, 4, 9, 7, 5, 2,7,6],
  1418. itemStyle:{
  1419. normal:{
  1420. color:"#2e7cff"
  1421. }
  1422. }
  1423. }
  1424. ]
  1425. };
  1426. myChart.setOption(option);
  1427. });
  1428. //设备故障原因分析
  1429. $(function(){
  1430. var myChart = echarts.init(document.getElementById('userContainerReason'));
  1431. var option = {
  1432. tooltip : {
  1433. trigger: 'item',
  1434. formatter: "{a} <br/>{b} : {c} ({d}%)"
  1435. },
  1436. legend: {
  1437. orient: 'vertical',
  1438. x: 'left',
  1439. data: ['人为破坏','年久失修','自然因素','设备过期','其他'],
  1440. textStyle:{
  1441. color:"#e9ebee"
  1442. }
  1443. },
  1444. series : [
  1445. {
  1446. name: '故障原因',
  1447. type: 'pie',
  1448. radius : '55%',
  1449. center: ['50%', '60%'],
  1450. data:[
  1451. {value:335, name:'人为破坏',
  1452. itemStyle:{
  1453. normal:{
  1454. color:"#1afffd"
  1455. }
  1456. }},
  1457. {value:310, name:'年久失修',
  1458. itemStyle:{
  1459. normal:{
  1460. color:"#2e7cff"
  1461. }
  1462. }},
  1463. {value:234, name:'自然因素',
  1464. itemStyle:{
  1465. normal:{
  1466. color:"#ffcb89"
  1467. }
  1468. }},
  1469. {value:135, name:'设备过期',
  1470. itemStyle:{
  1471. normal:{
  1472. color:"#005ea1"
  1473. }
  1474. }},
  1475. {value:148, name:'其他',
  1476. itemStyle:{
  1477. normal:{
  1478. color:"#45c0ff"
  1479. }
  1480. }}
  1481. ],
  1482. itemStyle: {
  1483. emphasis: {
  1484. shadowBlur: 10,
  1485. shadowOffsetX: 0,
  1486. shadowColor: 'rgba(0, 0, 0, 0.5)'
  1487. }
  1488. }
  1489. }
  1490. ]
  1491. };
  1492. myChart.setOption(option);
  1493. });
  1494. //故障处理情况分析
  1495. $(function(){
  1496. var myChart = echarts.init(document.getElementById('userContainerHandle'));
  1497. var option = {
  1498. tooltip : {
  1499. trigger: 'item',
  1500. formatter: "{a} <br/>{b} : {c} ({d}%)"
  1501. },
  1502. legend: {
  1503. orient: 'vertical',
  1504. x: 'right',
  1505. data: ['已处理','未处理','超期未处理','其他'],
  1506. textStyle:{
  1507. color:"#e9ebee"
  1508. }
  1509. },
  1510. series : [
  1511. {
  1512. name: '处理情况',
  1513. type: 'pie',
  1514. radius : '55%',
  1515. center: ['50%', '60%'],
  1516. data:[
  1517. {value:335, name:'已处理',
  1518. itemStyle:{
  1519. normal:{
  1520. color:"#2e7cff"
  1521. }
  1522. }},
  1523. {value:310, name:'未处理',
  1524. itemStyle:{
  1525. normal:{
  1526. color:"#ffcb89"
  1527. }
  1528. }},
  1529. {value:234, name:'超期未处理',
  1530. itemStyle:{
  1531. normal:{
  1532. color:"#2864ab"
  1533. }
  1534. }},
  1535. {value:148, name:'其他',
  1536. itemStyle:{
  1537. normal:{
  1538. color:"#e15828"
  1539. }
  1540. }}
  1541. ],
  1542. itemStyle: {
  1543. emphasis: {
  1544. shadowBlur: 10,
  1545. shadowOffsetX: 0,
  1546. shadowColor: 'rgba(0, 0, 0, 0.5)'
  1547. }
  1548. }
  1549. }
  1550. ]
  1551. };
  1552. myChart.setOption(option);
  1553. });
  1554. }
  1555. function yingXiao(){
  1556. // 营销分析
  1557. // 24小时购买时间分析
  1558. $(function(){
  1559. var myChart = echarts.init($("#buyTime")[0]);
  1560. var option = {
  1561. tooltip: { //提示框,鼠标悬浮交互时的信息提示
  1562. show: true,
  1563. trigger: 'axis'
  1564. },
  1565. grid: {
  1566. x: 46,
  1567. y:30,
  1568. x2:30,
  1569. y2:40,
  1570. borderWidth: 0
  1571. },
  1572. legend: {
  1573. data: [],
  1574. orient: 'vertical',
  1575. textStyle: { fontWeight: 'bold', color: '#a4a7ab' }
  1576. },
  1577. calculable: false,
  1578. xAxis: [
  1579. {
  1580. type: 'category',
  1581. boundaryGap: false,
  1582. data: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12','13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24'],
  1583. splitLine: {
  1584. show: false
  1585. },
  1586. axisLabel: {
  1587. show: true,
  1588. textStyle: {
  1589. color: '#a4a7ab',
  1590. align: 'center'
  1591. }
  1592. }
  1593. }
  1594. ],
  1595. yAxis: [
  1596. {
  1597. type: 'value',
  1598. splitLine: {
  1599. show: false
  1600. },
  1601. axisLabel: {
  1602. show: true,
  1603. textStyle: {
  1604. color: '#a4a7ab',
  1605. align: 'right'
  1606. }
  1607. }
  1608. }
  1609. ],
  1610. series: [
  1611. {
  1612. name: '',
  1613. type: 'line',
  1614. stack: '24小时购买时间',
  1615. data: [120, 132, 101, 146, 199, 230, 210, 230, 240, 256, 278, 300,120, 132, 101, 146, 199, 230, 210, 230, 240, 256, 278, 300],
  1616. itemStyle: {
  1617. normal: {
  1618. color: '#02bcbc'
  1619. }
  1620. }
  1621. }
  1622. ]
  1623. };
  1624. myChart.setOption(option);
  1625. });
  1626. // 套餐类型分析
  1627. $(function(){
  1628. var myChart = echarts.init($("#Package01")[0]);
  1629. option = {
  1630. legend: {
  1631. orient : 'vertical',
  1632. x : 'left',
  1633. data:['套餐A','套餐B','套餐C','套餐D','套餐E'], textStyle:{
  1634. color:"#e9ebee"
  1635. }
  1636. },
  1637. toolbox: {
  1638. show : true,
  1639. feature : {
  1640. mark : {show: true},
  1641. dataView : {show: true, readOnly: false},
  1642. magicType : {
  1643. show: true,
  1644. type: ['pie', 'funnel'],
  1645. option: {
  1646. funnel: {
  1647. x: '25%',
  1648. width: '50%',
  1649. funnelAlign: 'left',
  1650. max: 1548
  1651. }
  1652. }
  1653. },
  1654. restore : {show: true},
  1655. saveAsImage : {show: true}
  1656. }
  1657. },
  1658. calculable : false,
  1659. series : [
  1660. {
  1661. name:'套餐',
  1662. type:'pie',
  1663. radius : '55%',
  1664. center: ['50%', '60%'],
  1665. data:[
  1666. {value:335, name:'套餐A',
  1667. itemStyle: {
  1668. normal: {
  1669. color:"#1afffd"
  1670. }
  1671. }},
  1672. {value:310, name:'套餐B',
  1673. itemStyle: {
  1674. normal: {
  1675. color:"#2e7cff"
  1676. }
  1677. }},
  1678. {value:234, name:'套餐C',
  1679. itemStyle: {
  1680. normal: {
  1681. color:"#ffcb89"
  1682. }
  1683. }},
  1684. {value:135, name:'套餐D',
  1685. itemStyle: {
  1686. normal: {
  1687. color:"#005ea1"
  1688. }
  1689. }},
  1690. {value:1548, name:'套餐E',
  1691. itemStyle: {
  1692. normal: {
  1693. color:"#0ad5ff"
  1694. }
  1695. }}
  1696. ]
  1697. }
  1698. ]
  1699. };
  1700. myChart.setOption(option);
  1701. });
  1702. // 渠道分析
  1703. $(function(){
  1704. var myChart = echarts.init($("#rode01")[0]);
  1705. option = {
  1706. legend: {
  1707. orient : 'vertical',
  1708. x : 'left',
  1709. data:['套餐A','套餐B','套餐C','套餐D','套餐E','套餐F','套餐G','套餐H'], textStyle:{
  1710. color:"#e9ebee"
  1711. }
  1712. },
  1713. calculable : false,
  1714. series : [
  1715. {
  1716. name:'面积模式',
  1717. type:'pie',
  1718. radius : '60%',
  1719. center: ['50%', '60%'],
  1720. roseType : 'area',
  1721. x: '50%', // for funnel
  1722. max: 40, // for funnel
  1723. sort : 'ascending', // for funnel
  1724. data:[
  1725. {value:10, name:'套餐A',
  1726. itemStyle: {
  1727. normal: {
  1728. color:"#45c0ff"
  1729. }
  1730. }},
  1731. {value:5, name:'套餐B',
  1732. itemStyle: {
  1733. normal: {
  1734. color:"#e15828"
  1735. }
  1736. }},
  1737. {value:15, name:'套餐C',
  1738. itemStyle: {
  1739. normal: {
  1740. color:"#ff81cb"
  1741. }
  1742. }},
  1743. {value:25, name:'套餐D',
  1744. itemStyle: {
  1745. normal: {
  1746. color:"#2e7cff"
  1747. }
  1748. }},
  1749. {value:20, name:'套餐E',
  1750. itemStyle: {
  1751. normal: {
  1752. color:"#feb602"
  1753. }
  1754. }},
  1755. {value:35, name:'套餐F',
  1756. itemStyle: {
  1757. normal: {
  1758. color:"#ff7d0a"
  1759. }
  1760. }},
  1761. {value:30, name:'套餐H',
  1762. itemStyle: {
  1763. normal: {
  1764. color:"#1afffd"
  1765. }
  1766. }},
  1767. {value:40, name:'套餐G',
  1768. itemStyle: {
  1769. normal: {
  1770. color:"#2e7cff"
  1771. }
  1772. }}
  1773. ]
  1774. }
  1775. ]
  1776. };
  1777. myChart.setOption(option);
  1778. });
  1779. // 订退分析
  1780. $(function(){
  1781. var myChart = echarts.init($("#bookAret")[0]);
  1782. option = {
  1783. tooltip : {
  1784. trigger: 'axis'
  1785. },
  1786. grid: {
  1787. x: 46,
  1788. y:30,
  1789. x2:30,
  1790. y2:40,
  1791. borderWidth: 0
  1792. },
  1793. legend: {
  1794. data:['退订数','订单数'],
  1795. textStyle:{
  1796. color:"#e9ebee"
  1797. }
  1798. },
  1799. calculable : false,
  1800. xAxis : [
  1801. {
  1802. type : 'category',
  1803. data : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
  1804. axisLabel: {
  1805. show: true,
  1806. textStyle: {
  1807. color: '#a4a7ab',
  1808. align: 'center'
  1809. },
  1810. splitLine: {
  1811. show: false
  1812. },
  1813. }
  1814. }
  1815. ],
  1816. yAxis : [
  1817. {
  1818. type : 'value',
  1819. axisLabel: {
  1820. show: true,
  1821. textStyle: {
  1822. color: '#a4a7ab',
  1823. align: 'right'
  1824. }
  1825. },
  1826. splitLine: {
  1827. show: false
  1828. },
  1829. }
  1830. ],
  1831. series : [
  1832. {
  1833. name:'退订数',
  1834. type:'bar',
  1835. data:[100, 80, 136, 150, 120, 56, 200, 162, 105, 63, 169, 236],
  1836. markPoint : {
  1837. data : [
  1838. {type : 'max', name: '最大值'},
  1839. {type : 'min', name: '最小值'}
  1840. ]
  1841. },
  1842. markLine : {
  1843. data : [
  1844. {type : 'average', name: '平均值'}
  1845. ]
  1846. }
  1847. },
  1848. {
  1849. name:'订单数',
  1850. type:'bar',
  1851. data:[983, 820, 1236, 930, 1600, 1032, 890, 1300, 1921, 984, 1960, 2630],
  1852. markPoint : {
  1853. data : [
  1854. {name : '月最高', value : 2630, xAxis: 12, yAxis: 2630, symbolSize:18},
  1855. {name : '月最低', value : 820, xAxis: 2, yAxis: 830}
  1856. ]
  1857. },
  1858. markLine : {
  1859. data : [
  1860. {type : 'average', name : '平均值'}
  1861. ]
  1862. }
  1863. }
  1864. ]
  1865. };
  1866. myChart.setOption(option);
  1867. });
  1868. // 按月进行趋势分析
  1869. $(function(){
  1870. var myChart = echarts.init($("#bookBmonth")[0]);
  1871. var option = {
  1872. tooltip: { //提示框,鼠标悬浮交互时的信息提示
  1873. show: true,
  1874. trigger: 'axis'
  1875. },
  1876. grid: {
  1877. x: 46,
  1878. y:30,
  1879. x2:30,
  1880. y2:40,
  1881. borderWidth: 0
  1882. },
  1883. legend: {
  1884. data: [],
  1885. orient: 'vertical',
  1886. textStyle: { fontWeight: 'bold', color: '#a4a7ab' }
  1887. },
  1888. calculable: false,
  1889. xAxis: [
  1890. {
  1891. type: 'category',
  1892. boundaryGap: false,
  1893. data : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
  1894. splitLine: {
  1895. show: false
  1896. },
  1897. axisLabel: {
  1898. show: true,
  1899. textStyle: {
  1900. color: '#a4a7ab',
  1901. align: 'center'
  1902. }
  1903. }
  1904. }
  1905. ],
  1906. yAxis: [
  1907. {
  1908. type: 'value',
  1909. splitLine: {
  1910. show: false
  1911. },
  1912. axisLabel: {
  1913. show: true,
  1914. textStyle: {
  1915. color: '#a4a7ab',
  1916. align: 'right'
  1917. }
  1918. }
  1919. }
  1920. ],
  1921. series: [
  1922. {
  1923. name: '',
  1924. type: 'line',
  1925. stack: '订单数',
  1926. data:[983, 820, 1236, 930, 1600, 1032, 890, 1300, 1921, 984, 1960, 2630],
  1927. itemStyle: {
  1928. normal: {
  1929. color: '#02bcbc'
  1930. }
  1931. }
  1932. }
  1933. ]
  1934. };
  1935. myChart.setOption(option);
  1936. });
  1937. // 气候与订单分析
  1938. $(function(){
  1939. var myChart = echarts.init($("#whearAbook")[0]);
  1940. option = {
  1941. tooltip : {
  1942. trigger: 'axis'
  1943. },
  1944. grid: {
  1945. x: 46,
  1946. y:30,
  1947. x2:30,
  1948. y2:20,
  1949. borderWidth: 0
  1950. },
  1951. calculable : false,
  1952. legend: {
  1953. data:['下雨','下雪','晴天','订单量'],
  1954. textStyle:{
  1955. color:"#e9ebee"
  1956. }
  1957. },
  1958. xAxis : [
  1959. {
  1960. type : 'category',
  1961. data : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
  1962. splitLine: {
  1963. show: false
  1964. },
  1965. axisLabel: {
  1966. show: true,
  1967. textStyle: {
  1968. color: '#a4a7ab',
  1969. align: 'center'
  1970. }
  1971. }
  1972. }
  1973. ],
  1974. yAxis : [
  1975. {
  1976. type : 'value',
  1977. name : '订单量',
  1978. axisLabel : {
  1979. formatter: '{value} ',
  1980. textStyle: {
  1981. color: '#a4a7ab',
  1982. align: 'right'
  1983. }
  1984. },
  1985. splitLine: {
  1986. show: false
  1987. },
  1988. },
  1989. {
  1990. type : 'value',
  1991. name : '温度',
  1992. axisLabel : {
  1993. formatter: '{value} °C',
  1994. textStyle: {
  1995. color: '#a4a7ab',
  1996. align: 'right'
  1997. }
  1998. },
  1999. splitLine: {
  2000. show: false
  2001. },
  2002. },
  2003. ],
  2004. series : [
  2005. {
  2006. name:'下雨',
  2007. type:'bar',
  2008. data:[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3],
  2009. itemStyle: {
  2010. normal: {
  2011. color:"#0ad5ff"
  2012. }
  2013. }
  2014. },
  2015. {
  2016. name:'下雪',
  2017. type:'bar',
  2018. data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3],
  2019. itemStyle: {
  2020. normal: {
  2021. color:"#005ea1"
  2022. }
  2023. }
  2024. },
  2025. {
  2026. name:'晴天',
  2027. type:'bar',
  2028. data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3],
  2029. itemStyle: {
  2030. normal: {
  2031. color:"#2e7cff"
  2032. }
  2033. }
  2034. },
  2035. {
  2036. name:'订单量',
  2037. type:'line',
  2038. yAxisIndex: 1,
  2039. data:[2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
  2040. itemStyle: {
  2041. normal: {
  2042. color:"#1afffd"
  2043. }
  2044. }
  2045. }
  2046. ]
  2047. };
  2048. myChart.setOption(option);
  2049. });
  2050. // 交通与订单分析
  2051. $(function(){
  2052. var myChart = echarts.init($("#rodeAbook")[0]);
  2053. option = {
  2054. tooltip : {
  2055. trigger: 'axis'
  2056. },
  2057. grid: {
  2058. x: 46,
  2059. y:30,
  2060. x2:30,
  2061. y2:20,
  2062. borderWidth: 0
  2063. },
  2064. calculable : false,
  2065. legend: {
  2066. data:['拥堵','畅通','订单量'],
  2067. textStyle:{
  2068. color:"#e9ebee"
  2069. }
  2070. },
  2071. xAxis : [
  2072. {
  2073. type : 'category',
  2074. data : ['周一','周二','周三','周四','周五','周六','周日'],
  2075. splitLine: {
  2076. show: false
  2077. },
  2078. axisLabel: {
  2079. show: true,
  2080. textStyle: {
  2081. color: '#a4a7ab',
  2082. align: 'center'
  2083. }
  2084. }
  2085. }
  2086. ],
  2087. yAxis : [
  2088. {
  2089. type : 'value',
  2090. name : '订单量',
  2091. axisLabel : {
  2092. formatter: '{value} ',
  2093. textStyle: {
  2094. color: '#a4a7ab',
  2095. align: 'right'
  2096. }
  2097. },
  2098. splitLine: {
  2099. show: false
  2100. },
  2101. },
  2102. {
  2103. type : 'value',
  2104. name : '车流量',
  2105. axisLabel : {
  2106. formatter: '{value} ',
  2107. textStyle: {
  2108. color: '#a4a7ab',
  2109. align: 'right'
  2110. }
  2111. },
  2112. splitLine: {
  2113. show: false
  2114. },
  2115. },
  2116. ],
  2117. series : [
  2118. {
  2119. name:'畅通',
  2120. type:'bar',
  2121. stack: '车流量',
  2122. data:[120, 132, 101, 134, 90, 230, 210],
  2123. itemStyle: {
  2124. normal: {
  2125. color:"#ffcb89"
  2126. }
  2127. }
  2128. },
  2129. {
  2130. name:'拥堵',
  2131. type:'bar',
  2132. stack: '车流量',
  2133. data:[220, 232, 301, 234, 190, 330, 210],
  2134. itemStyle: {
  2135. normal: {
  2136. color:"#005ea1"
  2137. }
  2138. }
  2139. },
  2140. {
  2141. name:'订单量',
  2142. type:'line',
  2143. yAxisIndex: 1,
  2144. data:[320, 232, 101, 134, 290, 230, 210],
  2145. itemStyle: {
  2146. normal: {
  2147. color:"#0ad5ff"
  2148. }
  2149. }
  2150. }
  2151. ]
  2152. };
  2153. myChart.setOption(option);
  2154. });
  2155. // 季节与订单分析
  2156. $(function(){
  2157. var myChart = echarts.init($("#seaAbook01")[0]);
  2158. option = {
  2159. legend: {
  2160. orient : 'vertical',
  2161. x : 'left',
  2162. data:['春季','夏季','秋季','冬季'], textStyle:{
  2163. color:"#e9ebee"
  2164. }
  2165. },
  2166. calculable : false,
  2167. series : [
  2168. {
  2169. name:'季节与订单关系',
  2170. type:'pie',
  2171. radius : '70%',
  2172. center: ['50%', '60%'],
  2173. splitLine:{show: false},
  2174. roseType : 'area',
  2175. x: '50%', // for funnel
  2176. max: 40, // for funnel
  2177. sort : 'ascending', // for funnel
  2178. data:[
  2179. {value:2560, name:'春季',
  2180. itemStyle: {
  2181. normal: {
  2182. color:"#2e7cff"
  2183. }
  2184. }},
  2185. {value:3690, name:'夏季',
  2186. itemStyle: {
  2187. normal: {
  2188. color:"#ffcb89"
  2189. }
  2190. }},
  2191. {value:5690, name:'秋季',
  2192. itemStyle: {
  2193. normal: {
  2194. color:"#005ea1"
  2195. }
  2196. }},
  2197. {value:6312, name:'冬季',
  2198. itemStyle: {
  2199. normal: {
  2200. color:"#0ad5ff"
  2201. }
  2202. }}
  2203. ]
  2204. }
  2205. ]
  2206. };
  2207. myChart.setOption(option);
  2208. });
  2209. // 活动与订单分析
  2210. $(function(){
  2211. var myChart = echarts.init($("#actionBook")[0]);
  2212. option = {
  2213. tooltip : {
  2214. trigger: 'axis'
  2215. },
  2216. grid: {
  2217. x: 46,
  2218. y:30,
  2219. x2:30,
  2220. y2:20,
  2221. borderWidth: 0
  2222. },
  2223. calculable : false,
  2224. legend: {
  2225. data:['降价活动','买一送一活动','送积分活动','送礼品活动'],
  2226. textStyle:{
  2227. color:"#e9ebee"
  2228. }
  2229. },
  2230. xAxis : [
  2231. {
  2232. type : 'category',
  2233. splitLine : {show : false},
  2234. data : ['周一','周二','周三','周四','周五','周六','周日'],
  2235. axisLabel: {
  2236. show: true,
  2237. textStyle: {
  2238. color: '#fff',
  2239. align: 'center'
  2240. }
  2241. }
  2242. }
  2243. ],
  2244. yAxis : [
  2245. {
  2246. type : 'value',
  2247. position: 'right',
  2248. splitLine : {show : false},
  2249. axisLabel: {
  2250. show: true,
  2251. textStyle: {
  2252. color: '#fff',
  2253. align: 'center'
  2254. }
  2255. }
  2256. }
  2257. ],
  2258. series : [
  2259. {
  2260. name:'降价活动',
  2261. type:'bar',
  2262. data:[320, 332, 301, 334, 390, 330, 320],
  2263. itemStyle: {
  2264. normal: {
  2265. color:"#2e7cff"
  2266. }
  2267. }
  2268. },
  2269. {
  2270. name:'买一送一活动',
  2271. type:'bar',
  2272. tooltip : {trigger: 'item'},
  2273. stack: '广告',
  2274. data:[120, 132, 101, 134, 90, 230, 210],
  2275. itemStyle: {
  2276. normal: {
  2277. color:"#feb602"
  2278. }
  2279. }
  2280. },
  2281. {
  2282. name:'送积分活动',
  2283. type:'bar',
  2284. tooltip : {trigger: 'item'},
  2285. stack: '广告',
  2286. data:[220, 182, 191, 234, 290, 330, 310],
  2287. itemStyle: {
  2288. normal: {
  2289. color:"#ffcb89"
  2290. }
  2291. }
  2292. },
  2293. {
  2294. name:'送礼品活动',
  2295. type:'bar',
  2296. tooltip : {trigger: 'item'},
  2297. stack: '广告',
  2298. data:[150, 232, 201, 154, 190, 330, 410],
  2299. itemStyle: {
  2300. normal: {
  2301. color:"#005ea1"
  2302. }
  2303. }
  2304. },
  2305. {
  2306. name:'订单趋势',
  2307. type:'line',
  2308. data:[862, 1018, 964, 1026, 1679, 1600, 1570],
  2309. itemStyle: {
  2310. normal: {
  2311. color:"#0ad5ff"
  2312. }
  2313. }
  2314. },
  2315. {
  2316. name:'订单细分',
  2317. type:'pie',
  2318. tooltip : {
  2319. trigger: 'item',
  2320. formatter: '{a} <br/>{b} : {c} ({d}%)'
  2321. },
  2322. center: [100,80],
  2323. radius : [0, 30],
  2324. itemStyle : {
  2325. normal : {
  2326. labelLine : {
  2327. length : 20
  2328. }
  2329. }
  2330. },
  2331. data:[
  2332. {value:1048, name:'订单一',
  2333. itemStyle: {
  2334. normal: {
  2335. color:"#1afffd"
  2336. }
  2337. }},
  2338. {value:251, name:'订单二',
  2339. itemStyle: {
  2340. normal: {
  2341. color:"#2e7cff"
  2342. }
  2343. }},
  2344. {value:147, name:'订单三',
  2345. itemStyle: {
  2346. normal: {
  2347. color:"#ffcb89"
  2348. }
  2349. }},
  2350. {value:102, name:'订单四',
  2351. itemStyle: {
  2352. normal: {
  2353. color:"#005ea1"
  2354. }
  2355. }}
  2356. ]
  2357. }
  2358. ]
  2359. };
  2360. myChart.setOption(option);
  2361. });
  2362. // 特殊时间点与订单分析
  2363. $(function(){
  2364. var myChart = echarts.init($("#sperceBook01")[0]);
  2365. option = {
  2366. tooltip : {
  2367. trigger: 'axis',
  2368. formatter: function (params) {
  2369. var res = params[0].seriesName + ' ' + params[0].name;
  2370. res += '<br/> 0-05 : ' + params[0].value[0] + ' 06-12 : ' + params[0].value[3];
  2371. res += '<br/> 13-18: ' + params[0].value[1] + ' 19-24 : ' + params[0].value[2];
  2372. return res;
  2373. }
  2374. },
  2375. grid: {
  2376. x: 46,
  2377. y:30,
  2378. x2:30,
  2379. y2:20,
  2380. borderWidth: 0
  2381. },
  2382. legend: {
  2383. data:['订单数'],
  2384. textStyle:{
  2385. color:"#e9ebee"
  2386. }
  2387. },
  2388. dataZoom : {
  2389. show : true,
  2390. realtime: true,
  2391. start : 50,
  2392. end : 100
  2393. },
  2394. xAxis : [
  2395. {
  2396. type : 'category',
  2397. textStyle: {
  2398. color: '#a4a7ab',
  2399. },
  2400. boundaryGap : true,
  2401. axisTick: {onGap:false},
  2402. splitLine: {show:false},
  2403. data : [
  2404. "2013/1/24", "2013/1/25", "2013/1/28", "2013/1/29", "2013/1/30",
  2405. "2013/1/31", "2013/2/1", "2013/2/4", "2013/2/5", "2013/2/6",
  2406. "2013/2/7", "2013/2/8", "2013/2/18", "2013/2/19", "2013/2/20",
  2407. "2013/2/21", "2013/2/22", "2013/2/25", "2013/2/26", "2013/2/27",
  2408. "2013/2/28", "2013/3/1", "2013/3/4", "2013/3/5", "2013/3/6",
  2409. "2013/3/7", "2013/3/8", "2013/3/11", "2013/3/12", "2013/3/13",
  2410. "2013/3/14", "2013/3/15", "2013/3/18", "2013/3/19", "2013/3/20",
  2411. "2013/3/21", "2013/3/22", "2013/3/25", "2013/3/26", "2013/3/27",
  2412. "2013/3/28", "2013/3/29", "2013/4/1", "2013/4/2", "2013/4/3",
  2413. "2013/4/8", "2013/4/9", "2013/4/10", "2013/4/11", "2013/4/12",
  2414. "2013/4/15", "2013/4/16", "2013/4/17", "2013/4/18", "2013/4/19",
  2415. "2013/4/22", "2013/4/23", "2013/4/24", "2013/4/25", "2013/4/26",
  2416. "2013/5/2", "2013/5/3", "2013/5/6", "2013/5/7", "2013/5/8",
  2417. "2013/5/9", "2013/5/10", "2013/5/13", "2013/5/14", "2013/5/15",
  2418. "2013/5/16", "2013/5/17", "2013/5/20", "2013/5/21", "2013/5/22",
  2419. "2013/5/23", "2013/5/24", "2013/5/27", "2013/5/28", "2013/5/29",
  2420. "2013/5/30", "2013/5/31", "2013/6/3", "2013/6/4", "2013/6/5",
  2421. "2013/6/6", "2013/6/7", "2013/6/13"
  2422. ]
  2423. }
  2424. ],
  2425. yAxis : [
  2426. {
  2427. type : 'value',
  2428. textStyle: {
  2429. color: '#a4a7ab',
  2430. },
  2431. scale:true,
  2432. boundaryGap: [0.01, 0.01],
  2433. splitLine: {
  2434. show: false
  2435. },
  2436. }
  2437. ],
  2438. series : [
  2439. {
  2440. name:'订单数',
  2441. type:'k',
  2442. data:[ // 开盘,收盘,最低,最高
  2443. [2320.26,2302.6,2287.3,2362.94],
  2444. [2300,2291.3,2288.26,2308.38],
  2445. [2295.35,2346.5,2295.35,2346.92],
  2446. [2347.22,2358.98,2337.35,2363.8],
  2447. [2360.75,2382.48,2347.89,2383.76],
  2448. [2383.43,2385.42,2371.23,2391.82],
  2449. [2377.41,2419.02,2369.57,2421.15],
  2450. [2425.92,2428.15,2417.58,2440.38],
  2451. [2411,2433.13,2403.3,2437.42],
  2452. [2432.68,2434.48,2427.7,2441.73],
  2453. [2430.69,2418.53,2394.22,2433.89],
  2454. [2416.62,2432.4,2414.4,2443.03],
  2455. [2441.91,2421.56,2415.43,2444.8],
  2456. [2420.26,2382.91,2373.53,2427.07],
  2457. [2383.49,2397.18,2370.61,2397.94],
  2458. [2378.82,2325.95,2309.17,2378.82],
  2459. [2322.94,2314.16,2308.76,2330.88],
  2460. [2320.62,2325.82,2315.01,2338.78],
  2461. [2313.74,2293.34,2289.89,2340.71],
  2462. [2297.77,2313.22,2292.03,2324.63],
  2463. [2322.32,2365.59,2308.92,2366.16],
  2464. [2364.54,2359.51,2330.86,2369.65],
  2465. [2332.08,2273.4,2259.25,2333.54],
  2466. [2274.81,2326.31,2270.1,2328.14],
  2467. [2333.61,2347.18,2321.6,2351.44],
  2468. [2340.44,2324.29,2304.27,2352.02],
  2469. [2326.42,2318.61,2314.59,2333.67],
  2470. [2314.68,2310.59,2296.58,2320.96],
  2471. [2309.16,2286.6,2264.83,2333.29],
  2472. [2282.17,2263.97,2253.25,2286.33],
  2473. [2255.77,2270.28,2253.31,2276.22],
  2474. [2269.31,2278.4,2250,2312.08],
  2475. [2267.29,2240.02,2239.21,2276.05],
  2476. [2244.26,2257.43,2232.02,2261.31],
  2477. [2257.74,2317.37,2257.42,2317.86],
  2478. [2318.21,2324.24,2311.6,2330.81],
  2479. [2321.4,2328.28,2314.97,2332],
  2480. [2334.74,2326.72,2319.91,2344.89],
  2481. [2318.58,2297.67,2281.12,2319.99],
  2482. [2299.38,2301.26,2289,2323.48],
  2483. [2273.55,2236.3,2232.91,2273.55],
  2484. [2238.49,2236.62,2228.81,2246.87],
  2485. [2229.46,2234.4,2227.31,2243.95],
  2486. [2234.9,2227.74,2220.44,2253.42],
  2487. [2232.69,2225.29,2217.25,2241.34],
  2488. [2196.24,2211.59,2180.67,2212.59],
  2489. [2215.47,2225.77,2215.47,2234.73],
  2490. [2224.93,2226.13,2212.56,2233.04],
  2491. [2236.98,2219.55,2217.26,2242.48],
  2492. [2218.09,2206.78,2204.44,2226.26],
  2493. [2199.91,2181.94,2177.39,2204.99],
  2494. [2169.63,2194.85,2165.78,2196.43],
  2495. [2195.03,2193.8,2178.47,2197.51],
  2496. [2181.82,2197.6,2175.44,2206.03],
  2497. [2201.12,2244.64,2200.58,2250.11],
  2498. [2236.4,2242.17,2232.26,2245.12],
  2499. [2242.62,2184.54,2182.81,2242.62],
  2500. [2187.35,2218.32,2184.11,2226.12],
  2501. [2213.19,2199.31,2191.85,2224.63],
  2502. [2203.89,2177.91,2173.86,2210.58],
  2503. [2170.78,2174.12,2161.14,2179.65],
  2504. [2179.05,2205.5,2179.05,2222.81],
  2505. [2212.5,2231.17,2212.5,2236.07],
  2506. [2227.86,2235.57,2219.44,2240.26],
  2507. [2242.39,2246.3,2235.42,2255.21],
  2508. [2246.96,2232.97,2221.38,2247.86],
  2509. [2228.82,2246.83,2225.81,2247.67],
  2510. [2247.68,2241.92,2231.36,2250.85],
  2511. [2238.9,2217.01,2205.87,2239.93],
  2512. [2217.09,2224.8,2213.58,2225.19],
  2513. [2221.34,2251.81,2210.77,2252.87],
  2514. [2249.81,2282.87,2248.41,2288.09],
  2515. [2286.33,2299.99,2281.9,2309.39],
  2516. [2297.11,2305.11,2290.12,2305.3],
  2517. [2303.75,2302.4,2292.43,2314.18],
  2518. [2293.81,2275.67,2274.1,2304.95],
  2519. [2281.45,2288.53,2270.25,2292.59],
  2520. [2286.66,2293.08,2283.94,2301.7],
  2521. [2293.4,2321.32,2281.47,2322.1],
  2522. [2323.54,2324.02,2321.17,2334.33],
  2523. [2316.25,2317.75,2310.49,2325.72],
  2524. [2320.74,2300.59,2299.37,2325.53],
  2525. [2300.21,2299.25,2294.11,2313.43],
  2526. [2297.1,2272.42,2264.76,2297.1],
  2527. [2270.71,2270.93,2260.87,2276.86],
  2528. [2264.43,2242.11,2240.07,2266.69],
  2529. [2242.26,2210.9,2205.07,2250.63],
  2530. [2190.1,2148.35,2126.22,2190.1]
  2531. ]
  2532. }
  2533. ]
  2534. };
  2535. myChart.setOption(option);
  2536. });
  2537. }
  2538. function shouRu(){
  2539. // 收入支出分析
  2540. // 收入渠道分析
  2541. $(function(){
  2542. var myChart = echarts.init($("#zhanbi02")[0]);
  2543. var option = {
  2544. tooltip : {
  2545. trigger: 'axis',
  2546. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  2547. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  2548. },
  2549. formatter: function (params) {
  2550. var tar = params[0];
  2551. return tar.name + '<br/>' + tar.seriesName + ' : ' + tar.value;
  2552. }
  2553. },
  2554. grid:{
  2555. borderWidth:0
  2556. },
  2557. xAxis : [
  2558. {
  2559. type : 'category',
  2560. data : ['总收入','渠道A','渠道B','渠道C','渠道D','渠道E'],
  2561. axisLabel : {
  2562. formatter: '{value} ',
  2563. textStyle: {
  2564. color: '#a4a7ab',
  2565. align: 'right'
  2566. }
  2567. },
  2568. splitLine:{show: false}
  2569. }
  2570. ],
  2571. yAxis : [
  2572. {
  2573. type : 'value',
  2574. axisLabel : {
  2575. formatter: '{value} ',
  2576. textStyle: {
  2577. color: '#a4a7ab',
  2578. align: 'right'
  2579. }
  2580. },
  2581. splitLine:{show: false}
  2582. }
  2583. ],
  2584. series : [
  2585. {
  2586. name:'总收入',
  2587. type:'bar',
  2588. stack: '总量',
  2589. itemStyle:{
  2590. normal:{
  2591. barBorderColor:'rgba(0,0,0,0)',
  2592. color:'rgba(0,0,0,0)'
  2593. },
  2594. emphasis:{
  2595. barBorderColor:'rgba(0,0,0,0)',
  2596. color:'rgba(0,0,0,0)'
  2597. }
  2598. },
  2599. data:[0, 1700, 1400, 1200, 300, 0]
  2600. },
  2601. {
  2602. name:'渠道',
  2603. type:'bar',
  2604. stack: '总量',
  2605. data:[2900, 1200, 300, 200, 900, 300],
  2606. itemStyle: {
  2607. normal: {
  2608. color: '#2481ff'
  2609. }
  2610. }
  2611. }
  2612. ]
  2613. };
  2614. myChart.setOption(option);
  2615. });
  2616. // 支出渠道分析
  2617. $(function(){
  2618. var myChart = echarts.init($("#zhanbi03")[0]);
  2619. option = {
  2620. tooltip : {
  2621. trigger: 'axis',
  2622. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  2623. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  2624. },
  2625. formatter: function (params) {
  2626. var tar = params[0];
  2627. return tar.name + '<br/>' + tar.seriesName + ' : ' + tar.value;
  2628. }
  2629. },
  2630. xAxis : [
  2631. {
  2632. type : 'category',
  2633. splitLine: {show:false},
  2634. data : ['总收入','渠道A','渠道B','渠道C','渠道D','渠道E'],
  2635. axisLabel : {
  2636. formatter: '{value} ',
  2637. textStyle: {
  2638. color: '#a4a7ab',
  2639. align: 'right'
  2640. }
  2641. },
  2642. splitLine:{show: false}
  2643. }
  2644. ],
  2645. grid:{
  2646. borderWidth:0
  2647. },
  2648. yAxis : [
  2649. {
  2650. type : 'value',
  2651. axisLabel : {
  2652. formatter: '{value} ',
  2653. textStyle: {
  2654. color: '#a4a7ab',
  2655. align: 'right'
  2656. }
  2657. },
  2658. splitLine:{show: false}
  2659. }
  2660. ],
  2661. series : [
  2662. {
  2663. name:'总收入',
  2664. type:'bar',
  2665. stack: '总量',
  2666. itemStyle: {
  2667. normal: {
  2668. color: '#1afffd'
  2669. }
  2670. },
  2671. data:[0, 1700, 1400, 1200, 300, 0]
  2672. },
  2673. {
  2674. name:'渠道',
  2675. type:'bar',
  2676. stack: '总量',
  2677. itemStyle:{
  2678. normal:{
  2679. color:'#28a3e1'
  2680. }
  2681. },
  2682. data:[2900, 1200, 300, 200, 900, 300]
  2683. }
  2684. ]
  2685. };
  2686. myChart.setOption(option);
  2687. });
  2688. // 营销投入与销售量分析
  2689. $(function(){
  2690. var myChart = echarts.init($("#allAly01")[0]);
  2691. option = {
  2692. title : {
  2693. text: '销售量组成',
  2694. textStyle:{
  2695. color:"#e9ebee"
  2696. },
  2697. x:'center'
  2698. },
  2699. tooltip : {
  2700. trigger: 'item',
  2701. formatter: "{a} <br/>{b} : {c} ({d}%)"
  2702. },
  2703. legend: {
  2704. orient : 'vertical',
  2705. x : 'left',
  2706. data:['销售A','销售B','销售C','销售D','销售E'],
  2707. textStyle:{
  2708. color:"#e9ebee"
  2709. }
  2710. },
  2711. calculable : false,
  2712. series : [
  2713. {
  2714. name:'销售组成',
  2715. type:'pie',
  2716. radius : '55%',
  2717. center: ['50%', '60%'],
  2718. data:[
  2719. {value:335, name:'销售A',
  2720. itemStyle:{
  2721. normal:{
  2722. color:'#1afffd'
  2723. }
  2724. }
  2725. },
  2726. {value:310, name:'销售B',
  2727. itemStyle:{
  2728. normal:{
  2729. color:'#2e7cff'
  2730. }
  2731. }},
  2732. {value:234, name:'销售C',
  2733. itemStyle:{
  2734. normal:{
  2735. color:'#ffcb89'
  2736. }
  2737. }},
  2738. {value:135, name:'销售D',
  2739. itemStyle:{
  2740. normal:{
  2741. color:'#005ea1'
  2742. }
  2743. }},
  2744. {value:1548, name:'销售E',
  2745. itemStyle:{
  2746. normal:{
  2747. color:'#0ad5ff'
  2748. }
  2749. }}
  2750. ]
  2751. }
  2752. ]
  2753. };
  2754. myChart.setOption(option);
  2755. });
  2756. $(function(){
  2757. var myChart = echarts.init($("#allAly02")[0]);
  2758. option = {
  2759. title : {
  2760. text: '营销投入组成',
  2761. textStyle:{
  2762. color:"#e9ebee"
  2763. },
  2764. x:'center'
  2765. },
  2766. tooltip : {
  2767. trigger: 'item',
  2768. formatter: "{a} <br/>{b} : {c} ({d}%)"
  2769. },
  2770. legend: {
  2771. orient : 'vertical',
  2772. x : 'left',
  2773. data:['投入A','投入B','投入C','投入D','投入E','投入F','投入G','投入H','投入J'],
  2774. textStyle:{
  2775. color:"#e9ebee"
  2776. }
  2777. },
  2778. calculable : false,
  2779. series : [
  2780. {
  2781. name:'销售组成',
  2782. type:'pie',
  2783. radius : '55%',
  2784. center: ['50%', '60%'],
  2785. data:[
  2786. {value:335, name:'投入A',
  2787. itemStyle:{
  2788. normal:{
  2789. color:'#06b8f8'
  2790. }
  2791. }},
  2792. {value:310, name:'投入B',
  2793. itemStyle:{
  2794. normal:{
  2795. color:'#ff5c58'
  2796. }
  2797. }},
  2798. {value:234, name:'投入C',
  2799. itemStyle:{
  2800. normal:{
  2801. color:'#ffffb3'
  2802. }
  2803. }},
  2804. {value:135, name:'投入D',
  2805. itemStyle:{
  2806. normal:{
  2807. color:'#fee581'
  2808. }
  2809. }},
  2810. {value:1548, name:'投入E',
  2811. itemStyle:{
  2812. normal:{
  2813. color:'#1afffd'
  2814. }
  2815. }},
  2816. {value:135, name:'投入F',
  2817. itemStyle:{
  2818. normal:{
  2819. color:'#1ec7f1'
  2820. }
  2821. }},
  2822. {value:135, name:'投入G',
  2823. itemStyle:{
  2824. normal:{
  2825. color:'#e15828'
  2826. }
  2827. }},
  2828. {value:135, name:'投入H',
  2829. itemStyle:{
  2830. normal:{
  2831. color:'#28a3e1'
  2832. }
  2833. }},
  2834. {value:135, name:'投入J',
  2835. itemStyle:{
  2836. normal:{
  2837. color:'#72e7d5'
  2838. }
  2839. }}
  2840. ]
  2841. }
  2842. ]
  2843. };
  2844. myChart.setOption(option);
  2845. });
  2846. $(function(){
  2847. var myChart = echarts.init($("#allAly03")[0]);
  2848. option = {
  2849. title : {
  2850. text: '销售量与投入量分析',
  2851. textStyle:{
  2852. color:"#e9ebee"
  2853. },
  2854. x:'center'
  2855. },
  2856. tooltip : {
  2857. trigger: 'axis'
  2858. },
  2859. legend: {
  2860. orient : 'vertical',
  2861. x : 'left',
  2862. data:['营销投入量','销售量'],
  2863. textStyle:{
  2864. color:"#e9ebee"
  2865. },
  2866. },
  2867. calculable : false,
  2868. xAxis : [
  2869. {
  2870. type : 'category',
  2871. splitLine:{show: false},
  2872. axisLabel : {
  2873. formatter: '{value} ',
  2874. textStyle: {
  2875. color: '#a4a7ab',
  2876. align: 'right'
  2877. }
  2878. },
  2879. data : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月']
  2880. }
  2881. ],
  2882. yAxis : [
  2883. {
  2884. type : 'value',
  2885. splitLine:{show: false},
  2886. axisLabel : {
  2887. formatter: '{value} ',
  2888. textStyle: {
  2889. color: '#a4a7ab',
  2890. align: 'right'
  2891. }
  2892. }
  2893. }
  2894. ],
  2895. grid:{
  2896. borderWidth:0
  2897. },
  2898. series : [
  2899. {
  2900. name:'营销投入量',
  2901. type:'bar',
  2902. data:[2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3],
  2903. itemStyle: {
  2904. normal: {
  2905. color: '#2481ff'
  2906. }
  2907. },
  2908. markPoint : {
  2909. data : [
  2910. {type : 'max', name: '最大值'},
  2911. {type : 'min', name: '最小值'}
  2912. ]
  2913. },
  2914. markLine : {
  2915. data : [
  2916. {type : 'average', name: '平均值'}
  2917. ]
  2918. }
  2919. },
  2920. {
  2921. name:'销售量',
  2922. type:'bar',
  2923. data:[2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3],
  2924. itemStyle: {
  2925. normal: {
  2926. color: '#1afffd'
  2927. }
  2928. },
  2929. markPoint : {
  2930. data : [
  2931. {name : '最高', value : 182.2, xAxis: 7, yAxis: 183, symbolSize:18},
  2932. {name : '最低', value : 2.3, xAxis: 11, yAxis: 3}
  2933. ]
  2934. },
  2935. markLine : {
  2936. data : [
  2937. {type : 'average', name : '平均值'}
  2938. ]
  2939. }
  2940. }
  2941. ]
  2942. };
  2943. myChart.setOption(option);
  2944. });
  2945. }
  2946. function AnQuan(){
  2947. // 安全分析
  2948. // 事件趋势分析
  2949. $(function(){
  2950. var myChart = echarts.init($("#shijian01")[0]);
  2951. option = {
  2952. tooltip: {
  2953. trigger: "item",
  2954. formatter: "{a} <br/>{b} : {c}"
  2955. },
  2956. legend: {
  2957. x: 'center',
  2958. data: ["案件趋势分析"],
  2959. textStyle:{
  2960. color:"#e9ebee"
  2961. }
  2962. },
  2963. xAxis: [
  2964. {
  2965. type: "category",
  2966. name: "x",
  2967. splitLine:{show: false},
  2968. axisLabel : {
  2969. formatter: '{value} ',
  2970. textStyle: {
  2971. color: '#a4a7ab',
  2972. align: 'right'
  2973. }
  2974. },
  2975. data : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月']
  2976. }
  2977. ],
  2978. grid:{
  2979. borderWidth:0
  2980. },
  2981. yAxis: [
  2982. {
  2983. type: "log",
  2984. name: "y",
  2985. splitLine:{show: false},
  2986. data : ['10','30','50','70','90','110','120','130','150','170','190','210','250'],
  2987. axisLabel : {
  2988. textStyle: {
  2989. color: '#a4a7ab',
  2990. align: 'right'
  2991. }
  2992. },
  2993. }
  2994. ],
  2995. calculable: false,
  2996. series: [
  2997. {
  2998. name: "案件趋势分析",
  2999. type: "line",
  3000. data:[26, 59, 90, 26, 28, 70, 175, 182, 48, 188, 60, 23],
  3001. itemStyle: {
  3002. normal: {
  3003. color:"#0aabff"
  3004. }
  3005. }
  3006. }
  3007. ]
  3008. };
  3009. myChart.setOption(option);
  3010. });
  3011. // 事件级别分析
  3012. $(function(){
  3013. var myChart = echarts.init($("#shijian02")[0]);
  3014. var placeHoledStyle = {
  3015. normal:{
  3016. barBorderColor:'rgba(0,0,0,0)',
  3017. color:'rgba(0,0,0,0)'
  3018. },
  3019. emphasis:{
  3020. barBorderColor:'rgba(0,0,0,0)',
  3021. color:'rgba(0,0,0,0)'
  3022. }
  3023. };
  3024. var dataStyle = {
  3025. normal: {
  3026. label : {
  3027. show: true,
  3028. position: 'insideLeft',
  3029. formatter: '{c}%'
  3030. }
  3031. }
  3032. };
  3033. option = {
  3034. tooltip : {
  3035. trigger: 'axis',
  3036. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  3037. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  3038. },
  3039. formatter : '{b}<br/>{a0}:{c0}%<br/>{a2}:{c2}%<br/>{a4}:{c4}%<br/>{a6}:{c6}%'
  3040. },
  3041. legend: {
  3042. y: 55,
  3043. data:['极重', '严重','一般', '轻微'],
  3044. textStyle:{
  3045. color:"#fff"
  3046. }
  3047. },
  3048. grid: {
  3049. y: 80,
  3050. y2: 30
  3051. },
  3052. xAxis : [
  3053. {
  3054. type : 'value',
  3055. position: 'top',
  3056. splitLine: {show: false},
  3057. axisLabel: {show: false}
  3058. }
  3059. ],
  3060. yAxis : [
  3061. {
  3062. type : 'category',
  3063. splitLine: {show: false},
  3064. axisLabel : {
  3065. textStyle: {
  3066. color: '#fff',
  3067. align: 'right'
  3068. }
  3069. },
  3070. data : ['医疗事件', '消防事件', '民事事件', '刑事事件']
  3071. }
  3072. ],
  3073. series : [
  3074. {
  3075. name:'极重',
  3076. type:'bar',
  3077. stack: '总量',
  3078. data:[38, 50, 33, 72],
  3079. itemStyle: {
  3080. normal: {
  3081. color:"#1afffd"
  3082. }
  3083. }
  3084. },
  3085. {
  3086. name:'极重',
  3087. type:'bar',
  3088. stack: '总量',
  3089. itemStyle: placeHoledStyle,
  3090. data:[62, 50, 67, 28],
  3091. itemStyle: {
  3092. normal: {
  3093. color:"#2e7cff"
  3094. }
  3095. }
  3096. },
  3097. {
  3098. name:'严重',
  3099. type:'bar',
  3100. stack: '总量',
  3101. itemStyle : dataStyle,
  3102. data:[61, 41, 42, 30],
  3103. itemStyle: {
  3104. normal: {
  3105. color:"#ffcb89"
  3106. }
  3107. }
  3108. },
  3109. {
  3110. name:'严重',
  3111. type:'bar',
  3112. stack: '总量',
  3113. itemStyle: placeHoledStyle,
  3114. data:[39, 59, 58, 70],
  3115. itemStyle: {
  3116. normal: {
  3117. color:"#005ea1"
  3118. }
  3119. }
  3120. },
  3121. {
  3122. name:'一般',
  3123. type:'bar',
  3124. stack: '总量',
  3125. itemStyle : dataStyle,
  3126. data:[37, 35, 44, 60],
  3127. itemStyle: {
  3128. normal: {
  3129. color:"#0ad5ff"
  3130. }
  3131. }
  3132. },
  3133. {
  3134. name:'一般',
  3135. type:'bar',
  3136. stack: '总量',
  3137. itemStyle: placeHoledStyle,
  3138. data:[63, 65, 56, 40],
  3139. itemStyle: {
  3140. normal: {
  3141. color:"#e15828"
  3142. }
  3143. }
  3144. },
  3145. {
  3146. name:'轻微',
  3147. type:'bar',
  3148. stack: '总量',
  3149. itemStyle : dataStyle,
  3150. data:[71, 50, 31, 39],
  3151. itemStyle: {
  3152. normal: {
  3153. color:"#ff81cb"
  3154. }
  3155. }
  3156. },
  3157. {
  3158. name:'轻微',
  3159. type:'bar',
  3160. stack: '总量',
  3161. itemStyle: placeHoledStyle,
  3162. data:[29, 50, 69, 61],
  3163. itemStyle: {
  3164. normal: {
  3165. color:"#feb602"
  3166. }
  3167. }
  3168. }
  3169. ]
  3170. };
  3171. myChart.setOption(option);
  3172. });
  3173. // 事件类型分析
  3174. $(function(){
  3175. var myChart = echarts.init($("#shijian03")[0]);
  3176. var labelTop = {
  3177. normal : {
  3178. label : {
  3179. show : true,
  3180. position : 'center',
  3181. formatter : '{b}',
  3182. textStyle: {
  3183. baseline : 'bottom'
  3184. }
  3185. },
  3186. labelLine : {
  3187. show : false
  3188. }
  3189. }
  3190. };
  3191. var labelFromatter = {
  3192. normal : {
  3193. label : {
  3194. formatter : function (params){
  3195. return 100 - params.value + '%'
  3196. },
  3197. textStyle: {
  3198. baseline : 'top'
  3199. }
  3200. }
  3201. },
  3202. }
  3203. var labelBottom = {
  3204. normal : {
  3205. color: '#111b21',
  3206. label : {
  3207. show : true,
  3208. position : 'center'
  3209. },
  3210. labelLine : {
  3211. show : false
  3212. }
  3213. },
  3214. emphasis: {
  3215. color: 'rgba(0,0,0,0)'
  3216. }
  3217. };
  3218. var radius = [40, 55];
  3219. option = {
  3220. legend: {
  3221. x : 'center',
  3222. textStyle:{
  3223. color:"#fff"
  3224. },
  3225. data:[
  3226. '医疗','消防','民事','刑事','其它'
  3227. ]
  3228. },
  3229. series : [
  3230. {
  3231. type : 'pie',
  3232. center : ['10%', '30%'],
  3233. radius : radius,
  3234. x: '0%', // for funnel
  3235. itemStyle : labelFromatter,
  3236. data : [
  3237. {name:'解决', value:46, itemStyle : labelBottom},
  3238. {name:'医疗', value:54,itemStyle : labelTop}
  3239. ],
  3240. itemStyle: {
  3241. normal: {
  3242. color:"#0ad5ff"
  3243. }
  3244. }
  3245. },
  3246. {
  3247. type : 'pie',
  3248. center : ['30%', '30%'],
  3249. radius : radius,
  3250. x:'20%', // for funnel
  3251. itemStyle : labelFromatter,
  3252. data : [
  3253. {name:'解决', value:56, itemStyle : labelBottom},
  3254. {name:'消防', value:44,itemStyle : labelTop}
  3255. ],
  3256. itemStyle: {
  3257. normal: {
  3258. color:"#ffcb89"
  3259. }
  3260. }
  3261. },
  3262. {
  3263. type : 'pie',
  3264. center : ['50%', '30%'],
  3265. radius : radius,
  3266. x:'40%', // for funnel
  3267. itemStyle : labelFromatter,
  3268. data : [
  3269. {name:'解决', value:65, itemStyle : labelBottom},
  3270. {name:'民事', value:35,itemStyle : labelTop}
  3271. ],
  3272. itemStyle: {
  3273. normal: {
  3274. color:"#2e7cff"
  3275. }
  3276. }
  3277. },
  3278. {
  3279. type : 'pie',
  3280. center : ['70%', '30%'],
  3281. radius : radius,
  3282. x:'60%', // for funnel
  3283. itemStyle : labelFromatter,
  3284. data : [
  3285. {name:'解决', value:70, itemStyle : labelBottom},
  3286. {name:'刑事', value:30,itemStyle : labelTop}
  3287. ],
  3288. itemStyle: {
  3289. normal: {
  3290. color:"#4cffd3"
  3291. }
  3292. }
  3293. },
  3294. {
  3295. type : 'pie',
  3296. center : ['90%', '30%'],
  3297. radius : radius,
  3298. // for funnel
  3299. x:'80%', // for funnel
  3300. itemStyle : labelFromatter,
  3301. data : [
  3302. {name:'解决', value:70, itemStyle : labelBottom},
  3303. {name:'其它', value:11,itemStyle : labelTop}
  3304. ],
  3305. itemStyle: {
  3306. normal: {
  3307. color:"#feb602"
  3308. }
  3309. }
  3310. }
  3311. ]
  3312. };
  3313. myChart.setOption(option);
  3314. });
  3315. // 事发时间特征分析
  3316. $(function(){
  3317. var myChart = echarts.init($("#shijian04")[0]);
  3318. option = {
  3319. tooltip : {
  3320. trigger: 'axis',
  3321. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  3322. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  3323. }
  3324. },
  3325. legend: {
  3326. data:['医疗事件', '消防事件','刑事','民事','其它'],
  3327. textStyle:{
  3328. color:"#fff"
  3329. },
  3330. },
  3331. calculable : false,
  3332. xAxis : [
  3333. {
  3334. type : 'value',
  3335. splitLine: {show: false},
  3336. axisLabel : {
  3337. textStyle: {
  3338. color: '#fff',
  3339. align: 'right'
  3340. }
  3341. },
  3342. }
  3343. ],
  3344. yAxis : [
  3345. {
  3346. type : 'category',
  3347. splitLine: {show: false},
  3348. axisLabel : {
  3349. textStyle: {
  3350. color: '#fff',
  3351. align: 'right'
  3352. }
  3353. },
  3354. data: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12','13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24']
  3355. }
  3356. ],
  3357. series : [
  3358. {
  3359. name:'医疗事件',
  3360. type:'bar',
  3361. stack: '总量',
  3362. itemStyle : { normal: {label : {show: true, position: 'insideRight'}}},
  3363. data: [12, 13, 10, 16, 19, 23, 21, 23, 20, 26, 27, 30,12, 12, 11, 14, 19, 23, 21, 20, 20, 25, 28, 30]
  3364. ,
  3365. itemStyle: {
  3366. normal: {
  3367. color:"#0ad5ff"
  3368. }
  3369. }
  3370. },
  3371. {
  3372. name:'消防事件',
  3373. type:'bar',
  3374. stack: '总量',
  3375. itemStyle : { normal: {label : {show: true, position: 'insideRight'}}},
  3376. data: [1, 13, 0, 16, 19, 23, 21, 23, 20, 26, 27, 30,12, 12, 11, 14, 19, 23, 21, 20, 0, 25, 8, 30]
  3377. ,
  3378. itemStyle: {
  3379. normal: {
  3380. color:"#005ea1"
  3381. }
  3382. }
  3383. },
  3384. {
  3385. name:'刑事',
  3386. type:'bar',
  3387. stack: '总量',
  3388. itemStyle : { normal: {label : {show: true, position: 'insideRight'}}},
  3389. data: [12, 13, 10, 16, 19, 3, 2, 3, 0, 6, 9, 30,12, 12, 11, 14, 1, 3, 1, 2, 0, 5, 2, 0]
  3390. ,
  3391. itemStyle: {
  3392. normal: {
  3393. color:"#ffcb89"
  3394. }
  3395. }
  3396. },
  3397. {
  3398. name:'民事',
  3399. type:'bar',
  3400. stack: '总量',
  3401. itemStyle : { normal: {label : {show: true, position: 'insideRight'}}},
  3402. data: [2, 13, 10, 6, 19, 23, 21, 3, 20, 6, 7, 30,12, 12, 11, 14, 19, 3, 21, 0, 20, 5, 8, 0]
  3403. ,
  3404. itemStyle: {
  3405. normal: {
  3406. color:"#2e7cff"
  3407. }
  3408. }
  3409. },
  3410. {
  3411. name:'其它',
  3412. type:'bar',
  3413. stack: '总量',
  3414. itemStyle : { normal: {label : {show: true, position: 'insideRight'}}},
  3415. data: [1, 3, 10, 6, 9, 3, 11, 3, 0, 6, 7, 0,2, 2, 1, 4, 9, 3, 1, 0, 0, 5, 8, 3]
  3416. ,
  3417. itemStyle: {
  3418. normal: {
  3419. color:"#1afffd"
  3420. }
  3421. }
  3422. }
  3423. ]
  3424. };
  3425. myChart.setOption(option);
  3426. });
  3427. }