investHomeGroup.js 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433
  1. let app = new Vue({
  2. el: '#app',
  3. data () {
  4. return {
  5. time: '',
  6. timer: '',
  7. totleLimit: '1363.88',
  8. showTip2: false,
  9. showTip3: false,
  10. list:'',
  11. count: 0,
  12. countType: 0,
  13. storageRecordConfig: {
  14. // waitTime: '30000',
  15. hoverPause: false,
  16. header: ['企业集团', '项目名 ', '投资总额'],
  17. // headerBGC: '#05507b33',
  18. // oddRowBGC: '#05507b33',
  19. // evenRowBGC: '#05507b33',
  20. headerHeight:50,
  21. headerBGC: '#05507b33',
  22. oddRowBGC: '#05183c',
  23. evenRowBGC: '#05507b00',
  24. rowNum: 5,
  25. // columnWidth: [100, 550,100],
  26. align: ['center', 'center', 'center'],
  27. data: [
  28. ['国际能源', '娄烦县120MW智慧光伏发电项目+10%储能', "6.78亿元"],
  29. ['国际能源', '平朔矿区150MW农光储氢一体化项目', "7.84亿元"],
  30. ['汾酒集团', '汾酒2030技改原酒产储能扩建项目(一期)', "91.02亿元"],
  31. ['大地控股', '山西大地控股忻州新店矿业有限公司投资建设年产800万吨精品砂石骨料项目', "8.67亿元"],
  32. ['潞安化工', '分布式光伏发电项目', "2.01亿元"],
  33. ['太重集团', '设立太重(大同)新能源产业投资公司', "0.30亿元"],
  34. ['大地控股', '山西大地宏翔环保科技有限公司电厂固废资源化综合利用建设项目', "3.60亿元"],
  35. ['大地控股', '山西大地海科环保科技有限公司电厂固废资源化综合利用建设项目', "3.11亿元"],
  36. ['汾酒集团', '保健酒园区新增原酒产能项目', "4.98亿元"],
  37. ['汾酒集团', '白玉酒厂改扩建项目', "4.96亿元"],
  38. ['华阳新材', '5GW高效光伏组件制造项目', "4.82亿元"],
  39. ['华新燃气', '吉县—延长输气管道项目(一期工程)', "3.54亿元"],
  40. ['太重集团', '建设液压挖掘机配套油缸项目', "2.60亿元"],
  41. ['华远陆港', '物产集团参股设立项目公司投资建设山西物产万科(太原)综合物流产业园项目', "6.60亿元"],
  42. ['太重集团', '设立昔阳县晶能新能源有限公司', "0.50亿元"],
  43. ['山西建投', '设立山西低碳环保产业集团有限公司', "30.00亿元"],
  44. ['山西建投', '设立山西省太忻经济一体化发展投资集团有限公司', "30.00亿元"],
  45. ['华新燃气', '设立山西华新液化天然气集团有限公司', "3.00亿元"],
  46. ['交控集团', '设立山西交控新能源发展有限公司', "3.00亿元"]
  47. ],
  48. },
  49. }
  50. },
  51. created () {
  52. this.time = formatDate()
  53. this.timer = setInterval(() => {
  54. this.time = formatDate()
  55. }, 1000)
  56. },
  57. beforeDestroy () {
  58. if (this.timer) {
  59. clearInterval(this.timer);
  60. }
  61. },
  62. mounted () {
  63. setTimeout(() => {
  64. this.initChartL1()
  65. this.initChartL2()
  66. this.initChartL3()
  67. this.initChartL4()
  68. this.initChartL5()
  69. this.initChartL6()
  70. this.initChartL7()
  71. this.initChartL8()
  72. this.initChartL9()
  73. this.initChartL10()
  74. this.initChartL11()
  75. this.changeTopColor()
  76. })
  77. },
  78. methods: {
  79. numFormat (value) {
  80. if (!value) return '0'
  81. // var intPart = Number(value).toFixed(0) // 获取整数部分
  82. var intPart = parseInt(value)// 获取整数部分
  83. var intPartFormat = intPart.toString().replace(/(\d)(?=(?:\d{3})+$)/g, '$1,') // 将整数部分逢三一断
  84. var floatPart = '.00' // 预定义小数部分
  85. var value2Array = value.toString().split('.')
  86. // =2表示数据有小数位
  87. if (value2Array.length === 2) {
  88. floatPart = value2Array[1].toString() // 拿到小数部分
  89. if (floatPart.length === 1) {
  90. // 补0
  91. return intPartFormat + '.' + floatPart + '0'
  92. } else {
  93. return intPartFormat + '.' + floatPart
  94. }
  95. } else {
  96. return intPartFormat
  97. }
  98. },
  99. changeTopColor () {
  100. this.list = document.getElementsByClassName('row-item')
  101. for (var i = 0; i < this.list.length; i++) {
  102. if (i == 1) {
  103. this.list[i].classList.add('light')
  104. } else {
  105. this.list[i].classList.remove('light')
  106. }
  107. }
  108. this.initChartL9()
  109. },
  110. scrollChange (index) {
  111. if (index == 18) {
  112. this.count = -1
  113. } else {
  114. this.count = index
  115. }
  116. if (this.count > 12 && this.count != 18) {
  117. this.countType = 1
  118. } else {
  119. this.countType = 0
  120. }
  121. this.list = document.getElementsByClassName('row-item')
  122. for (var i = 0; i < this.list.length; i++) {
  123. if (i == 2) {
  124. this.list[i].classList.add('light')
  125. } else {
  126. this.list[i].classList.remove('light')
  127. }
  128. }
  129. this.initChartL9()
  130. },
  131. initChartL1 () {
  132. let myChart = echarts.init(this.$refs['echartL1'])
  133. var value = 0.1463;
  134. var data = [value];
  135. let option = {
  136. backgroundColor: 'transparent',
  137. title: [
  138. {
  139. // text: '总额度285.48亿',
  140. // formatter: `<span>总额度</span>285.48亿`,
  141. x: '37%',
  142. y: '80%',
  143. textStyle: {
  144. fontSize: 24,
  145. fontWeight: 'bold',
  146. color: '#2CB7E0',
  147. lineHeight: 16,
  148. textAlign: 'center',
  149. },
  150. }
  151. ],
  152. series: [
  153. {
  154. type: 'liquidFill',
  155. radius: '70%',
  156. center: ['50%', '40%'],
  157. color: [
  158. {
  159. type: 'linear',
  160. x: 0,
  161. y: 0,
  162. x2: 0,
  163. y2: 1,
  164. colorStops: [
  165. {
  166. offset: 0,
  167. color: '#446bf5',
  168. },
  169. {
  170. offset: 1,
  171. color: '#2ca3e2',
  172. },
  173. ],
  174. globalCoord: false,
  175. },
  176. ],
  177. data: [value, value], // data个数代表波浪数
  178. backgroundStyle: {
  179. borderWidth: 1,
  180. color: 'RGBA(51, 66, 127, 0.7)',
  181. },
  182. label: {
  183. normal: {
  184. formatter: function (data) {
  185. return (data.value * 100).toFixed(2) + '%'
  186. },
  187. textStyle: {
  188. fontSize: 30,
  189. color: '#fff',
  190. },
  191. },
  192. },
  193. outline: {
  194. // show: false
  195. borderDistance: 0,
  196. itemStyle: {
  197. borderWidth: 2,
  198. borderColor: 'transparent',
  199. },
  200. },
  201. },
  202. ],
  203. }
  204. myChart.setOption(option)
  205. },
  206. initChartL2 () {
  207. var chartData = [
  208. {
  209. name: '辅业',
  210. y: 76.38,
  211. num: 84,
  212. sliced: false,
  213. selected: false,
  214. },
  215. {
  216. name: '主业',
  217. y: 1287.50,
  218. num: 713,
  219. sliced: false,
  220. selected: false,
  221. }
  222. ]
  223. var timer = null;
  224. var i = 0;
  225. let that = this
  226. var option = {
  227. colors: ['#5783ab', '#1a5389', '#a79c57', '#cc8c29', '#91a65f', '#383062', '#034a39'],
  228. chart: {
  229. type: 'pie',
  230. backgroundColor: 'rgba(0,0,0,0)',
  231. options3d: {
  232. enabled: true,
  233. alpha: 45,
  234. //beta: 0
  235. },
  236. events: {
  237. // load,图表加载完成时触发
  238. load: function () {
  239. var chart = this;
  240. var points = chart.series[0].points;
  241. var len = points.length;
  242. timer && clearInterval(timer);
  243. timer = setInterval(function () {
  244. autoTooltip(points[i]);
  245. chartData.forEach((item, index) => {
  246. item.sliced = false
  247. item.selected = false
  248. if (index == i) {
  249. item.sliced = true
  250. item.selected = true
  251. }
  252. })
  253. chart.update({
  254. series: [{
  255. type: 'pie',
  256. name: '占比',
  257. point: {
  258. events: {
  259. click: function (e) {
  260. that.showTip3 = true
  261. that.echartTitle = '主辅业计划占比'
  262. setTimeout(() => {
  263. // that.initChartT1(chartData)
  264. })
  265. }
  266. }
  267. },
  268. data: chartData
  269. }]
  270. })
  271. i++;
  272. if (i === len) {
  273. i = 0;
  274. chartData.forEach((item, index) => {
  275. item.sliced = false
  276. item.selected = false
  277. })
  278. chart.update({
  279. series: [{
  280. type: 'pie',
  281. name: '占比',
  282. point: {
  283. events: {
  284. click: function (e) {
  285. console.log(e)
  286. }
  287. }
  288. },
  289. data: chartData
  290. }]
  291. })
  292. }
  293. }, 2000);
  294. },
  295. legendItemClick: function (event) {
  296. console.log(event);
  297. return true;
  298. }
  299. }
  300. },
  301. credits: {
  302. enabled: false //去掉hightchats水印
  303. },
  304. legend: {
  305. // labelFormatter: function() {
  306. // return 123;
  307. // },
  308. align: 'right',//横向位置
  309. verticalAlign: 'middle', // 纵向位置
  310. layout: "vertical",//横排还是竖排
  311. x: -30,
  312. y:50,
  313. symbolWidth: 50,
  314. itemStyle: {
  315. fontSize: '20px',
  316. color: '#fff',
  317. x: 20
  318. },
  319. },
  320. title: {
  321. text: '主辅业计划占比',
  322. style: {
  323. color: '#fff',
  324. fontSize: 22,
  325. },
  326. align:'center',
  327. verticalAlign:"bottom",
  328. x:-80
  329. },
  330. tooltip: {
  331. crosshairs: false,
  332. backgroundColor: 'rgba(0,0,0,0.5)',
  333. // positioner: function(e){
  334. // console.log(e, this)
  335. // },
  336. useHTML: false, //开启html模式
  337. style: {
  338. color: '#fff',
  339. },
  340. formatter: function (e) {
  341. let num = chartData[this.colorIndex].num
  342. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  343. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  344. },
  345. //pointFormat:
  346. },
  347. plotOptions: {
  348. pie: {
  349. allowPointSelect: true,
  350. showInLegend: true, // 图例
  351. cursor: 'pointer',
  352. size: 220,
  353. innerSize: 150, //环形图中间空白,0为饼图
  354. depth: 25, //立体高度
  355. slicedOffset: 21, //动画距离
  356. dataLabels: {
  357. enabled: false, // 是否展示指示线
  358. format: '{point.name}: {point.percentage}'
  359. }
  360. },
  361. },
  362. series: [{
  363. type: 'pie',
  364. name: '占比',
  365. // center: ['70%', '50%'],
  366. point: {
  367. events: {
  368. click: function (e) { //点击事件
  369. that.showTip3 = true
  370. that.echartTitle = '主辅业计划占比'
  371. setTimeout(() => {
  372. // that.initChartT1(chartData)
  373. })
  374. },
  375. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  376. //console.log(e)
  377. chartData.forEach((item, index) => {
  378. item.sliced = false
  379. item.selected = false
  380. })
  381. chartData[e.target.index].sliced = true
  382. chartData[e.target.index].selected = true
  383. chart.update({
  384. series: [{
  385. type: 'pie',
  386. name: '占比',
  387. point: {
  388. events: {
  389. click: function (e) {
  390. that.showTip3 = true
  391. that.echartTitle = '主辅业计划占比'
  392. setTimeout(() => {
  393. // that.initChartT1(chartData)
  394. })
  395. }
  396. }
  397. },
  398. data: chartData
  399. }]
  400. })
  401. timer && clearInterval(timer);
  402. },
  403. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  404. var points = chart.series[0].points;
  405. var len = points.length;
  406. timer && clearInterval(timer);
  407. timer = setInterval(function () {
  408. autoTooltip(points[i]);
  409. chartData.forEach((item, index) => {
  410. item.sliced = false
  411. item.selected = false
  412. if (index == i) {
  413. item.sliced = true
  414. item.selected = true
  415. }
  416. })
  417. chart.update({
  418. series: [{
  419. type: 'pie',
  420. name: '占比',
  421. point: {
  422. events: {
  423. click: function (e) {
  424. that.showTip3 = true
  425. that.echartTitle = '主辅业计划占比'
  426. setTimeout(() => {
  427. // that.initChartT1(chartData)
  428. })
  429. }
  430. }
  431. },
  432. data: chartData
  433. }]
  434. })
  435. i++;
  436. if (i === len) {
  437. i = 0;
  438. chartData.forEach((item, index) => {
  439. item.sliced = false
  440. item.selected = false
  441. })
  442. chart.update({
  443. series: [{
  444. type: 'pie',
  445. name: '占比',
  446. point: {
  447. events: {
  448. click: function (e) {
  449. that.showTip3 = true
  450. that.echartTitle = '主辅业计划占比'
  451. setTimeout(() => {
  452. // that.initChartT1(chartData)
  453. })
  454. }
  455. }
  456. },
  457. data: chartData
  458. }]
  459. })
  460. }
  461. }, 2000);
  462. }
  463. }
  464. },
  465. data: chartData
  466. }]
  467. }
  468. var chart = Highcharts.chart('echartL2', option);
  469. function autoTooltip (point) {
  470. chart.tooltip.refresh(point);
  471. }
  472. },
  473. initChartL3 () {
  474. var chartData = [
  475. {
  476. name: '特别监管类',
  477. y: 635.84,
  478. num: 168,
  479. sliced: false,
  480. selected: false,
  481. },
  482. {
  483. name: '备案类',
  484. y: 728.04,
  485. num: 465,
  486. sliced: false,
  487. selected: false,
  488. }
  489. ]
  490. var timer = null;
  491. var i = 0;
  492. let that = this
  493. var chart = Highcharts.chart('echartL3', {
  494. colors: ['#5783ab', '#1a5389', '#a79c57', '#cc8c29', '#91a65f', '#383062', '#034a39'],
  495. chart: {
  496. type: 'pie',
  497. backgroundColor: 'rgba(0,0,0,0)',
  498. options3d: {
  499. enabled: true,
  500. alpha: 45,
  501. //beta: 0
  502. },
  503. events: {
  504. // load,图表加载完成时触发
  505. load: function () {
  506. var chart = this;
  507. var points = chart.series[0].points;
  508. var len = points.length;
  509. timer && clearInterval(timer);
  510. timer = setInterval(function () {
  511. autoTooltip(points[i]);
  512. chartData.forEach((item, index) => {
  513. item.sliced = false
  514. item.selected = false
  515. if (index == i) {
  516. item.sliced = true
  517. item.selected = true
  518. }
  519. })
  520. chart.update({
  521. series: [{
  522. type: 'pie',
  523. name: '占比',
  524. point: {
  525. events: {
  526. click: function (e) {
  527. that.showTip3 = true
  528. that.echartTitle = '项目管理类型'
  529. setTimeout(() => {
  530. that.initChartT1(chartData)
  531. })
  532. }
  533. }
  534. },
  535. data: chartData
  536. }]
  537. })
  538. i++;
  539. if (i === len) {
  540. i = 0;
  541. chartData.forEach((item, index) => {
  542. item.sliced = false
  543. item.selected = false
  544. })
  545. chart.update({
  546. series: [{
  547. type: 'pie',
  548. name: '占比',
  549. point: {
  550. events: {
  551. click: function (e) {
  552. console.log(e)
  553. }
  554. }
  555. },
  556. data: chartData
  557. }]
  558. })
  559. }
  560. }, 2000);
  561. },
  562. legendItemClick: function (event) {
  563. //console.log(event);
  564. that.showTip3 = true
  565. that.echartTitle = '项目管理类型'
  566. setTimeout(() => {
  567. that.initChartT1(chartData)
  568. })
  569. return true;
  570. }
  571. }
  572. },
  573. credits: {
  574. enabled: false //去掉hightchats水印
  575. },
  576. legend: {
  577. // labelFormatter: function() {
  578. // return 123;
  579. // },
  580. align: 'right',//横向位置
  581. verticalAlign: 'middle', // 纵向位置
  582. layout: "vertical",//横排还是竖排
  583. x: -30,
  584. y:50,
  585. symbolWidth: 50,
  586. itemDistance: 50,
  587. itemStyle: {
  588. fontSize: '20px',
  589. color: '#fff',
  590. x: 20
  591. },
  592. },
  593. title: {
  594. text: '项目管理类型',
  595. style: {
  596. color: '#fff',
  597. fontSize: 22,
  598. },
  599. align:'center',
  600. verticalAlign:"bottom",
  601. x:-120
  602. },
  603. tooltip: {
  604. crosshairs: true,
  605. backgroundColor: 'rgba(0,0,0,0.5)',
  606. // positioner: function(e){
  607. // console.log(e, this)
  608. // },
  609. useHTML: false, //开启html模式
  610. style: {
  611. color: '#fff',
  612. },
  613. formatter: function (e) {
  614. //console.log(this)
  615. let num = chartData[this.colorIndex].num
  616. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  617. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  618. },
  619. //pointFormat:
  620. },
  621. plotOptions: {
  622. pie: {
  623. allowPointSelect: true,
  624. showInLegend: true, // 图例
  625. cursor: 'pointer',
  626. size: 220,
  627. innerSize: 150, //环形图中间空白,0为饼图
  628. depth: 25, //立体高度
  629. slicedOffset: 21, //动画距离
  630. dataLabels: {
  631. enabled: false, // 是否展示指示线
  632. format: '{point.name}: {point.percentage}'
  633. }
  634. },
  635. },
  636. series: [{
  637. type: 'pie',
  638. name: '占比',
  639. // center: ['70%', '50%'],
  640. point: {
  641. events: {
  642. click: function (e) { //点击事件
  643. that.showTip3 = true
  644. that.echartTitle = '项目管理类型'
  645. setTimeout(() => {
  646. that.initChartT1(chartData)
  647. })
  648. },
  649. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  650. //console.log(e)
  651. chartData.forEach((item, index) => {
  652. item.sliced = false
  653. item.selected = false
  654. })
  655. chartData[e.target.index].sliced = true
  656. chartData[e.target.index].selected = true
  657. chart.update({
  658. series: [{
  659. type: 'pie',
  660. name: '占比',
  661. point: {
  662. events: {
  663. click: function (e) {
  664. that.showTip3 = true
  665. that.echartTitle = '项目管理类型'
  666. setTimeout(() => {
  667. that.initChartT1(chartData)
  668. })
  669. }
  670. }
  671. },
  672. data: chartData
  673. }]
  674. })
  675. timer && clearInterval(timer);
  676. },
  677. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  678. var points = chart.series[0].points;
  679. var len = points.length;
  680. timer && clearInterval(timer);
  681. timer = setInterval(function () {
  682. autoTooltip(points[i]);
  683. chartData.forEach((item, index) => {
  684. item.sliced = false
  685. item.selected = false
  686. if (index == i) {
  687. item.sliced = true
  688. item.selected = true
  689. }
  690. })
  691. chart.update({
  692. series: [{
  693. type: 'pie',
  694. name: '占比',
  695. point: {
  696. events: {
  697. click: function (e) {
  698. that.showTip3 = true
  699. that.echartTitle = '项目管理类型'
  700. setTimeout(() => {
  701. that.initChartT1(chartData)
  702. })
  703. }
  704. }
  705. },
  706. data: chartData
  707. }]
  708. })
  709. i++;
  710. if (i === len) {
  711. i = 0;
  712. chartData.forEach((item, index) => {
  713. item.sliced = false
  714. item.selected = false
  715. })
  716. chart.update({
  717. series: [{
  718. type: 'pie',
  719. name: '占比',
  720. point: {
  721. events: {
  722. click: function (e) {
  723. console.log(e)
  724. }
  725. }
  726. },
  727. data: chartData
  728. }]
  729. })
  730. }
  731. }, 2000);
  732. }
  733. }
  734. },
  735. data: chartData
  736. }]
  737. });
  738. function autoTooltip (point) {
  739. chart.tooltip.refresh(point);
  740. }
  741. },
  742. initChartL4 () {
  743. let myChart = echarts.init(document.getElementById("echartL4"));
  744. let option = {
  745. grid: {
  746. top: 35,
  747. right: 0,
  748. left: 60,
  749. bottom: 50,
  750. },
  751. tooltip: {
  752. show: true,
  753. trigger: "axis",
  754. axisPointer: {
  755. // 坐标轴指示器,坐标轴触发有效
  756. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  757. },
  758. },
  759. xAxis: {
  760. data: ["山西焦煤", "晋能控股", "华阳新材", "潞安化工", "华新燃气", "太重集团", "国际能源", "华远陆港", "水控集团", "文旅集团", "交控集团", '航产集团', '山西建投', '汾酒集团', '大地控股', '云时代', '华舰体育', '神农科技'],
  761. axisTick: {
  762. show: false,
  763. },
  764. // x轴的字体颜色
  765. axisLabel: {
  766. rotate: 40,
  767. textStyle: {
  768. color: "white",
  769. },
  770. },
  771. //y轴线的颜色以及宽度
  772. axisLine: {
  773. show: true,
  774. lineStyle: {
  775. color: "#1E5389",
  776. width: 1,
  777. type: "solid",
  778. },
  779. },
  780. },
  781. yAxis: {
  782. name: '亿元',
  783. nameTextStyle: {//y轴上方单位的颜色
  784. color: '#fff',
  785. },
  786. axisTick: {
  787. lineStyle: {
  788. color: "#18416F",
  789. },
  790. },
  791. // y轴的字体颜色
  792. axisLabel: {
  793. textStyle: {
  794. color: "white",
  795. },
  796. },
  797. splitLine: {
  798. show: true,
  799. lineStyle: {
  800. color: "#204561",
  801. width: 1,
  802. type: "dotted",
  803. },
  804. },
  805. //y轴线的颜色以及宽度
  806. axisLine: {
  807. show: true,
  808. lineStyle: {
  809. color: "#1E5389",
  810. width: 1,
  811. type: "solid",
  812. },
  813. },
  814. },
  815. series: [
  816. // {
  817. // name: "2022年额度",
  818. // type: "bar",
  819. // data: [263.23, 402.18, 73.28, 144.80, 25.56, 8.23, 0, 12.97, 8.56, -1.72, 0, 0, 0, 76.90, 5.03, 9.14, 0, 0],
  820. // showBackground: false,
  821. // backgroundStyle: {
  822. // color: "#18416F",
  823. // },
  824. // barWidth: "10%",
  825. // itemStyle: {
  826. // barBorderRadius: [10, 10, 0, 0],
  827. // color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  828. // {
  829. // offset: 0,
  830. // color: '#082550',
  831. // },
  832. // {
  833. // offset: 1,
  834. // color: '#69c0ff',
  835. // },
  836. // ]),
  837. // },
  838. // },
  839. {
  840. name: "2023年额度",
  841. type: "bar",
  842. data: [359.91, 400.49, 117.65, 148.96, 34.84, 17.79, 26.15, 26.18, 16.83, 0.00, 43.49, 0.00, 43.39, 76.53, 5.05, 8.59, 0.00, 0.28],
  843. showBackground: false,
  844. backgroundStyle: {
  845. color: "#18416F",
  846. },
  847. barWidth: "30%",
  848. itemStyle: {
  849. // barBorderRadius: [10, 10, 0, 0],
  850. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  851. {
  852. offset: 0,
  853. color: '#082550',
  854. },
  855. {
  856. offset: 1,
  857. color: '#957DFF',
  858. },
  859. ]),
  860. },
  861. },
  862. ],
  863. legend: {
  864. // data: ["2022年额度", "2023年额度"],
  865. data: ["2023年额度"],
  866. textStyle: {
  867. // 图列内容样式
  868. color: "#fff", // 字体颜色
  869. // fontSize: "10",
  870. },
  871. right: 'center',
  872. y:5,
  873. icon: "roundRect",
  874. // 小图标的宽高
  875. itemHeight: 5,
  876. },
  877. };
  878. tools.loopShowTooltip(myChart, option, {
  879. nterval: 2000,
  880. loopSeries: true,
  881. })
  882. let that = this
  883. myChart.on('click', function (param) {
  884. if (param.name == '晋能控股') {
  885. that.showTip2 = true
  886. setTimeout(() => {
  887. // that.initChartR4()
  888. // that.initChartR5()
  889. that.initChartL2b()
  890. })
  891. }
  892. })
  893. myChart.setOption(option);
  894. },
  895. initChartL5 () {
  896. var chartData = [
  897. {
  898. name: '煤炭',
  899. y: 294.61,
  900. num: 95,
  901. sliced: false,
  902. selected: false,
  903. },
  904. {
  905. name: '火电',
  906. y: 39.24,
  907. num: 1,
  908. sliced: false,
  909. selected: false,
  910. },
  911. {
  912. name: '冶金',
  913. y: 38.85,
  914. num: 6,
  915. sliced: false,
  916. selected: false,
  917. },
  918. {
  919. name: '焦化',
  920. y: 16.49,
  921. num: 4,
  922. sliced: false,
  923. selected: false,
  924. },
  925. {
  926. name: '其他传统产业',
  927. y: 14.19,
  928. num: 5,
  929. sliced: false,
  930. selected: false,
  931. }
  932. ]
  933. var timer = null;
  934. var i = 0;
  935. let that = this
  936. var option = {
  937. colors: ['#5783ab', '#1a5389', '#a79c57', '#cc8c29', '#91a65f', '#383062', '#034a39'],
  938. chart: {
  939. type: 'pie',
  940. backgroundColor: 'rgba(0,0,0,0)',
  941. options3d: {
  942. enabled: true,
  943. alpha: 45,
  944. //beta: 0
  945. },
  946. events: {
  947. // load,图表加载完成时触发
  948. load: function () {
  949. var chart = this;
  950. var points = chart.series[0].points;
  951. var len = points.length;
  952. timer && clearInterval(timer);
  953. timer = setInterval(function () {
  954. autoTooltip(points[i]);
  955. chartData.forEach((item, index) => {
  956. item.sliced = false
  957. item.selected = false
  958. if (index == i) {
  959. item.sliced = true
  960. item.selected = true
  961. }
  962. })
  963. chart.update({
  964. series: [{
  965. type: 'pie',
  966. name: '占比',
  967. point: {
  968. events: {
  969. click: function (e) {
  970. that.showTip3 = true
  971. that.echartTitle = '传统产业分析'
  972. setTimeout(() => {
  973. that.initChartT1(chartData)
  974. })
  975. }
  976. }
  977. },
  978. data: chartData
  979. }]
  980. })
  981. i++;
  982. if (i === len) {
  983. i = 0;
  984. }
  985. }, 2000);
  986. },
  987. legendItemClick: function (event) {
  988. console.log(event);
  989. return true;
  990. }
  991. }
  992. },
  993. credits: {
  994. enabled: false //去掉hightchats水印
  995. },
  996. legend: {
  997. // labelFormatter: function() {
  998. // return 123;
  999. // },
  1000. align: 'right',//横向位置
  1001. verticalAlign: 'middle', // 纵向位置
  1002. layout: "vertical",//横排还是竖排
  1003. x: -30,
  1004. y:50,
  1005. symbolWidth: 50,
  1006. itemDistance: 50,
  1007. itemStyle: {
  1008. fontSize: '20px',
  1009. color: '#fff',
  1010. x: 20
  1011. },
  1012. },
  1013. title: {
  1014. text: '传统产业分析',
  1015. style: {
  1016. color: '#fff',
  1017. fontSize: 22,
  1018. },
  1019. align:'center',
  1020. verticalAlign:"bottom",
  1021. x:-120
  1022. },
  1023. tooltip: {
  1024. crosshairs: true,
  1025. backgroundColor: 'rgba(0,0,0,0.5)',
  1026. // positioner: function(e){
  1027. // console.log(e, this)
  1028. // },
  1029. useHTML: false, //开启html模式
  1030. style: {
  1031. color: '#fff',
  1032. },
  1033. formatter: function (e) {
  1034. //console.log(this)
  1035. let num = chartData[this.colorIndex].num
  1036. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1037. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1038. },
  1039. //pointFormat:
  1040. },
  1041. plotOptions: {
  1042. pie: {
  1043. allowPointSelect: true,
  1044. showInLegend: true, // 图例
  1045. cursor: 'pointer',
  1046. size: 220,
  1047. innerSize: 150, //环形图中间空白,0为饼图
  1048. depth: 25, //立体高度
  1049. slicedOffset: 21, //动画距离
  1050. dataLabels: {
  1051. enabled: false, // 是否展示指示线
  1052. format: '{point.name}: {point.percentage}'
  1053. }
  1054. },
  1055. },
  1056. series: [{
  1057. type: 'pie',
  1058. name: '占比',
  1059. //center: ['35%','50%'],
  1060. point: {
  1061. events: {
  1062. click: function (e) { //点击事件
  1063. that.showTip3 = true
  1064. that.echartTitle = '传统产业分析'
  1065. setTimeout(() => {
  1066. that.initChartT1(chartData)
  1067. })
  1068. },
  1069. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1070. //console.log(e)
  1071. chartData.forEach((item, index) => {
  1072. item.sliced = false
  1073. item.selected = false
  1074. })
  1075. chartData[e.target.index].sliced = true
  1076. chartData[e.target.index].selected = true
  1077. chart.update({
  1078. series: [{
  1079. type: 'pie',
  1080. name: '占比',
  1081. point: {
  1082. events: {
  1083. click: function (e) {
  1084. that.showTip3 = true
  1085. that.echartTitle = '传统产业分析'
  1086. setTimeout(() => {
  1087. that.initChartT1(chartData)
  1088. })
  1089. }
  1090. }
  1091. },
  1092. data: chartData
  1093. }]
  1094. })
  1095. timer && clearInterval(timer);
  1096. },
  1097. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1098. var points = chart.series[0].points;
  1099. var len = points.length;
  1100. timer && clearInterval(timer);
  1101. timer = setInterval(function () {
  1102. autoTooltip(points[i]);
  1103. chartData.forEach((item, index) => {
  1104. item.sliced = false
  1105. item.selected = false
  1106. if (index == i) {
  1107. item.sliced = true
  1108. item.selected = true
  1109. }
  1110. })
  1111. chart.update({
  1112. series: [{
  1113. type: 'pie',
  1114. name: '占比',
  1115. point: {
  1116. events: {
  1117. click: function (e) {
  1118. that.showTip3 = true
  1119. that.echartTitle = '传统产业分析'
  1120. setTimeout(() => {
  1121. that.initChartT1(chartData)
  1122. })
  1123. }
  1124. }
  1125. },
  1126. data: chartData
  1127. }]
  1128. })
  1129. i++;
  1130. if (i === len) {
  1131. i = 0;
  1132. }
  1133. }, 2000);
  1134. }
  1135. }
  1136. },
  1137. data: chartData
  1138. }]
  1139. }
  1140. var chart = Highcharts.chart('echartL5', option);
  1141. function autoTooltip (point) {
  1142. chart.tooltip.refresh(point);
  1143. }
  1144. },
  1145. initChartL6 () {
  1146. var chartData = [
  1147. {
  1148. name: '新一代信息技术',
  1149. y: 29.26,
  1150. num: 75,
  1151. //x: 75,
  1152. sliced: false,
  1153. selected: false,
  1154. },
  1155. {
  1156. name: '高端装备制造',
  1157. y: 100.41,
  1158. num: 28,
  1159. sliced: false,
  1160. selected: false,
  1161. },
  1162. {
  1163. name: '新材料',
  1164. y: 6.72,
  1165. num: 4,
  1166. sliced: false,
  1167. selected: false,
  1168. },
  1169. {
  1170. name: '生物',
  1171. y: 3.60,
  1172. num: 58,
  1173. sliced: false,
  1174. selected: false,
  1175. },
  1176. {
  1177. name: '新能源',
  1178. y: 170.03,
  1179. num: 58,
  1180. sliced: false,
  1181. selected: false,
  1182. },
  1183. {
  1184. name: '节能环保',
  1185. y: 26.30,
  1186. num: 24,
  1187. sliced: false,
  1188. selected: false,
  1189. },
  1190. {
  1191. name: '相关服务业',
  1192. y: 5.10,
  1193. num: 2,
  1194. sliced: false,
  1195. selected: false,
  1196. }
  1197. ]
  1198. var timer = null;
  1199. var i = 0;
  1200. let that = this
  1201. var option = {
  1202. colors: ['#5783ab', '#1a5389', '#a79c57', '#cc8c29', '#91a65f', '#383062', '#034a39', '#5783ab'],
  1203. chart: {
  1204. type: 'pie',
  1205. backgroundColor: 'rgba(0,0,0,0)',
  1206. options3d: {
  1207. enabled: true,
  1208. alpha: 45,
  1209. //beta: 0
  1210. },
  1211. events: {
  1212. // load,图表加载完成时触发
  1213. load: function () {
  1214. var chart = this;
  1215. var points = chart.series[0].points;
  1216. var len = points.length;
  1217. timer && clearInterval(timer);
  1218. timer = setInterval(function () {
  1219. autoTooltip(points[i]);
  1220. chartData.forEach((item, index) => {
  1221. item.sliced = false
  1222. item.selected = false
  1223. if (index == i) {
  1224. item.sliced = true
  1225. item.selected = true
  1226. }
  1227. })
  1228. chart.update({
  1229. series: [{
  1230. type: 'pie',
  1231. name: '占比',
  1232. point: {
  1233. events: {
  1234. click: function (e) {
  1235. that.showTip3 = true
  1236. that.echartTitle = '战略性新兴产业'
  1237. setTimeout(() => {
  1238. that.initChartT1(chartData)
  1239. })
  1240. }
  1241. }
  1242. },
  1243. data: chartData
  1244. }]
  1245. })
  1246. i++;
  1247. if (i === len) {
  1248. i = 0;
  1249. }
  1250. }, 2000);
  1251. },
  1252. legendItemClick: function (event) {
  1253. console.log(event);
  1254. return true;
  1255. }
  1256. }
  1257. },
  1258. credits: {
  1259. enabled: false //去掉hightchats水印
  1260. },
  1261. legend: {
  1262. // labelFormatter: function() {
  1263. // return 123;
  1264. // },
  1265. align: 'right',//横向位置
  1266. verticalAlign: 'middle', // 纵向位置
  1267. layout: "vertical",//横排还是竖排
  1268. x: -30,
  1269. y:30,
  1270. symbolWidth: 50,
  1271. itemDistance: 50,
  1272. itemStyle: {
  1273. fontSize: '20px',
  1274. color: '#fff',
  1275. x: 20
  1276. },
  1277. },
  1278. title: {
  1279. text: '战略性新兴产业',
  1280. style: {
  1281. color: '#fff',
  1282. fontSize: 22,
  1283. },
  1284. align:'center',
  1285. verticalAlign:"bottom",
  1286. x:-120
  1287. },
  1288. tooltip: {
  1289. crosshairs: true,
  1290. backgroundColor: 'rgba(0,0,0,0.5)',
  1291. // positioner: function(e){
  1292. // console.log(e, this)
  1293. // },
  1294. useHTML: false, //开启html模式
  1295. style: {
  1296. color: '#fff',
  1297. },
  1298. formatter: function (e) {
  1299. //console.log(this)
  1300. let num = chartData[this.colorIndex].num
  1301. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1302. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1303. },
  1304. //pointFormat:
  1305. },
  1306. plotOptions: {
  1307. pie: {
  1308. allowPointSelect: true,
  1309. showInLegend: true, // 图例
  1310. cursor: 'pointer',
  1311. size: 220,
  1312. innerSize: 150, //环形图中间空白,0为饼图
  1313. depth: 25, //立体高度
  1314. slicedOffset: 21, //动画距离
  1315. dataLabels: {
  1316. enabled: false, // 是否展示指示线
  1317. format: '{point.name}: {point.percentage}'
  1318. }
  1319. },
  1320. },
  1321. series: [{
  1322. type: 'pie',
  1323. name: '占比',
  1324. //center: ['35%','50%'],
  1325. point: {
  1326. events: {
  1327. click: function (e) { //点击事件
  1328. that.showTip3 = true
  1329. that.echartTitle = '战略性新兴产业'
  1330. setTimeout(() => {
  1331. that.initChartT1(chartData)
  1332. })
  1333. },
  1334. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1335. //console.log(e)
  1336. chartData.forEach((item, index) => {
  1337. item.sliced = false
  1338. item.selected = false
  1339. })
  1340. chartData[e.target.index].sliced = true
  1341. chartData[e.target.index].selected = true
  1342. chart.update({
  1343. series: [{
  1344. type: 'pie',
  1345. name: '占比',
  1346. point: {
  1347. events: {
  1348. click: function (e) {
  1349. that.showTip3 = true
  1350. that.echartTitle = '战略性新兴产业'
  1351. setTimeout(() => {
  1352. that.initChartT1(chartData)
  1353. })
  1354. }
  1355. }
  1356. },
  1357. data: chartData
  1358. }]
  1359. })
  1360. timer && clearInterval(timer);
  1361. },
  1362. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1363. var points = chart.series[0].points;
  1364. var len = points.length;
  1365. timer && clearInterval(timer);
  1366. timer = setInterval(function () {
  1367. autoTooltip(points[i]);
  1368. chartData.forEach((item, index) => {
  1369. item.sliced = false
  1370. item.selected = false
  1371. if (index == i) {
  1372. item.sliced = true
  1373. item.selected = true
  1374. }
  1375. })
  1376. chart.update({
  1377. series: [{
  1378. type: 'pie',
  1379. name: '占比',
  1380. point: {
  1381. events: {
  1382. click: function (e) {
  1383. that.showTip3 = true
  1384. that.echartTitle = '战略性新兴产业'
  1385. setTimeout(() => {
  1386. that.initChartT1(chartData)
  1387. })
  1388. }
  1389. }
  1390. },
  1391. data: chartData
  1392. }]
  1393. })
  1394. i++;
  1395. if (i === len) {
  1396. i = 0;
  1397. }
  1398. }, 2000);
  1399. }
  1400. }
  1401. },
  1402. data: chartData
  1403. }]
  1404. }
  1405. var chart = Highcharts.chart('echartL6', option);
  1406. function autoTooltip (point) {
  1407. chart.tooltip.refresh(point);
  1408. }
  1409. },
  1410. initChartL7 () {
  1411. var chartData = [
  1412. {
  1413. name: '化工',
  1414. y: 43.86,
  1415. num: 32,
  1416. sliced: false,
  1417. selected: false,
  1418. },
  1419. {
  1420. name: '煤层气',
  1421. y: 29.49,
  1422. num: 16,
  1423. sliced: false,
  1424. selected: false,
  1425. },
  1426. {
  1427. name: '文旅康养',
  1428. y: 0.07,
  1429. num: 1,
  1430. sliced: false,
  1431. selected: false,
  1432. },
  1433. {
  1434. name: '体育',
  1435. y: 2.57,
  1436. num: 5,
  1437. sliced: false,
  1438. selected: false,
  1439. },
  1440. {
  1441. name: '酿造',
  1442. y: 15.83,
  1443. num: 4,
  1444. sliced: false,
  1445. selected: false,
  1446. },
  1447. {
  1448. name: '建筑房地产',
  1449. y: 120.81,
  1450. num: 96,
  1451. sliced: false,
  1452. selected: false,
  1453. },
  1454. {
  1455. name: '农业',
  1456. y: 15.47,
  1457. num: 10,
  1458. sliced: false,
  1459. selected: false,
  1460. }
  1461. ]
  1462. var timer = null;
  1463. var i = 0;
  1464. let that = this
  1465. var option = {
  1466. colors: ['#5783ab', '#1a5389', '#a79c57', '#cc8c29', '#91a65f', '#383062', '#034a39'],
  1467. chart: {
  1468. type: 'pie',
  1469. backgroundColor: 'rgba(0,0,0,0)',
  1470. options3d: {
  1471. enabled: true,
  1472. alpha: 45,
  1473. //beta: 0
  1474. },
  1475. events: {
  1476. // load,图表加载完成时触发
  1477. load: function () {
  1478. var chart = this;
  1479. var points = chart.series[0].points;
  1480. var len = points.length;
  1481. timer && clearInterval(timer);
  1482. timer = setInterval(function () {
  1483. autoTooltip(points[i]);
  1484. chartData.forEach((item, index) => {
  1485. item.sliced = false
  1486. item.selected = false
  1487. if (index == i) {
  1488. item.sliced = true
  1489. item.selected = true
  1490. }
  1491. })
  1492. chart.update({
  1493. series: [{
  1494. type: 'pie',
  1495. name: '占比',
  1496. point: {
  1497. events: {
  1498. click: function (e) {
  1499. that.showTip3 = true
  1500. that.echartTitle = '特色优势产业'
  1501. setTimeout(() => {
  1502. that.initChartT1(chartData)
  1503. })
  1504. }
  1505. }
  1506. },
  1507. data: chartData
  1508. }]
  1509. })
  1510. i++;
  1511. if (i === len) {
  1512. i = 0;
  1513. }
  1514. }, 2000);
  1515. },
  1516. legendItemClick: function (event) {
  1517. console.log(event);
  1518. return true;
  1519. }
  1520. }
  1521. },
  1522. credits: {
  1523. enabled: false //去掉hightchats水印
  1524. },
  1525. title: {
  1526. text: '特色优势产业',
  1527. style: {
  1528. color: '#fff',
  1529. fontSize: 22,
  1530. },
  1531. align:'center',
  1532. verticalAlign:"bottom",
  1533. x:-120
  1534. },
  1535. legend: {
  1536. // labelFormatter: function() {
  1537. // return 123;
  1538. // },
  1539. align: 'right',//横向位置
  1540. verticalAlign: 'middle', // 纵向位置
  1541. layout: "vertical",//横排还是竖排
  1542. x: -50,
  1543. y:30,
  1544. symbolWidth: 50,
  1545. itemDistance: 50,
  1546. itemStyle: {
  1547. fontSize: '20px',
  1548. color: '#fff',
  1549. x: 20
  1550. },
  1551. },
  1552. tooltip: {
  1553. crosshairs: true,
  1554. backgroundColor: 'rgba(0,0,0,0.5)',
  1555. // positioner: function(e){
  1556. // console.log(e, this)
  1557. // },
  1558. useHTML: false, //开启html模式
  1559. style: {
  1560. color: '#fff',
  1561. },
  1562. formatter: function (e) {
  1563. //console.log(this)
  1564. let num = chartData[this.colorIndex].num
  1565. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1566. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1567. },
  1568. //pointFormat:
  1569. },
  1570. plotOptions: {
  1571. pie: {
  1572. allowPointSelect: true,
  1573. showInLegend: true, // 图例
  1574. cursor: 'pointer',
  1575. size: 220,
  1576. innerSize: 150, //环形图中间空白,0为饼图
  1577. depth: 25, //立体高度
  1578. slicedOffset: 21, //动画距离
  1579. dataLabels: {
  1580. enabled: false, // 是否展示指示线
  1581. format: '{point.name}: {point.percentage}'
  1582. }
  1583. },
  1584. },
  1585. series: [{
  1586. type: 'pie',
  1587. name: '占比',
  1588. //center: ['35%','50%'],
  1589. point: {
  1590. events: {
  1591. click: function (e) { //点击事件
  1592. that.showTip3 = true
  1593. that.echartTitle = '特色优势产业'
  1594. setTimeout(() => {
  1595. that.initChartT1(chartData)
  1596. })
  1597. },
  1598. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1599. //console.log(e)
  1600. chartData.forEach((item, index) => {
  1601. item.sliced = false
  1602. item.selected = false
  1603. })
  1604. chartData[e.target.index].sliced = true
  1605. chartData[e.target.index].selected = true
  1606. chart.update({
  1607. series: [{
  1608. type: 'pie',
  1609. name: '占比',
  1610. point: {
  1611. events: {
  1612. click: function (e) {
  1613. that.showTip3 = true
  1614. that.echartTitle = '特色优势产业'
  1615. setTimeout(() => {
  1616. that.initChartT1(chartData)
  1617. })
  1618. }
  1619. }
  1620. },
  1621. data: chartData
  1622. }]
  1623. })
  1624. timer && clearInterval(timer);
  1625. },
  1626. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1627. var points = chart.series[0].points;
  1628. var len = points.length;
  1629. timer && clearInterval(timer);
  1630. timer = setInterval(function () {
  1631. autoTooltip(points[i]);
  1632. chartData.forEach((item, index) => {
  1633. item.sliced = false
  1634. item.selected = false
  1635. if (index == i) {
  1636. item.sliced = true
  1637. item.selected = true
  1638. }
  1639. })
  1640. chart.update({
  1641. series: [{
  1642. type: 'pie',
  1643. name: '占比',
  1644. point: {
  1645. events: {
  1646. click: function (e) {
  1647. that.showTip3 = true
  1648. that.echartTitle = '特色优势产业'
  1649. setTimeout(() => {
  1650. that.initChartT1(chartData)
  1651. })
  1652. }
  1653. }
  1654. },
  1655. data: chartData
  1656. }]
  1657. })
  1658. i++;
  1659. if (i === len) {
  1660. i = 0;
  1661. }
  1662. }, 2000);
  1663. }
  1664. }
  1665. },
  1666. data: chartData
  1667. }]
  1668. }
  1669. var chart = Highcharts.chart('echartL7', option);
  1670. function autoTooltip (point) {
  1671. chart.tooltip.refresh(point);
  1672. }
  1673. },
  1674. initChartL8 () {
  1675. var chartData = [
  1676. {
  1677. name: '交通运输业',
  1678. y: 264.70,
  1679. num: 38,
  1680. sliced: false,
  1681. selected: false,
  1682. },
  1683. {
  1684. name: '煤气层管网',
  1685. y: 14.39,
  1686. num: 14,
  1687. sliced: false,
  1688. selected: false,
  1689. },
  1690. {
  1691. name: '物流贸易',
  1692. y: 18.07,
  1693. num: 18,
  1694. sliced: false,
  1695. selected: false,
  1696. },
  1697. {
  1698. name: '水务',
  1699. y: 69.73,
  1700. num: 34,
  1701. sliced: false,
  1702. selected: false,
  1703. },
  1704. {
  1705. name: '其他',
  1706. y: 3.64,
  1707. num: 5,
  1708. sliced: false,
  1709. selected: false,
  1710. }
  1711. ]
  1712. var timer = null;
  1713. var i = 0;
  1714. let that = this
  1715. var option = {
  1716. colors: ['#5783ab', '#1a5389', '#a79c57', '#cc8c29', '#91a65f', '#383062', '#034a39'],
  1717. chart: {
  1718. type: 'pie',
  1719. backgroundColor: 'rgba(0,0,0,0)',
  1720. options3d: {
  1721. enabled: true,
  1722. alpha: 45,
  1723. //beta: 0
  1724. },
  1725. events: {
  1726. // load,图表加载完成时触发
  1727. load: function () {
  1728. var chart = this;
  1729. var points = chart.series[0].points;
  1730. var len = points.length;
  1731. timer && clearInterval(timer);
  1732. timer = setInterval(function () {
  1733. autoTooltip(points[i]);
  1734. chartData.forEach((item, index) => {
  1735. item.sliced = false
  1736. item.selected = false
  1737. if (index == i) {
  1738. item.sliced = true
  1739. item.selected = true
  1740. }
  1741. })
  1742. chart.update({
  1743. series: [{
  1744. type: 'pie',
  1745. name: '占比',
  1746. point: {
  1747. events: {
  1748. click: function (e) {
  1749. that.showTip3 = true
  1750. that.echartTitle = '公共基础等产业'
  1751. setTimeout(() => {
  1752. that.initChartT1(chartData)
  1753. })
  1754. }
  1755. }
  1756. },
  1757. data: chartData
  1758. }]
  1759. })
  1760. i++;
  1761. if (i === len) {
  1762. i = 0;
  1763. }
  1764. }, 2000);
  1765. },
  1766. legendItemClick: function (event) {
  1767. console.log(event);
  1768. return true;
  1769. }
  1770. }
  1771. },
  1772. credits: {
  1773. enabled: false //去掉hightchats水印
  1774. },
  1775. title: {
  1776. text: '公共基础等产业',
  1777. style: {
  1778. color: '#fff',
  1779. fontSize: 22,
  1780. },
  1781. align:'center',
  1782. verticalAlign:"bottom",
  1783. x:-120
  1784. },
  1785. legend: {
  1786. // labelFormatter: function() {
  1787. // return 123;
  1788. // },
  1789. align: 'right',//横向位置
  1790. verticalAlign: 'middle', // 纵向位置
  1791. layout: "vertical",//横排还是竖排
  1792. x: -70,
  1793. y:50,
  1794. symbolWidth: 50,
  1795. itemDistance: 50,
  1796. itemStyle: {
  1797. fontSize: '20px',
  1798. color: '#fff',
  1799. x: 20
  1800. },
  1801. },
  1802. tooltip: {
  1803. crosshairs: true,
  1804. backgroundColor: 'rgba(0,0,0,0.5)',
  1805. // positioner: function(e){
  1806. // console.log(e, this)
  1807. // },
  1808. useHTML: false, //开启html模式
  1809. style: {
  1810. color: '#fff',
  1811. },
  1812. formatter: function (e) {
  1813. //console.log(this)
  1814. let num = chartData[this.colorIndex].num
  1815. this.percentage = this.percentage.toFixed(2) //Math.round(this.percentage)
  1816. return `${this.key}:<b>${this.percentage}%</b><br/><b>${this.y}</b>亿,<b>${num}个</b>`
  1817. },
  1818. //pointFormat:
  1819. },
  1820. plotOptions: {
  1821. pie: {
  1822. allowPointSelect: true,
  1823. showInLegend: true, // 图例
  1824. cursor: 'pointer',
  1825. size: 220,
  1826. innerSize: 150, //环形图中间空白,0为饼图
  1827. depth: 25, //立体高度
  1828. slicedOffset: 21, //动画距离
  1829. dataLabels: {
  1830. enabled: false, // 是否展示指示线
  1831. format: '{point.name}: {point.percentage}'
  1832. }
  1833. },
  1834. },
  1835. series: [{
  1836. type: 'pie',
  1837. name: '占比',
  1838. //center: ['35%','50%'],
  1839. point: {
  1840. events: {
  1841. click: function (e) { //点击事件
  1842. that.showTip3 = true
  1843. that.echartTitle = '公共基础等产业'
  1844. setTimeout(() => {
  1845. that.initChartT1(chartData)
  1846. })
  1847. },
  1848. mouseOver: function (e) { //鼠标移入停止轮播并且找到移入的当前数据设为选中
  1849. //console.log(e)
  1850. chartData.forEach((item, index) => {
  1851. item.sliced = false
  1852. item.selected = false
  1853. })
  1854. chartData[e.target.index].sliced = true
  1855. chartData[e.target.index].selected = true
  1856. chart.update({
  1857. series: [{
  1858. type: 'pie',
  1859. name: '占比',
  1860. point: {
  1861. events: {
  1862. click: function (e) {
  1863. that.showTip3 = true
  1864. that.echartTitle = '公共基础等产业'
  1865. setTimeout(() => {
  1866. that.initChartT1(chartData)
  1867. })
  1868. }
  1869. }
  1870. },
  1871. data: chartData
  1872. }]
  1873. })
  1874. timer && clearInterval(timer);
  1875. },
  1876. mouseOut: function () { // 鼠标移出后需要继续执行轮播
  1877. var points = chart.series[0].points;
  1878. var len = points.length;
  1879. timer && clearInterval(timer);
  1880. timer = setInterval(function () {
  1881. autoTooltip(points[i]);
  1882. chartData.forEach((item, index) => {
  1883. item.sliced = false
  1884. item.selected = false
  1885. if (index == i) {
  1886. item.sliced = true
  1887. item.selected = true
  1888. }
  1889. })
  1890. chart.update({
  1891. series: [{
  1892. type: 'pie',
  1893. name: '占比',
  1894. point: {
  1895. events: {
  1896. click: function (e) {
  1897. that.showTip3 = true
  1898. that.echartTitle = '公共基础等产业'
  1899. setTimeout(() => {
  1900. that.initChartT1(chartData)
  1901. })
  1902. }
  1903. }
  1904. },
  1905. data: chartData
  1906. }]
  1907. })
  1908. i++;
  1909. if (i === len) {
  1910. i = 0;
  1911. }
  1912. }, 2000);
  1913. }
  1914. }
  1915. },
  1916. data: chartData
  1917. }]
  1918. }
  1919. var chart = Highcharts.chart('echartL8', option);
  1920. function autoTooltip (point) {
  1921. chart.tooltip.refresh(point);
  1922. }
  1923. },
  1924. initChartL9 () {
  1925. let myChart = echarts.init(document.getElementById("echartL9"));
  1926. option = {
  1927. tooltip: {
  1928. trigger: 'axis',
  1929. formatter: '指标:' + '{c0}' + '<br/>' + '发展线:' + '{c1}' + '<br/>' + '生存线:' + '{c2}', //+ '<br/>'+ '{a1}:{c1}' + '%',
  1930. axisPointer: {
  1931. type: 'shadow',
  1932. },
  1933. },
  1934. grid: {
  1935. top: '10%',
  1936. right: '5%',
  1937. left: '10%',
  1938. bottom: '6%',
  1939. },
  1940. xAxis: {
  1941. // data: ['总投资收益率', '销售利润率', '成本费用利润率', '总资产周转率', '财务内部收益率'],
  1942. data: dataType[this.countType],
  1943. axisLine: {
  1944. show: true, //隐藏X轴轴线
  1945. lineStyle: {
  1946. color: '#005094',
  1947. width: 1,
  1948. },
  1949. },
  1950. axisTick: {
  1951. show: true, //隐藏X轴刻度
  1952. },
  1953. axisLabel: {
  1954. show: true,
  1955. rotate: 15,
  1956. textStyle: {
  1957. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  1958. fontSize: 12,
  1959. },
  1960. },
  1961. },
  1962. yAxis: [
  1963. {
  1964. type: 'value',
  1965. splitLine: {
  1966. show: true,
  1967. lineStyle: {
  1968. color: '#68b4dd66',
  1969. type: 'dashed',
  1970. },
  1971. },
  1972. axisLine: {
  1973. show: false
  1974. },
  1975. axisLabel: {
  1976. show: true,
  1977. formatter: '{value}',
  1978. textStyle: {
  1979. color: 'rgba(250,250,250,0.6)',
  1980. },
  1981. },
  1982. nameTextStyle: {
  1983. color: '#ebf8ac',
  1984. fontSize: 16,
  1985. },
  1986. },
  1987. ],
  1988. series: [
  1989. {
  1990. name: '实际值',
  1991. type: 'bar',
  1992. barWidth: 15,
  1993. itemStyle: {
  1994. normal: {
  1995. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  1996. {
  1997. offset: 0,
  1998. color: '#69c0ff',
  1999. },
  2000. {
  2001. offset: 1,
  2002. color: '#082550',
  2003. },
  2004. ]),
  2005. },
  2006. },
  2007. // data: [70, 52, 33, 41, 52],
  2008. data: dataList[this.count + 1][2]
  2009. // markLine: {
  2010. // symbol: ['none', 'none'],
  2011. // data: [
  2012. // {
  2013. // name: '生存线',
  2014. // yAxis: 10,
  2015. // lineStyle: {
  2016. // color: '#FF8F0A',
  2017. // },
  2018. // label: {
  2019. // formatter: '{b}',
  2020. // position: 'middle',
  2021. // color: '#FF8F0A',
  2022. // fontSize: 12,
  2023. // },
  2024. // },
  2025. // {
  2026. // name: '发展线',
  2027. // yAxis: 15,
  2028. // lineStyle: {
  2029. // color: '#00EEA2',
  2030. // },
  2031. // label: {
  2032. // formatter: '{b}',
  2033. // position: 'middle',
  2034. // color: '#00EEA2',
  2035. // fontSize: 12,
  2036. // },
  2037. // },
  2038. // ],
  2039. // label: {
  2040. // distance: [50, 0],
  2041. // },
  2042. // },
  2043. },
  2044. {
  2045. name: '',
  2046. type: 'line',
  2047. barWidth: 15,
  2048. itemStyle: {
  2049. normal: {
  2050. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2051. {
  2052. offset: 0,
  2053. color: '#69c0ff',
  2054. },
  2055. {
  2056. offset: 1,
  2057. color: 'green',
  2058. },
  2059. ]),
  2060. },
  2061. },
  2062. // data: [20, 30, 15, 28, 36],
  2063. data: dataList[this.count + 1][1]
  2064. },
  2065. {
  2066. name: '',
  2067. type: 'line',
  2068. barWidth: 15,
  2069. itemStyle: {
  2070. normal: {
  2071. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
  2072. {
  2073. offset: 0,
  2074. color: '#69c0ff',
  2075. },
  2076. {
  2077. offset: 1,
  2078. color: 'yellow',
  2079. },
  2080. ]),
  2081. },
  2082. },
  2083. // data: [15, 22, 17, 33, 14],
  2084. data: dataList[this.count + 1][0]
  2085. },
  2086. ],
  2087. }
  2088. myChart.setOption(option)
  2089. // tools.loopShowTooltip(myChart, option, {
  2090. // nterval: 2000,
  2091. // loopSeries: true,
  2092. // })
  2093. },
  2094. initChartL10 () {
  2095. let myChart = echarts.init(document.getElementById("echartL10"));
  2096. let option = {
  2097. title: {
  2098. text: '固定资产',
  2099. textStyle: {
  2100. color: '#69C0FF',
  2101. fontSize: 20,
  2102. fontWeight: 500
  2103. },
  2104. top: '20',
  2105. left: '20'
  2106. },
  2107. textStyle: {
  2108. color: '#fff',
  2109. },
  2110. tooltip: {
  2111. trigger: "axis",
  2112. formatter: function (params) {
  2113. var tip = params[0].axisValue + '<br/>' + params[0].marker + params[0].data[1] + ':' + params[0].data[2] + '个,' + params[0].data[3] + '亿元' + '<br/>' + params[1].marker + params[1].data[1] + ':' + params[1].data[2] + '个,' + params[1].data[3] + '亿元';
  2114. return tip
  2115. },
  2116. axisPointer: {
  2117. lineStyle: {
  2118. type: 'dashed',
  2119. width: 2,
  2120. color: 'rgba(255,255,255,0.6)'
  2121. },
  2122. animation: true
  2123. }
  2124. },
  2125. grid: {
  2126. top: '10%',
  2127. right: '5%',
  2128. left: '15%',
  2129. bottom: '6%',
  2130. },
  2131. yAxis: {
  2132. data: ['备案', '特别监管'],
  2133. splitLine: {
  2134. show: true,
  2135. lineStyle: {
  2136. color: '#68b4dd66',
  2137. type: 'dashed',
  2138. },
  2139. },
  2140. axisLine: {
  2141. show: false
  2142. },
  2143. axisLabel: {
  2144. show: true,
  2145. formatter: '{value}',
  2146. textStyle: {
  2147. color: 'rgba(250,250,250,0.6)',
  2148. fontSize: 16,
  2149. },
  2150. },
  2151. nameTextStyle: {
  2152. color: '#ebf8ac',
  2153. fontSize: 16,
  2154. },
  2155. },
  2156. xAxis: {
  2157. data: ['项目储备', '项目立项', '可研论证', '投资决策'],
  2158. axisLine: {
  2159. show: true, //隐藏X轴轴线
  2160. lineStyle: {
  2161. color: '#005094',
  2162. width: 1,
  2163. },
  2164. },
  2165. axisTick: {
  2166. show: false, //隐藏X轴刻度
  2167. },
  2168. axisLabel: {
  2169. show: true,
  2170. textStyle: {
  2171. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  2172. fontSize: 14,
  2173. },
  2174. },
  2175. },
  2176. series: [
  2177. {
  2178. name: '特别监管',
  2179. type: 'scatter',
  2180. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2181. symbolSize: function (data) {
  2182. return Math.sqrt(data[2]) * 3;
  2183. },
  2184. label: {
  2185. emphasis: {
  2186. show: true,
  2187. formatter: function (param) {
  2188. return param.data[2];
  2189. },
  2190. position: 'top'
  2191. }
  2192. },
  2193. itemStyle: {
  2194. normal: {
  2195. color: '#40A9FF'
  2196. }
  2197. },
  2198. data: [
  2199. ['项目储备', '特别监管', 14, 12.05],
  2200. ['项目立项', '特别监管', 2, 1.25],
  2201. ['可研论证', '特别监管', 10, 32.69],
  2202. ['投资决策', '特别监管', 15, 28.53],
  2203. ]
  2204. },
  2205. {
  2206. name: '备案',
  2207. type: 'scatter',
  2208. symbol: 'circle',//'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
  2209. symbolSize: function (data) {
  2210. return Math.sqrt(data[2]) * 3;
  2211. },
  2212. label: {
  2213. emphasis: {
  2214. show: true,
  2215. formatter: function (param) {
  2216. return param.data[2];
  2217. },
  2218. position: 'top'
  2219. }
  2220. },
  2221. itemStyle: {
  2222. normal: {
  2223. color: '#45DAD1'
  2224. }
  2225. },
  2226. data: [
  2227. ['项目储备', '备案', 27, 23.86],
  2228. ['项目立项', '备案', 1, 1.05],
  2229. ['可研论证', '备案', 14, 18.46],
  2230. ['投资决策', '备案', 40, 38.86],
  2231. ]
  2232. },
  2233. ]
  2234. }
  2235. myChart.setOption(option)
  2236. tools.loopShowTooltip(myChart, option, {
  2237. nterval: 2000,
  2238. loopSeries: true,
  2239. })
  2240. },
  2241. initChartL11 () {
  2242. let myChart = echarts.init(document.getElementById("echartL11"));
  2243. let option = {
  2244. title: {
  2245. text: '股权类',
  2246. textStyle: {
  2247. color: '#69C0FF',
  2248. fontSize: 20,
  2249. fontWeight: 500
  2250. },
  2251. top: '20',
  2252. left: '20'
  2253. },
  2254. textStyle: {
  2255. color: '#fff',
  2256. },
  2257. tooltip: {
  2258. trigger: "axis",
  2259. formatter: function (params) {
  2260. var tip = params[0].axisValue + '<br/>' + params[0].marker + params[0].data[1] + ':' + params[0].data[2] + '个,' + params[0].data[3] + '亿元' + '<br/>' + params[1].marker + params[1].data[1] + ':' + params[1].data[2] + '个,' + params[1].data[3] + '亿元';
  2261. return tip
  2262. },
  2263. axisPointer: {
  2264. lineStyle: {
  2265. type: 'dashed',
  2266. width: 2,
  2267. color: 'rgba(255,255,255,0.6)'
  2268. },
  2269. animation: true
  2270. }
  2271. },
  2272. grid: {
  2273. top: '10%',
  2274. right: '5%',
  2275. left: '15%',
  2276. bottom: '6%',
  2277. },
  2278. yAxis: {
  2279. data: ['备案', '特别监管'],
  2280. splitLine: {
  2281. show: true,
  2282. lineStyle: {
  2283. color: '#68b4dd66',
  2284. type: 'dashed',
  2285. },
  2286. },
  2287. axisLine: {
  2288. show: false
  2289. },
  2290. axisLabel: {
  2291. show: true,
  2292. formatter: '{value}',
  2293. textStyle: {
  2294. color: 'rgba(250,250,250,0.6)',
  2295. fontSize: 16,
  2296. },
  2297. },
  2298. nameTextStyle: {
  2299. color: '#ebf8ac',
  2300. fontSize: 16,
  2301. },
  2302. },
  2303. xAxis: {
  2304. data: ['项目储备', '项目立项', '可研论证', '投资决策'],
  2305. axisLine: {
  2306. show: true, //隐藏X轴轴线
  2307. lineStyle: {
  2308. color: '#005094',
  2309. width: 1,
  2310. },
  2311. },
  2312. axisTick: {
  2313. show: false, //隐藏X轴刻度
  2314. },
  2315. axisLabel: {
  2316. show: true,
  2317. textStyle: {
  2318. color: 'rgba(255,255,255,0.6)', //X轴文字颜色
  2319. fontSize: 14,
  2320. },
  2321. },
  2322. },
  2323. series: [
  2324. {
  2325. name: '',
  2326. type: 'scatter',
  2327. symbol: 'circle',
  2328. symbolSize: function (data) {
  2329. return Math.sqrt(data[2]) * 3;
  2330. },
  2331. label: {
  2332. emphasis: {
  2333. show: true,
  2334. formatter: function (param) {
  2335. return param.data[2];
  2336. },
  2337. position: 'top'
  2338. }
  2339. },
  2340. itemStyle: {
  2341. normal: {
  2342. color: '#40A9FF'
  2343. }
  2344. },
  2345. data: [
  2346. ['项目储备', '特别监管', 9, 6.49],
  2347. ['项目立项', '特别监管', 0, 0.00],
  2348. ['可研论证', '特别监管', 2, 0.10],
  2349. ['投资决策', '特别监管', 27, 15.52],
  2350. ]
  2351. },
  2352. {
  2353. name: '',
  2354. type: 'scatter',
  2355. symbol: 'circle',
  2356. symbolSize: function (data) {
  2357. return Math.sqrt(data[2]) * 3;
  2358. },
  2359. label: {
  2360. emphasis: {
  2361. show: true,
  2362. formatter: function (param) {
  2363. return param.data[2];
  2364. },
  2365. position: 'top'
  2366. }
  2367. },
  2368. itemStyle: {
  2369. normal: {
  2370. color: '#45DAD1'
  2371. }
  2372. },
  2373. data: [
  2374. ['项目储备', '备案', 39, 8.08],
  2375. ['项目立项', '备案', 7, 1.83],
  2376. ['可研论证', '备案', 19, 1.01],
  2377. ['投资决策', '备案', 73, 17.65],
  2378. ]
  2379. },
  2380. ]
  2381. }
  2382. myChart.setOption(option)
  2383. tools.loopShowTooltip(myChart, option, {
  2384. nterval: 2000,
  2385. loopSeries: true,
  2386. })
  2387. },
  2388. },
  2389. })