investHome3compound.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  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: ['类型1', '类型2', '类型3', '类型4', '类型5'],
  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: '类型1', max: 100000 },
  400. { name: '类型2', max: 100000 },
  401. { name: '类型3', max: 100000 },
  402. { name: '类型4', max: 100000 },
  403. { name: '类型5', 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: [4200, 3000, 20000, 35000, 50000, 18000],
  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, 3000, 38000, 76000, 32000, 71000],
  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. textStyle: {
  552. color: "white",
  553. formatter: '{value} %',
  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. axisLine: {
  577. show: true,
  578. formatter: '{value} %',
  579. lineStyle: {
  580. color: "#fff",
  581. width: 1,
  582. type: "solid",
  583. },
  584. },
  585. splitLine: {
  586. show: false,
  587. lineStyle: {
  588. color: "#204561",
  589. width: 1,
  590. type: "dotted",
  591. },
  592. }
  593. }],
  594. series: [
  595. {
  596. name: "",
  597. type: "bar",
  598. 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],
  599. showBackground: false,
  600. backgroundStyle: {
  601. color: "#18416F",
  602. },
  603. barWidth: "10%",
  604. itemStyle: {
  605. barBorderRadius: [10, 10, 0, 0],
  606. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  607. {
  608. offset: 0,
  609. color: "#132543",
  610. }, //柱图渐变色
  611. {
  612. offset: 1,
  613. color: "#897DFF",
  614. },
  615. ]),
  616. },
  617. },
  618. {
  619. name: "",
  620. type: "bar",
  621. 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,],
  622. showBackground: false,
  623. backgroundStyle: {
  624. color: "#18416F",
  625. },
  626. barWidth: "10%",
  627. itemStyle: {
  628. barBorderRadius: [10, 10, 0, 0],
  629. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  630. {
  631. offset: 0,
  632. color: "#132543",
  633. }, //柱图渐变色
  634. {
  635. offset: 1,
  636. color: "#FED95B",
  637. },
  638. ]),
  639. },
  640. },
  641. {
  642. name: "",
  643. type: "bar",
  644. yAxisIndex: 1,
  645. 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],
  646. showBackground: false,
  647. backgroundStyle: {
  648. color: "#18416F",
  649. },
  650. barWidth: "10%",
  651. itemStyle: {
  652. barBorderRadius: [10, 10, 0, 0],
  653. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  654. {
  655. offset: 0,
  656. color: "#132543",
  657. }, //柱图渐变色
  658. {
  659. offset: 1,
  660. color: "#897DFF",
  661. },
  662. ]),
  663. },
  664. },
  665. ],
  666. legend: {
  667. data: ["计划投资额", "实际投资额"],
  668. textStyle: {
  669. // 图列内容样式
  670. color: "#fff", // 字体颜色
  671. // fontSize: "10",
  672. },
  673. right: 30,
  674. icon: "roundRect",
  675. // 小图标的宽高
  676. itemHeight: 5,
  677. },
  678. };
  679. chart.setOption(option);
  680. tools.loopShowTooltip(chart, option, {
  681. interval: 2000,
  682. loopSeries: true,
  683. });
  684. },
  685. aiQualityECharts2 () {
  686. let chart = echarts.init(document.getElementById("aiQuality2"));
  687. let option = {
  688. grid: {
  689. top: 35,
  690. right: 40,
  691. left: 60,
  692. bottom: 20,
  693. },
  694. tooltip: {
  695. show: true,
  696. trigger: "axis",
  697. axisPointer: {
  698. // 坐标轴指示器,坐标轴触发有效
  699. type: "shadow", // 默认为直线,可选为:'line' | 'shadow'
  700. },
  701. },
  702. xAxis: {
  703. data: ["工程费用", "设备费用", "人员费用", "材料费用", "管理费用"],
  704. axisTick: {
  705. show: false,
  706. },
  707. // x轴的字体颜色
  708. axisLabel: {
  709. textStyle: {
  710. color: "white",
  711. },
  712. },
  713. //y轴线的颜色以及宽度
  714. axisLine: {
  715. show: true,
  716. lineStyle: {
  717. color: "#1E5389",
  718. width: 1,
  719. type: "solid",
  720. },
  721. },
  722. },
  723. yAxis: {
  724. name: '亿元',
  725. nameTextStyle: {//y轴上方单位的颜色
  726. color: '#fff',
  727. },
  728. axisTick: {
  729. lineStyle: {
  730. color: "#18416F",
  731. },
  732. },
  733. // y轴的字体颜色
  734. axisLabel: {
  735. textStyle: {
  736. color: "white",
  737. },
  738. },
  739. splitLine: {
  740. show: false,
  741. lineStyle: {
  742. color: "#204561",
  743. width: 1,
  744. type: "dotted",
  745. },
  746. },
  747. //y轴线的颜色以及宽度
  748. axisLine: {
  749. show: true,
  750. lineStyle: {
  751. color: "#1E5389",
  752. width: 1,
  753. type: "solid",
  754. },
  755. },
  756. },
  757. series: [
  758. {
  759. name: "预算金额",
  760. type: "bar",
  761. data: [843, 987, 126, 723, 569],
  762. showBackground: false,
  763. backgroundStyle: {
  764. color: "#18416F",
  765. },
  766. barWidth: "10%",
  767. itemStyle: {
  768. barBorderRadius: [10, 10, 0, 0],
  769. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  770. {
  771. offset: 0,
  772. color: "#132543",
  773. }, //柱图渐变色
  774. {
  775. offset: 1,
  776. color: "#40A9FF",
  777. },
  778. ]),
  779. },
  780. },
  781. {
  782. name: "实际金额",
  783. type: "bar",
  784. data: [675, 743, 724, 733, 725],
  785. showBackground: false,
  786. backgroundStyle: {
  787. color: "#18416F",
  788. },
  789. barWidth: "10%",
  790. itemStyle: {
  791. barBorderRadius: [10, 10, 0, 0],
  792. color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [
  793. {
  794. offset: 0,
  795. color: "#132543",
  796. }, //柱图渐变色
  797. {
  798. offset: 1,
  799. color: "#45DAD1",
  800. },
  801. ]),
  802. },
  803. },
  804. ],
  805. legend: {
  806. data: ["预算金额", "实际金额"],
  807. textStyle: {
  808. // 图列内容样式
  809. color: "#fff", // 字体颜色
  810. // fontSize: "10",
  811. },
  812. right: 30,
  813. icon: "roundRect",
  814. // 小图标的宽高
  815. itemHeight: 5,
  816. },
  817. };
  818. chart.setOption(option);
  819. tools.loopShowTooltip(chart, option, {
  820. interval: 2000,
  821. loopSeries: true,
  822. });
  823. }
  824. },
  825. })