investHome3compound.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  1. let app = new Vue({
  2. el: '#app',
  3. data () {
  4. return {
  5. time: '',
  6. timer: '',
  7. config5: {
  8. waitTime: 2000,
  9. header: ["风险类型", "风险说明", '提出人', '时间', '风险等级'],
  10. data: [
  11. ["风险等级", "WBS:012工程", "杨志宇", "2022.9.12", '<span class="lightOut"><span class="blue">一级</span></span>'],
  12. ["风险等级", "WBS:012工程", "杨志宇", "2022.9.12", '<span class="lightOut"><span class="yellow">二级</span></span>'],
  13. ["风险等级", "WBS:012工程", "杨志宇", "2022.9.12", '<span class="lightOut"><span class="pink">三级</span></span>'],
  14. ["风险等级", "WBS:012工程", "杨志宇", "2022.9.12", '<span class="lightOut"><span class="blue">一级</span></span>'],
  15. ["风险等级", "WBS:012工程", "杨志宇", "2022.9.12", '<span class="lightOut"><span class="yellow">二级</span></span>'],
  16. ["风险等级", "WBS:012工程", "杨志宇", "2022.9.12", '<span class="lightOut"><span class="pink">三级</span></span>']
  17. ],
  18. align: ["center", "center", "center", "center", "center"],
  19. headerBGC: "#1C537D",
  20. oddRowBGC: "#09335C"
  21. },
  22. }
  23. },
  24. created () {
  25. this.time = formatDate()
  26. this.timer = setInterval(() => {
  27. this.time = formatDate()
  28. }, 1000)
  29. },
  30. beforeDestroy () {
  31. if (this.timer) {
  32. clearInterval(this.timer);
  33. }
  34. },
  35. mounted () {
  36. setTimeout(() => {
  37. this.initChartL1()
  38. this.initChartL2()
  39. this.initChartL3()
  40. this.initChartL4()
  41. this.initChartL5()
  42. this.initChartL6()
  43. this.aiQualityECharts();
  44. this.aiQualityECharts2();
  45. })
  46. },
  47. methods: {
  48. initChartL1 () {
  49. let myChart = echarts.init(this.$refs['tl1'])
  50. let option = {
  51. grid: {
  52. top: 0,
  53. right: 0,
  54. left: 0,
  55. bottom: 0,
  56. },
  57. tooltip: {
  58. trigger: 'item',
  59. },
  60. color: ['#6682f5', '#40A9FF'],
  61. legend: {
  62. // icon: 'circle',
  63. bottom: 5,
  64. left: '40',
  65. // itemHeight: 10,
  66. // itemWidth: 10,
  67. textStyle: {
  68. color: '#9DB9EB',
  69. },
  70. },
  71. // graphic: {
  72. // elements: [{
  73. // type: "text",
  74. // left: "center",
  75. // top: "70%",
  76. // style: {
  77. // text: "投资类别",
  78. // textAlign: "center",
  79. // fill: "#fff",
  80. // fontSize: 15,
  81. // fontWeight: 500
  82. // }
  83. // }]
  84. // },
  85. series: [
  86. {
  87. center: ['50%', '32%'],
  88. radius: ['45%', '60%'],
  89. name: '',
  90. type: 'pie',
  91. labelLine: {
  92. normal: {
  93. lineStyle: {
  94. width: 1,
  95. },
  96. },
  97. },
  98. label: {
  99. show: false,
  100. position: 'center'
  101. },
  102. data: [
  103. { value: 1169.91, name: '固定资产投资' },
  104. { value: 154.17, name: '股权投资' }
  105. ],
  106. },
  107. ],
  108. }
  109. tools.loopShowTooltip(myChart, option, {
  110. interval: 2000,
  111. loopSeries: true,
  112. });
  113. myChart.setOption(option)
  114. },
  115. initChartL2 () {
  116. let myChart = echarts.init(this.$refs['tl2'])
  117. let option = {
  118. grid: {
  119. top: 0,
  120. right: 0,
  121. left: 0,
  122. bottom: 0,
  123. },
  124. tooltip: {
  125. trigger: 'item',
  126. },
  127. color: ['#40A9FF', '#45DAD1'],
  128. legend: {
  129. bottom: 0,
  130. left: 40,
  131. textStyle: {
  132. color: '#9DB9EB',
  133. },
  134. },
  135. // graphic: {
  136. // elements: [{
  137. // type: "text",
  138. // left: "center",
  139. // top: "77%",
  140. // style: {
  141. // text: "投资阶段",
  142. // textAlign: "center",
  143. // fill: "#fff",
  144. // fontSize: 15,
  145. // fontWeight: 500
  146. // }
  147. // }]
  148. // },
  149. series: [
  150. {
  151. center: ['50%', '32%'],
  152. radius: ['45%', '60%'],
  153. name: '',
  154. type: 'pie',
  155. labelLine: {
  156. normal: {
  157. lineStyle: {
  158. width: 1,
  159. },
  160. },
  161. },
  162. label: {
  163. show: false,
  164. position: 'center'
  165. },
  166. data: [
  167. { value: 345.53, name: '新建项目' },
  168. { value: 978.55, name: '续建项目' }
  169. ],
  170. },
  171. ],
  172. }
  173. tools.loopShowTooltip(myChart, option, {
  174. interval: 2500,
  175. loopSeries: true,
  176. });
  177. myChart.setOption(option)
  178. },
  179. initChartL3 () {
  180. let myChart = echarts.init(this.$refs['tl3'])
  181. let option = {
  182. grid: {
  183. top: 0,
  184. right: 0,
  185. left: 0,
  186. bottom: 0,
  187. },
  188. tooltip: {
  189. trigger: 'item',
  190. },
  191. color: ['#40A9FF', '#8BA2FF'],
  192. legend: {
  193. bottom: 0,
  194. left: 40,
  195. textStyle: {
  196. color: '#9DB9EB',
  197. },
  198. },
  199. // graphic: {
  200. // elements: [{
  201. // type: "text",
  202. // left: "center",
  203. // top: "77%",
  204. // style: {
  205. // text: "管理类别",
  206. // textAlign: "center",
  207. // fill: "#fff",
  208. // fontSize: 15,
  209. // fontWeight: 500
  210. // }
  211. // }]
  212. // },
  213. series: [
  214. {
  215. center: ['50%', '32%'],
  216. radius: ['45%', '60%'],
  217. name: '',
  218. type: 'pie',
  219. labelLine: {
  220. normal: {
  221. lineStyle: {
  222. width: 1,
  223. },
  224. },
  225. },
  226. label: {
  227. show: false,
  228. position: 'center'
  229. },
  230. data: [
  231. { value: 242, name: '特别监管类' },
  232. { value: 165, name: '备案类' },
  233. { value: 35, name: '其他类' }
  234. ],
  235. },
  236. ],
  237. }
  238. tools.loopShowTooltip(myChart, option, {
  239. interval: 3000,
  240. loopSeries: true,
  241. });
  242. myChart.setOption(option)
  243. },
  244. initChartL4 () {
  245. let myChart = echarts.init(this.$refs['tl4'])
  246. let option = {
  247. grid: {
  248. top: 0,
  249. right: 0,
  250. left: 0,
  251. bottom: 0,
  252. },
  253. tooltip: {
  254. trigger: 'item',
  255. },
  256. color: ['#45DAD1', '#40A9FF'],
  257. legend: {
  258. bottom: 0,
  259. left: '30',
  260. textStyle: {
  261. color: '#9DB9EB',
  262. },
  263. },
  264. // graphic: {
  265. // elements: [{
  266. // type: "text",
  267. // left: "center",
  268. // top: "77%",
  269. // style: {
  270. // text: "投资领域",
  271. // textAlign: "center",
  272. // fill: "#fff",
  273. // fontSize: 15,
  274. // fontWeight: 500
  275. // }
  276. // }]
  277. // },
  278. series: [
  279. {
  280. center: ['50%', '32%'],
  281. radius: ['45%', '60%'],
  282. name: '',
  283. type: 'pie',
  284. labelLine: {
  285. normal: {
  286. lineStyle: {
  287. width: 1,
  288. },
  289. },
  290. },
  291. label: {
  292. show: false,
  293. position: 'center'
  294. },
  295. data: [
  296. { value: 405.29, name: '传统产业投资' },
  297. { value: 196.44, name: '战略新兴产业投资' },
  298. { value: 722.34, name: '基础产业投资' }
  299. ],
  300. },
  301. ],
  302. }
  303. tools.loopShowTooltip(myChart, option, {
  304. interval: 3500,
  305. loopSeries: true,
  306. });
  307. myChart.setOption(option)
  308. },
  309. initChartL5 () {
  310. let myChart = echarts.init(this.$refs['cl1'])
  311. let option = {
  312. grid: {
  313. top: 0,
  314. right: 0,
  315. left: 0,
  316. bottom: 0,
  317. },
  318. tooltip: {
  319. trigger: 'item',
  320. },
  321. color: ['#45DAD1', '#40A9FF'],
  322. legend: {
  323. bottom: 0,
  324. left: 'center',
  325. textStyle: {
  326. color: '#9DB9EB',
  327. },
  328. },
  329. graphic: {
  330. elements: [{
  331. type: "text",
  332. left: "center",
  333. top: "77%",
  334. style: {
  335. text: "投资情况",
  336. textAlign: "center",
  337. fill: "#fff",
  338. fontSize: 15,
  339. fontWeight: 500
  340. }
  341. }]
  342. },
  343. series: [
  344. {
  345. center: ['50%', '40%'],
  346. radius: ['45%', '60%'],
  347. name: '',
  348. type: 'pie',
  349. labelLine: {
  350. normal: {
  351. lineStyle: {
  352. width: 1,
  353. },
  354. },
  355. },
  356. label: {
  357. show: false,
  358. position: 'center'
  359. },
  360. data: [
  361. { value: 1048, name: '数据1' },
  362. { value: 735, name: '数据2' }
  363. ],
  364. },
  365. ],
  366. }
  367. tools.loopShowTooltip(myChart, option, {
  368. interval: 4000,
  369. loopSeries: true,
  370. });
  371. myChart.setOption(option)
  372. },
  373. initChartL6 () {
  374. let myChart = echarts.init(this.$refs['cr1'])
  375. option = {
  376. title: {
  377. text: ''
  378. },
  379. legend: {
  380. data: ['进度', '质量', '预算', '证照', '合同'],
  381. bottom: 0,
  382. left: 'center',
  383. textStyle: {
  384. color: '#9DB9EB',
  385. },
  386. },
  387. splitArea: { // 坐标轴在 grid 区域中的分隔区域,默认不显示。
  388. show: true,
  389. areaStyle: { // 分隔区域的样式设置。
  390. color: ['yellow'],
  391. // 分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。
  392. }
  393. },
  394. radar: {
  395. // shape: 'circle',
  396. center: ['50%', '50%'],
  397. radius: 60,
  398. indicator: [
  399. { name: '进度', max: 100000 },
  400. { name: '质量', max: 100000 },
  401. { name: '预算', max: 100000 },
  402. { name: '证照', max: 100000 },
  403. { name: '合同', max: 100000 },
  404. ],
  405. axisLine: { // 设置雷达图中间射线的颜色
  406. lineStyle: {
  407. color: '#c0c0c0',
  408. },
  409. },
  410. splitLine: { //网格颜色设置
  411. show: true,
  412. lineStyle: {
  413. width: 1,
  414. color: '#1e83e4',
  415. },
  416. },
  417. splitArea: { //设置图表颜色,show的值为true
  418. show: false,
  419. areaStyle: {
  420. // color:"#c1ddf8", //一般设置方式
  421. //设置渐变背景色 new echarts.graphic.LinearGradient(a,b,c,d,arr)
  422. //a ,b,c,d值可为0,1 a:1表示arr中的颜色右到左;c:1 arr中的颜色左到右
  423. //b:1表示arr中的颜色下到上;d:1表示arr中的颜色上到下
  424. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  425. { offset: 0, color: '#c1ddf8' }, // 0% 处的颜色
  426. { offset: 1, color: '#1e83e4' }// 100% 处的颜色
  427. ], false)
  428. }
  429. }
  430. },
  431. series: [
  432. {
  433. name: '',
  434. type: 'radar',
  435. symbol: 'circle', // 单个数值点的样式,还可以取值'rect','angle'等
  436. symbolSize: 0, // 数值点的大小
  437. data: [
  438. {
  439. value: [1],
  440. name: '类型1',
  441. itemStyle: { //该数值区域样式设置
  442. normal: {
  443. color: '#2CC6FF', //背景颜色,还需设置areaStyle
  444. lineStyle: {
  445. color: '#2CC6FF', //边框颜色
  446. },
  447. },
  448. },
  449. label: { //显示value中具体的数值
  450. normal: {
  451. show: false,
  452. textStyle: { //更改数值样式
  453. color: '#43EDE3'
  454. }
  455. },
  456. },
  457. areaStyle: { //设置区域背景颜色透明度
  458. normal: {
  459. width: 1,
  460. opacity: 0.8,
  461. },
  462. },
  463. },
  464. {
  465. value: [8000],
  466. name: '类型2',
  467. itemStyle: { //该数值区域样式设置
  468. normal: {
  469. color: '#D87AFF', //背景颜色,还需设置areaStyle
  470. lineStyle: {
  471. color: '#2CC6FF', //边框颜色
  472. },
  473. },
  474. },
  475. label: { //显示value中具体的数值
  476. normal: {
  477. show: false,
  478. textStyle: { //更改数值样式
  479. color: '#43EDE3'
  480. }
  481. },
  482. },
  483. areaStyle: { //设置区域背景颜色透明度
  484. normal: {
  485. width: 1,
  486. opacity: 0.8,
  487. },
  488. },
  489. }
  490. ]
  491. }
  492. ]
  493. };
  494. tools.loopShowTooltip(myChart, option, {
  495. interval: 2000,
  496. loopSeries: true,
  497. });
  498. myChart.setOption(option)
  499. },
  500. aiQualityECharts () {
  501. let chart = echarts.init(document.getElementById("aiQuality"));
  502. let option = {
  503. grid: {
  504. top: 35,
  505. right: 40,
  506. left: 60,
  507. bottom: 20,
  508. },
  509. tooltip: {
  510. show: true,
  511. trigger: "axis",
  512. axisPointer: {
  513. // 坐标轴指示器,坐标轴触发有效
  514. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  515. },
  516. },
  517. xAxis: {
  518. data: ["万家寨水控", "山西建设", "华新燃气", "国际能源", "汾酒集团", "大地控股", "晋能控股", '华远陆港', '山西焦煤', '潞安化工', '华阳新材', '太重集团', '文旅集团', '航产集团', '华舰体育', '神农科技', '云时代', '山西交控'],
  519. axisTick: {
  520. show: false,
  521. },
  522. // x轴的字体颜色
  523. axisLabel: {
  524. textStyle: {
  525. color: "white",
  526. },
  527. },
  528. //y轴线的颜色以及宽度
  529. axisLine: {
  530. show: true,
  531. lineStyle: {
  532. color: "#1E5389",
  533. width: 1,
  534. type: "solid",
  535. },
  536. },
  537. },
  538. yAxis: [{
  539. type: 'value',
  540. name: '亿元',
  541. nameTextStyle: {//y轴上方单位的颜色
  542. color: '#fff',
  543. },
  544. axisTick: {
  545. lineStyle: {
  546. color: "#18416F",
  547. },
  548. },
  549. // y轴的字体颜色
  550. axisLabel: {
  551. // formatter: '{value} %',
  552. textStyle: {
  553. color: "white",
  554. },
  555. },
  556. splitLine: {
  557. show: false,
  558. lineStyle: {
  559. color: "#204561",
  560. width: 1,
  561. type: "dotted",
  562. },
  563. },
  564. },
  565. {
  566. type: 'value',
  567. nameTextStyle: {//y轴上方单位的颜色
  568. color: '#fff',
  569. },
  570. axisTick: {
  571. lineStyle: {
  572. color: "#18416F",
  573. },
  574. },
  575. // y轴的字体颜色
  576. axisLabel: {
  577. formatter: '{value} %',
  578. textStyle: {
  579. color: "white",
  580. },
  581. },
  582. splitLine: {
  583. show: false,
  584. lineStyle: {
  585. color: "#204561",
  586. width: 1,
  587. type: "dotted",
  588. },
  589. },
  590. },
  591. ],
  592. series: [
  593. {
  594. name: "",
  595. type: "bar",
  596. data: [46.99, 218.35, 31.83, 64.20, 14.03, 47.05, 385.25, 97.57, 189.07, 106.84, 82.95, 80.01, 26.79, 41.09, 5.33, 14.76, 63.45, 346.36],
  597. showBackground: false,
  598. backgroundStyle: {
  599. color: "#18416F",
  600. },
  601. barWidth: "10%",
  602. itemStyle: {
  603. barBorderRadius: [10, 10, 0, 0],
  604. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  605. {
  606. offset: 0,
  607. color: "#132543",
  608. }, //柱图渐变色
  609. {
  610. offset: 1,
  611. color: "#897DFF",
  612. },
  613. ]),
  614. },
  615. },
  616. {
  617. name: "",
  618. type: "bar",
  619. data: [50.89, 143.84, 25.20, 12.19, 7.69, 23.93, 224.89, 112.67, 121.59, 59.93, 71.34, 42.46, 9.64, 42.67, 0.80, 5.84, 32.60, 335.91,],
  620. showBackground: false,
  621. backgroundStyle: {
  622. color: "#18416F",
  623. },
  624. barWidth: "10%",
  625. itemStyle: {
  626. barBorderRadius: [10, 10, 0, 0],
  627. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  628. {
  629. offset: 0,
  630. color: "#132543",
  631. }, //柱图渐变色
  632. {
  633. offset: 1,
  634. color: "#FED95B",
  635. },
  636. ]),
  637. },
  638. },
  639. {
  640. name: "",
  641. type: "line",
  642. yAxisIndex: 1,
  643. data: [1.08, 0.66, 0.79, 0.19, 0.55, 0.51, 0.58, 1.15, 0.64, 0.56, 0.86, 0.53, 0.36, 1.04, 0.15, 0.4, 0.51, 0.97],
  644. showBackground: false,
  645. backgroundStyle: {
  646. color: "#18416F",
  647. },
  648. barWidth: "10%",
  649. itemStyle: {
  650. barBorderRadius: [10, 10, 0, 0],
  651. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  652. {
  653. offset: 0,
  654. color: "#132543",
  655. }, //柱图渐变色
  656. {
  657. offset: 1,
  658. color: "blue",
  659. },
  660. ]),
  661. },
  662. },
  663. ],
  664. legend: {
  665. data: ["计划投资额", "实际投资额"],
  666. textStyle: {
  667. // 图列内容样式
  668. color: "#fff", // 字体颜色
  669. // fontSize: "10",
  670. },
  671. right: 30,
  672. icon: "roundRect",
  673. // 小图标的宽高
  674. itemHeight: 5,
  675. },
  676. };
  677. chart.setOption(option);
  678. tools.loopShowTooltip(chart, option, {
  679. interval: 2000,
  680. loopSeries: true,
  681. });
  682. },
  683. aiQualityECharts2 () {
  684. let chart = echarts.init(document.getElementById("aiQuality2"));
  685. let option = {
  686. grid: {
  687. top: 35,
  688. right: 40,
  689. left: 60,
  690. bottom: 20,
  691. },
  692. tooltip: {
  693. show: true,
  694. trigger: "axis",
  695. axisPointer: {
  696. // 坐标轴指示器,坐标轴触发有效
  697. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  698. },
  699. },
  700. xAxis: {
  701. data: ["工程费用", "设备费用", "人员费用", "材料费用", "管理费用"],
  702. axisTick: {
  703. show: false,
  704. },
  705. // x轴的字体颜色
  706. axisLabel: {
  707. textStyle: {
  708. color: "white",
  709. },
  710. },
  711. //y轴线的颜色以及宽度
  712. axisLine: {
  713. show: true,
  714. lineStyle: {
  715. color: "#1E5389",
  716. width: 1,
  717. type: "solid",
  718. },
  719. },
  720. },
  721. yAxis: {
  722. name: '亿元',
  723. nameTextStyle: {//y轴上方单位的颜色
  724. color: '#fff',
  725. },
  726. axisTick: {
  727. lineStyle: {
  728. color: "#18416F",
  729. },
  730. },
  731. // y轴的字体颜色
  732. axisLabel: {
  733. textStyle: {
  734. color: "white",
  735. },
  736. },
  737. splitLine: {
  738. show: false,
  739. lineStyle: {
  740. color: "#204561",
  741. width: 1,
  742. type: "dotted",
  743. },
  744. },
  745. //y轴线的颜色以及宽度
  746. axisLine: {
  747. show: true,
  748. lineStyle: {
  749. color: "#1E5389",
  750. width: 1,
  751. type: "solid",
  752. },
  753. },
  754. },
  755. series: [
  756. {
  757. name: "预算金额",
  758. type: "bar",
  759. data: [843, 987, 126, 723, 569],
  760. showBackground: false,
  761. backgroundStyle: {
  762. color: "#18416F",
  763. },
  764. barWidth: "10%",
  765. itemStyle: {
  766. barBorderRadius: [10, 10, 0, 0],
  767. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  768. {
  769. offset: 0,
  770. color: "#132543",
  771. }, //柱图渐变色
  772. {
  773. offset: 1,
  774. color: "#40A9FF",
  775. },
  776. ]),
  777. },
  778. },
  779. {
  780. name: "实际金额",
  781. type: "bar",
  782. data: [675, 743, 724, 733, 725],
  783. showBackground: false,
  784. backgroundStyle: {
  785. color: "#18416F",
  786. },
  787. barWidth: "10%",
  788. itemStyle: {
  789. barBorderRadius: [10, 10, 0, 0],
  790. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  791. {
  792. offset: 0,
  793. color: "#132543",
  794. }, //柱图渐变色
  795. {
  796. offset: 1,
  797. color: "#45DAD1",
  798. },
  799. ]),
  800. },
  801. },
  802. ],
  803. legend: {
  804. data: ["预算金额", "实际金额"],
  805. textStyle: {
  806. // 图列内容样式
  807. color: "#fff", // 字体颜色
  808. // fontSize: "10",
  809. },
  810. right: 30,
  811. icon: "roundRect",
  812. // 小图标的宽高
  813. itemHeight: 5,
  814. },
  815. };
  816. chart.setOption(option);
  817. tools.loopShowTooltip(chart, option, {
  818. interval: 2000,
  819. loopSeries: true,
  820. });
  821. }
  822. },
  823. })