index.js 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161
  1. $(function(){
  2. /*标准*/
  3. var radar = echarts.init(document.getElementById('radar'));
  4. option = {
  5. title: {
  6. text: ''
  7. },
  8. tooltip: {},
  9. legend: {
  10. data: ['第一标准', '第二标准','第三标准'],
  11. x:"center",
  12. y:'bottom',
  13. textStyle:{
  14. color:"#fff"
  15. }
  16. },
  17. color: ['#4c95d9', '#f6731b', '#8cd43f'],
  18. radar: {
  19. name:{
  20. textStyle: {
  21. //设置颜色
  22. color:'#fff'
  23. }
  24. },
  25. indicator: [
  26. { name: 'test1', max: 6500},
  27. { name: 'test2', max: 16000},
  28. { name: 'test3', max: 30000},
  29. { name: 'test4', max: 38000},
  30. { name: 'test5', max: 52000},
  31. { name: 'test6', max: 25000}
  32. ],
  33. center: ['50%','50%'],
  34. radius: "58%"
  35. },
  36. series: [{
  37. name: '',
  38. type: 'radar',
  39. itemStyle : {
  40. normal : {
  41. splitLine: {
  42. lineStyle: {
  43. }
  44. },
  45. label: {
  46. show: false,
  47. textStyle:{
  48. },
  49. formatter:function(params) {
  50. return params.value;}
  51. },
  52. }
  53. },
  54. data : [
  55. {
  56. value : [2400, 10000, 28000, 35000, 50000, 19000],
  57. name : '第一标准'
  58. },
  59. {
  60. value : [5000, 14000, 28000, 31000, 42000, 21000],
  61. name : '第二标准'
  62. },
  63. {
  64. value : [6000, 14000, 18000, 21000, 32000, 11000],
  65. name : '第三标准'
  66. }
  67. ]
  68. }]
  69. };
  70. radar.setOption(option);
  71. //
  72. //
  73. //
  74. /* 飞鸟尽*/
  75. var graduateyear = echarts.init(document.getElementById('graduateyear'));
  76. option = {
  77. title : {
  78. text:"",
  79. x:'center',
  80. y:'top',
  81. textStyle:
  82. {
  83. color:'#fff',
  84. fontSize:13
  85. }
  86. },
  87. tooltip : {
  88. trigger: 'axis'
  89. },
  90. grid: {
  91. left: '3%',
  92. right: '8%',
  93. bottom: '5%',
  94. top:"13%",
  95. containLabel: true
  96. },
  97. color:["#72b332",'#35a9e0'],
  98. legend: {
  99. data:['test1','test2'],
  100. show:true,
  101. right:'15%',
  102. y:"0",
  103. textStyle:{
  104. color:"#999",
  105. fontSize:'13'
  106. },
  107. },
  108. toolbox: {
  109. show : false,
  110. feature : {
  111. mark : {show: true},
  112. dataView : {show: true, readOnly: false},
  113. magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
  114. restore : {show: true},
  115. saveAsImage : {show: true}
  116. }
  117. },
  118. calculable : true,
  119. xAxis : [
  120. {
  121. type : 'category',
  122. boundaryGap : false,
  123. data : ['2022年','2023年','2024年','2025年','2026年','2027年','2028年'],
  124. splitLine:{
  125. show:true,
  126. lineStyle:{
  127. color: '#2d3b53'
  128. }
  129. },
  130. axisLabel:{
  131. textStyle:{
  132. color:"#fff"
  133. },
  134. alignWithLabel: true,
  135. interval:0,
  136. rotate:'15'
  137. }
  138. }
  139. ],
  140. yAxis : [
  141. {
  142. type : 'value',
  143. splitLine:{
  144. show:true,
  145. lineStyle:{
  146. color: '#2d3b53'
  147. }
  148. },
  149. axisLabel:{
  150. textStyle:{
  151. color:"#999"
  152. }
  153. },
  154. }
  155. ],
  156. series : [
  157. {
  158. name:'test1',
  159. type:'line',
  160. smooth:true,
  161. symbol:'roundRect',
  162. data:[1168,1189,1290,1300,1345,1256,1045]
  163. },
  164. {
  165. name:'test2',
  166. type:'line',
  167. smooth:true,
  168. symbol:'roundRect',
  169. data:[1234,1290,1311,1145,1045,900,673]
  170. }
  171. ]
  172. };
  173. graduateyear.setOption(option);
  174. /*==*/
  175. var sexrate = echarts.init(document.getElementById('sexrate'));
  176. var total = {
  177. name: '=='
  178. };
  179. option = {
  180. title: [{
  181. text: total.name,
  182. left: '48%',
  183. top: '34%',
  184. textAlign: 'center',
  185. textBaseline: 'middle',
  186. textStyle: {
  187. color: '#fff',
  188. fontWeight: 'normal',
  189. fontSize: 18
  190. }
  191. }, {
  192. text: total.value,
  193. left: '48%',
  194. top: '44%',
  195. textAlign: 'center',
  196. textBaseline: 'middle',
  197. textStyle: {
  198. color: '#fff',
  199. fontWeight: 'normal',
  200. fontSize: 18
  201. }
  202. }],
  203. tooltip : {
  204. trigger: 'item',
  205. formatter: "{a} <br/>{b} : {c} ({d}%)"
  206. },
  207. color:['#70a3ff','#ff7f4e'],
  208. legend: {
  209. orient: 'vertical',
  210. x:'center',
  211. bottom:'5%',
  212. selectedMode:false,
  213. formatter:function(name){
  214. var oa = option.series[0].data;
  215. var num = oa[0].value + oa[1].value ;
  216. for(var i = 0; i < option.series[0].data.length; i++){
  217. if(name==oa[i].name){
  218. return name + " "+oa[i].value+" "+ (oa[i].value / num * 100).toFixed(2) + '%';
  219. }
  220. }
  221. },
  222. data: ['test1','test2'],
  223. show:true,
  224. textStyle:{
  225. color:'#fff',
  226. fontWeight:'bold'
  227. },
  228. },
  229. series : [
  230. {
  231. name: 'PK',
  232. type: 'pie',
  233. selectedMode: 'single',
  234. radius: ['45%', '55%'],
  235. center: ['50%', '40%'],
  236. data: [
  237. {value: 2629, name: 'test1'},
  238. {value: 2507, name: 'test2'}
  239. ],
  240. label: {
  241. normal: {
  242. show: false,
  243. position: "outer",
  244. align:'left',
  245. textStyle: {
  246. rotate:true
  247. }
  248. }
  249. },
  250. itemStyle: {
  251. emphasis: {
  252. shadowBlur: 10,
  253. shadowOffsetX: 0,
  254. shadowColor: 'rgba(0, 0, 0, 0.5)'
  255. },
  256. normal: {
  257. label:{
  258. show: true,
  259. formatter: '{b} {c}'
  260. }
  261. }
  262. }
  263. }
  264. ]
  265. };
  266. sexrate.setOption(option);
  267. var householdrate = echarts.init(document.getElementById('householdrate'));
  268. var total = {
  269. name: '=='
  270. };
  271. option = {
  272. title: [{
  273. text: total.name,
  274. left: '48%',
  275. top: '34%',
  276. textAlign: 'center',
  277. textBaseline: 'middle',
  278. textStyle: {
  279. color: '#fff',
  280. fontWeight: 'normal',
  281. fontSize: 18
  282. }
  283. }, {
  284. text: total.value,
  285. left: '48%',
  286. top: '44%',
  287. textAlign: 'center',
  288. textBaseline: 'middle',
  289. textStyle: {
  290. color: '#fff',
  291. fontWeight: 'normal',
  292. fontSize: 18
  293. }
  294. }],
  295. tooltip : {
  296. trigger: 'item',
  297. formatter: "{a} <br/>{b} : {c} ({d}%)"
  298. },
  299. color:['#4f9de7','#4acf79'],
  300. legend: {
  301. orient: 'vertical',
  302. x:'center',
  303. bottom:'5%',
  304. selectedMode:false,
  305. formatter:function(name){
  306. var oa = option.series[0].data;
  307. var num = oa[0].value + oa[1].value ;
  308. for(var i = 0; i < option.series[0].data.length; i++){
  309. if(name==oa[i].name){
  310. return name + " "+oa[i].value+" "+ (oa[i].value / num * 100).toFixed(2) + '%';
  311. }
  312. }
  313. },
  314. data: ['test1','test2'],
  315. show:true,
  316. textStyle:{
  317. color:'#fff',
  318. fontWeight:'bold'
  319. },
  320. },
  321. series : [
  322. {
  323. name: 'FK',
  324. type: 'pie',
  325. selectedMode: 'single',
  326. radius: ['45%', '55%'],
  327. center: ['50%', '40%'],
  328. data: [
  329. {value: 2629, name: 'test1'},
  330. {value: 2507, name: 'test2'}
  331. ],
  332. label: {
  333. normal: {
  334. show: false,
  335. position: "outer",
  336. align:'left',
  337. textStyle: {
  338. rotate:true
  339. }
  340. }
  341. },
  342. itemStyle: {
  343. emphasis: {
  344. shadowBlur: 10,
  345. shadowOffsetX: 0,
  346. shadowColor: 'rgba(0, 0, 0, 0.5)'
  347. },
  348. normal: {
  349. label:{
  350. show: true,
  351. formatter: '{b} {c}'
  352. }
  353. }
  354. }
  355. }
  356. ]
  357. };
  358. householdrate.setOption(option);
  359. /* =====-=*/
  360. var courserate = echarts.init(document.getElementById('courserate'));
  361. option = {
  362. tooltip : {
  363. trigger: 'item',
  364. formatter: "{a} <br/>{b} : {c} ({d}%)"
  365. },
  366. legend: {
  367. orient: 'vertical',
  368. right: '0',
  369. y:'middle',
  370. textStyle:{
  371. color:"#fff"
  372. },
  373. formatter:function(name){
  374. var oa = option.series[0].data;
  375. var num = oa[0].value + oa[1].value + oa[2].value + oa[3].value+oa[4].value+oa[5].value;
  376. for(var i = 0; i < option.series[0].data.length; i++){
  377. if(name==oa[i].name){
  378. return name + ' '+oa[i].value;
  379. }
  380. }
  381. },
  382. data: ['test1','test2','test3','test4','test5','text6']
  383. },
  384. series : [
  385. {
  386. name: 'FK',
  387. type: 'pie',
  388. radius : '45%',
  389. color:['#27c2c1','#9ccb63','#fcd85a','#60c1de','#0084c8','#d8514b'],
  390. center: ['38%', '50%'],
  391. data:[
  392. {value:335, name:'test1'},
  393. {value:310, name:'test2'},
  394. {value:234, name:'test3'},
  395. {value:135, name:'test4'},
  396. {value:234, name:'test5'},
  397. {value:234, name:'text6'}
  398. ],
  399. itemStyle: {
  400. emphasis: {
  401. shadowBlur: 10,
  402. shadowOffsetX: 0,
  403. shadowColor: 'rgba(0, 0, 0, 0.5)'
  404. }
  405. },
  406. itemStyle: {
  407. normal: {
  408. label:{
  409. show: true,
  410. position:'outside',
  411. formatter: '{b}'
  412. }
  413. },
  414. labelLine :{show:true}
  415. }
  416. }
  417. ]
  418. };
  419. courserate.setOption(option);
  420. /* =======*/
  421. var professionrate = echarts.init(document.getElementById('professionrate'));
  422. option = {
  423. tooltip : {
  424. trigger: 'item',
  425. formatter: "{a} <br/>{b} : {c} ({d}%)"
  426. },
  427. legend: {
  428. orient: 'vertical',
  429. right: '0',
  430. y:'middle',
  431. textStyle:{
  432. color:"#fff"
  433. },
  434. data: ['test1','test2','test3'],
  435. formatter:function(name){
  436. var oa = option.series[0].data;
  437. var num = oa[0].value + oa[1].value + oa[2].value;
  438. for(var i = 0; i < option.series[0].data.length; i++){
  439. if(name==oa[i].name){
  440. return name + ' '+oa[i].value;
  441. }
  442. }
  443. }
  444. },
  445. series : [
  446. {
  447. name: 'FK',
  448. type: 'pie',
  449. radius : '60%',
  450. center: ['35%', '50%'],
  451. data:[
  452. {value:335, name:'test1'},
  453. {value:310, name:'test2'},
  454. {value:234, name:'test3'}
  455. ],
  456. itemStyle: {
  457. emphasis: {
  458. shadowBlur: 10,
  459. shadowOffsetX: 0,
  460. shadowColor: 'rgba(0, 0, 0, 0.5)'
  461. }
  462. },
  463. itemStyle: {
  464. normal: {
  465. label:{
  466. show: true,
  467. position:'outside',
  468. formatter: ' {b}'
  469. }
  470. },
  471. labelLine :{show:true}
  472. }
  473. }
  474. ]
  475. };
  476. professionrate.setOption(option);
  477. /* 比例变化*/
  478. var changedetail = echarts.init(document.getElementById('changedetail'));
  479. option = {
  480. tooltip: {
  481. trigger: 'axis',
  482. formatter: '{b}</br>{a}: {c}</br>{a1}: {c1}'
  483. },
  484. toolbox: {
  485. show:false,
  486. feature: {
  487. dataView: {show: true, readOnly: false},
  488. magicType: {show: true, type: ['line', 'bar']},
  489. restore: {show: true},
  490. saveAsImage: {show: true}
  491. }
  492. },
  493. legend: {
  494. data:['',''],
  495. show:false
  496. },
  497. grid:{
  498. top:'18%',
  499. right:'5%',
  500. bottom:'8%',
  501. left:'5%',
  502. containLabel: true
  503. },
  504. xAxis: [
  505. {
  506. type: 'category',
  507. data: ['2021年','2022年','2023年','2024年','2025年'],
  508. splitLine:{
  509. show:false,
  510. lineStyle:{
  511. color: '#3c4452'
  512. }
  513. },
  514. axisTick: {
  515. show: false
  516. },
  517. axisLabel:{
  518. textStyle:{
  519. color:"#fff"
  520. },
  521. lineStyle:{
  522. color: '#519cff'
  523. },
  524. alignWithLabel: true,
  525. interval:0
  526. }
  527. }
  528. ],
  529. yAxis: [
  530. {
  531. type: 'value',
  532. name: '嘎嘎',
  533. nameTextStyle:{
  534. color:'#fff'
  535. },
  536. interval: 5,
  537. max:50,
  538. min: 0,
  539. splitLine:{
  540. show:true,
  541. lineStyle:{
  542. color: '#23303f'
  543. }
  544. },
  545. axisLine: {
  546. show:false,
  547. lineStyle: {
  548. color: '#115372'
  549. }
  550. },
  551. axisTick: {
  552. show: false
  553. },
  554. axisLabel:{
  555. textStyle:{
  556. color:"#fff"
  557. },
  558. alignWithLabel: true,
  559. interval:0
  560. }
  561. },
  562. {
  563. min: 0,
  564. max: 2.5,
  565. interval: 0.5,
  566. type: 'value',
  567. name: '哈哈',
  568. nameTextStyle:{
  569. color:'#fff'
  570. },
  571. splitLine:{
  572. show:true,
  573. lineStyle:{
  574. color: '#23303f'
  575. }
  576. },
  577. axisLine: {
  578. show:false,
  579. lineStyle: {
  580. color: '#115372'
  581. }
  582. },
  583. axisTick: {
  584. show: false
  585. },
  586. axisLabel:{
  587. textStyle:{
  588. color:"#fff"
  589. },
  590. alignWithLabel: true,
  591. interval:0
  592. }
  593. }
  594. ],
  595. color:"yellow",
  596. series: [
  597. {
  598. name:'test1',
  599. type:'bar',
  600. data:[2, 4, 7, 23, 25],
  601. boundaryGap: '45%',
  602. barWidth:'40%',
  603. itemStyle: {
  604. normal: {
  605. color: function(params) {
  606. var colorList = [
  607. '#6bc0fb','#7fec9d','#fedd8b','#ffa597','#84e4dd'
  608. ];
  609. return colorList[params.dataIndex]
  610. },label: {
  611. show: true,
  612. position: 'top',
  613. formatter: '{c}'
  614. }
  615. }
  616. }
  617. },
  618. {
  619. name:'test2',
  620. type:'line',
  621. yAxisIndex: 1,
  622. lineStyle: {
  623. normal: {
  624. color:'#c39705'
  625. }
  626. },
  627. data:[1.0, 0.5, 0.8, 0.9, 0.6]
  628. }
  629. ]
  630. };
  631. changedetail.setOption(option);
  632. /* ===*/
  633. var juniorservice = echarts.init(document.getElementById('juniorservice'));
  634. option = {
  635. tooltip : {
  636. trigger: 'axis',
  637. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  638. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  639. }
  640. },
  641. color:['#eaff00','#22ac38'],
  642. legend: {
  643. right:'0',
  644. data: ['test1', 'test2'],
  645. textStyle:{
  646. color:'#00ffff'
  647. }
  648. },
  649. grid: {
  650. left: '8%',
  651. right: '4%',
  652. bottom: '3%',
  653. top:'10%',
  654. containLabel: true
  655. },
  656. xAxis: {
  657. type: 'value',
  658. splitLine:{
  659. show:true,
  660. lineStyle:{
  661. color: '#1e2b43'
  662. }
  663. },
  664. axisLine: {
  665. show:false,
  666. lineStyle: {
  667. color: '#115372'
  668. }
  669. },
  670. axisTick: {
  671. show: false
  672. },
  673. axisLabel:{
  674. textStyle:{
  675. color:"#fff"
  676. },
  677. alignWithLabel: true,
  678. interval:0
  679. }
  680. },
  681. dataZoom: [{
  682. type: 'slider',
  683. yAxisIndex: 0,
  684. filterMode: 'empty',
  685. start: 0,
  686. x:'0',
  687. end: 60,
  688. handleStyle:{
  689. color:"#519cff",
  690. backgroundColor:'#519cff'
  691. },
  692. textStyle:{
  693. color:"#fff"},
  694. borderColor:"#519cff"
  695. }],
  696. yAxis: {
  697. type: 'category',
  698. data: ['a','b','c',' d','e','f','g','h','i','j',' k','l','m','n'],
  699. splitLine:{
  700. show:false,
  701. lineStyle:{
  702. color: '#1e2b43'
  703. }
  704. },
  705. axisTick: {
  706. show: false
  707. },
  708. axisLine: {
  709. show:true,
  710. lineStyle: {
  711. color: '#115372'
  712. }
  713. },
  714. axisLabel:{
  715. textStyle:{
  716. color:"#419aff"
  717. },
  718. lineStyle:{
  719. color: '#519cff'
  720. },
  721. alignWithLabel: true,
  722. interval:0
  723. }
  724. },
  725. series: [
  726. {
  727. name: 'test1',
  728. type: 'bar',
  729. stack: '比例',
  730. label: {
  731. normal: {
  732. show: true,
  733. position: 'insideRight',
  734. textStyle:{
  735. color:'#333'
  736. }
  737. }
  738. },
  739. data: [320, 302, 301, 334, 390, 330, 320,320, 302, 301, 334, 390, 330,123]
  740. },
  741. {
  742. name: 'test2',
  743. type: 'bar',
  744. stack: '比例',
  745. label: {
  746. normal: {
  747. show: true,
  748. position: 'right',
  749. textStyle:{
  750. color:'#00f0ff'
  751. }
  752. }
  753. },
  754. data: [120, 132, 101, 134, 90, 230, 210,120, 132, 101, 134, 90, 230,243]
  755. }
  756. ]
  757. };
  758. juniorservice.setOption(option);
  759. /* ===*/
  760. var edubalance = echarts.init(document.getElementById('edubalance'));
  761. option = {
  762. tooltip: {
  763. trigger: 'axis',
  764. formatter: '{b}</br>{a}: {c}</br>{a1}: {c1}</br>{a2}: {c2}</br>{a3}: {c3}'
  765. },
  766. toolbox: {
  767. show:false,
  768. feature: {
  769. dataView: {show: true, readOnly: false},
  770. magicType: {show: true, type: ['line', 'bar']},
  771. restore: {show: true},
  772. saveAsImage: {show: true}
  773. }
  774. },
  775. legend: {
  776. data:['test1','test2','test3','test4','test5'],
  777. right:"15%",
  778. textStyle:{
  779. color:'#fff'
  780. }
  781. },
  782. grid:{
  783. top:'18%',
  784. right:'5%',
  785. bottom:'8%',
  786. left:'5%',
  787. containLabel: true
  788. },
  789. xAxis: [
  790. {
  791. type: 'category',
  792. data: ['工藤新一','工藤新一','工藤新一','工藤新一'],
  793. splitLine:{
  794. show:false,
  795. lineStyle:{
  796. color: '#3c4452'
  797. }
  798. },
  799. axisTick: {
  800. show: false
  801. },
  802. axisLabel:{
  803. textStyle:{
  804. color:"#fff"
  805. },
  806. lineStyle:{
  807. color: '#519cff'
  808. },
  809. alignWithLabel: true,
  810. interval:0,
  811. }
  812. }
  813. ],
  814. yAxis: [
  815. {
  816. type: 'value',
  817. nameTextStyle:{
  818. color:'#fff'
  819. },
  820. interval: 5,
  821. max:50,
  822. min: 0,
  823. splitLine:{
  824. show:true,
  825. lineStyle:{
  826. color: '#23303f'
  827. }
  828. },
  829. axisLine: {
  830. show:false,
  831. lineStyle: {
  832. color: '#115372'
  833. }
  834. },
  835. axisTick: {
  836. show: false
  837. },
  838. axisLabel:{
  839. textStyle:{
  840. color:"#fff"
  841. },
  842. alignWithLabel: true,
  843. interval:0
  844. }
  845. },
  846. {
  847. min: 0,
  848. max: 100,
  849. interval: 20,
  850. type: 'value',
  851. name: '所',
  852. nameTextStyle:{
  853. color:'#fff'
  854. },
  855. splitLine:{
  856. show:true,
  857. lineStyle:{
  858. color: '#23303f'
  859. }
  860. },
  861. axisLine: {
  862. show:false,
  863. lineStyle: {
  864. color: '#115372'
  865. }
  866. },
  867. axisTick: {
  868. show: false
  869. },
  870. axisLabel:{
  871. textStyle:{
  872. color:"#fff"
  873. },
  874. alignWithLabel: true,
  875. interval:0
  876. }
  877. }
  878. ],
  879. color:"yellow",
  880. series: [
  881. {
  882. name:'test1',
  883. type:'bar',
  884. data:[21, 14, 17, 12],
  885. itemStyle: {
  886. normal: {
  887. color: '#76da91'
  888. },label: {
  889. show: true,
  890. position: 'top',
  891. formatter: '{c}'
  892. }
  893. }
  894. },
  895. {
  896. name:'test2',
  897. type:'bar',
  898. data:[12, 14, 17, 23],
  899. itemStyle: {
  900. normal: {
  901. color: '#f8cb7f'},
  902. label: {
  903. show: true,
  904. position: 'top',
  905. formatter: '{c}'
  906. }
  907. }
  908. },
  909. {
  910. name:'test3',
  911. type:'bar',
  912. data:[12, 14, 17, 13],
  913. itemStyle: {
  914. normal: {
  915. color: '#f89588'},
  916. label: {
  917. show: true,
  918. position: 'top',
  919. formatter: '{c}'
  920. }
  921. }
  922. },
  923. {
  924. name:'test4',
  925. type:'bar',
  926. data:[2, 4, 7, 3],
  927. itemStyle: {
  928. normal: {
  929. color: '#7cd6cf'},
  930. label: {
  931. show: true,
  932. position: 'top',
  933. formatter: '{c}'
  934. }
  935. }
  936. },
  937. {
  938. name:'test5',
  939. type:'line',
  940. yAxisIndex: 1,
  941. lineStyle: {
  942. normal: {
  943. color:'#c39705'
  944. }
  945. },
  946. data:[30, 10, 90,75]
  947. }
  948. ]
  949. };
  950. edubalance.setOption(option);
  951. /* 地图 需要哪个省市的地图直接引用js 将下面的name以及mapType修改为对应省市名称*/
  952. var maps = echarts.init(document.getElementById('mapadd'));
  953. option = {
  954. tooltip : {
  955. trigger: 'item',
  956. formatter: '{b}'
  957. },
  958. series : [{
  959. name: '山东',
  960. type: 'map',
  961. mapType: '山东',
  962. roam: false,
  963. top:'8%',
  964. zoom:1.2,
  965. x:'25%',
  966. selectedMode : 'single',//multiple多选
  967. itemStyle:{
  968. normal:{
  969. label:{
  970. show:true,
  971. textStyle: {
  972. color: "#231816"
  973. }
  974. },
  975. areaStyle:{color:'#B1D0EC'},
  976. color:'#B1D0EC',
  977. borderColor:'#dadfde'//区块的边框颜色
  978. },
  979. emphasis:{//鼠标hover样式
  980. label:{
  981. show:true,
  982. textStyle:{
  983. color:'#fa4f04'
  984. }
  985. },
  986. areaStyle:{color:'red'}
  987. }
  988. },
  989. data:[
  990. {name:'济南市',
  991. itemStyle: {
  992. normal: {
  993. areaColor: '#13d5ff',
  994. borderColor: '#edce00'
  995. }
  996. }
  997. },
  998. {name:'德州市',
  999. itemStyle: {
  1000. normal: {
  1001. areaColor: '#13d5ff',
  1002. borderColor: '#0abcee'
  1003. }
  1004. }
  1005. },
  1006. {name:'聊城市',
  1007. itemStyle: {
  1008. normal: {
  1009. areaColor: '#92d050',
  1010. borderColor: '#1ca9f2'
  1011. }
  1012. }
  1013. },
  1014. {name:'泰安市',
  1015. itemStyle: {
  1016. normal: {
  1017. areaColor: '#88ddf5',
  1018. borderColor: '#88ddf5',
  1019. }
  1020. }
  1021. },
  1022. {name:'莱芜市',
  1023. itemStyle: {
  1024. normal: {
  1025. areaColor: '#13d5ff',
  1026. borderColor: '#45b5ef',
  1027. }
  1028. }
  1029. },
  1030. {name:'菏泽市',
  1031. itemStyle: {
  1032. normal: {
  1033. areaColor: '#13d5ff',
  1034. borderColor: '#45b5ef'
  1035. }
  1036. }
  1037. },
  1038. {name:'枣庄市',
  1039. itemStyle: {
  1040. normal: {
  1041. areaColor: '#45b5ef',
  1042. borderColor: '#45b5ef',
  1043. }
  1044. }
  1045. },
  1046. {name:'济宁市',
  1047. itemStyle: {
  1048. normal: {
  1049. areaColor: '#ffd811',
  1050. borderColor: '#45b5ef',
  1051. }
  1052. }
  1053. },
  1054. {name:'临沂市',
  1055. itemStyle: {
  1056. normal: {
  1057. areaColor: '#ffa312',
  1058. borderColor: '#45b5ef',
  1059. }
  1060. }
  1061. },
  1062. {name:'青岛市',
  1063. itemStyle: {
  1064. normal: {
  1065. areaColor: '#92d050',
  1066. borderColor: '#1ca9f2'
  1067. }
  1068. }
  1069. },
  1070. {name:'烟台市',
  1071. itemStyle: {
  1072. normal: {
  1073. areaColor: '#88ddf5',
  1074. borderColor: '#88ddf5',
  1075. }
  1076. }
  1077. },
  1078. {name:'威海市',
  1079. itemStyle: {
  1080. normal: {
  1081. areaColor: '#13d5ff',
  1082. borderColor: '#45b5ef',
  1083. }
  1084. }
  1085. },
  1086. {name:'潍坊市',
  1087. itemStyle: {
  1088. normal: {
  1089. areaColor: '#13d5ff',
  1090. borderColor: '#45b5ef'
  1091. }
  1092. }
  1093. },
  1094. {name:'淄博市',
  1095. itemStyle: {
  1096. normal: {
  1097. areaColor: '#45b5ef',
  1098. borderColor: '#45b5ef',
  1099. }
  1100. }
  1101. },
  1102. {name:'滨州市',
  1103. itemStyle: {
  1104. normal: {
  1105. areaColor: '#13d5ff',
  1106. borderColor: '#45b5ef',
  1107. }
  1108. }
  1109. },
  1110. {name:'东营市',
  1111. itemStyle: {
  1112. normal: {
  1113. areaColor: 'red',
  1114. borderColor: '#45b5ef',
  1115. }
  1116. }
  1117. },
  1118. {name:'日照市',
  1119. itemStyle: {
  1120. normal: {
  1121. areaColor: 'red',
  1122. borderColor: '#45b5ef',
  1123. }
  1124. }
  1125. },
  1126. ]
  1127. }]
  1128. };
  1129. maps.setOption(option);
  1130. })