index.js 114 KB

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