Constant.js 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598
  1. var Constant = {
  2. //------------------------柱状图系列--------------------------------
  3. //基础柱状图 基础折线图 --没有图例
  4. basicChartOption:{
  5. color: ['#3398DB'],
  6. tooltip : {
  7. trigger: 'axis',
  8. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  9. type : 'none' // 默认为直线,可选为:'line' | 'shadow'
  10. }
  11. },
  12. grid: {
  13. top: 35,
  14. bottom: 30,
  15. left: 20,
  16. right: 20,
  17. containLabel: true
  18. },
  19. xAxis : [
  20. {
  21. type : 'category',
  22. data : [],
  23. axisTick: { //x轴刻度线
  24. interval:'auto', //默认auto,0表示强制全显示,1表示间隔1个显示
  25. alignWithLabel: true
  26. },
  27. axisLabel: { //X轴标签内容
  28. interval:'auto', //默认auto,0表示强制全显示,1表示间隔1个显示
  29. fontSize:12, //默认值为12
  30. label:{
  31. rich:{}
  32. }
  33. }
  34. }
  35. ],
  36. yAxis : [
  37. {
  38. show : true, //默认为true,false时隐藏Y轴包括内容
  39. type : 'value',
  40. axisTick:{
  41. show : false,
  42. },
  43. axisLine:{
  44. show : false,
  45. },
  46. splitLine:{
  47. show : true,
  48. lineStyle:{
  49. color:['#eef1f4']
  50. }
  51. }
  52. }
  53. ],
  54. series : [
  55. // {
  56. // name:'',
  57. // type:'bar', //type:'line'为折线图
  58. // barWidth: '60%', //折线图没有barwidth
  59. // data:[]
  60. // }
  61. ]
  62. },
  63. //基础柱状图 基础折线图 --有图例
  64. barAndLineChartOption:{
  65. color: ['#77d8ff','#ebb22b','#7e95fa','#0d7ad5','#e58e10','#14c4ea','#deaf3f','#0d7ad5','#b1d55b','#2ca6ef'],
  66. title:{
  67. text:'',
  68. textStyle:{
  69. }
  70. },
  71. tooltip : {
  72. trigger: 'axis',
  73. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  74. type : 'none' // 默认为直线,可选为:'line' | 'shadow'
  75. }
  76. },
  77. legend: {
  78. bottom:5,
  79. data:[]
  80. },
  81. grid: {
  82. top:60,
  83. bottom: 30,
  84. left: 20,
  85. right: 20,
  86. containLabel: true
  87. },
  88. xAxis : [
  89. {
  90. type : 'category',
  91. data : [],
  92. axisLine:{},
  93. axisTick: { //x轴刻度线
  94. interval:'auto', //默认auto,0表示强制全显示,1表示间隔1个显示
  95. alignWithLabel: true
  96. },
  97. axisLabel: { //X轴标签内容
  98. interval:'auto', //默认auto,0表示强制全显示,1表示间隔1个显示
  99. fontSize:12, //默认值为12
  100. label:{
  101. rich:{}
  102. }
  103. }
  104. }
  105. ],
  106. yAxis : [
  107. {
  108. show : true, //默认为true,false时隐藏Y轴包括内容
  109. type : 'value',
  110. axisTick:{
  111. show : false,
  112. },
  113. axisLine:{
  114. show : false,
  115. },
  116. splitLine:{
  117. show : true,
  118. lineStyle:{
  119. color:['#eef1f4']
  120. }
  121. }
  122. }
  123. ],
  124. series : [
  125. // {
  126. // name:'',
  127. // type:'bar', //type:'line'为折线图
  128. // barWidth: '60%', //折线图没有barwidth
  129. // data:[]
  130. // }
  131. ]
  132. },
  133. //基础柱状图 基础折线图 --有图例 --底部无空余
  134. barAndLineNoMarginChartOption:{
  135. color: ['#77d8ff','#ebb22b','#7e95fa','#0d7ad5','#e58e10','#14c4ea','#deaf3f','#0d7ad5','#b1d55b','#2ca6ef'],
  136. tooltip : {
  137. trigger: 'axis',
  138. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  139. type : 'none' // 默认为直线,可选为:'line' | 'shadow'
  140. }
  141. },
  142. legend: {
  143. top:5,
  144. right: 20,
  145. data:[]
  146. },
  147. grid: {
  148. top:30,
  149. bottom: 5,
  150. left: 20,
  151. right: 20,
  152. containLabel: true
  153. },
  154. xAxis : [
  155. {
  156. type : 'category',
  157. data : [],
  158. axisTick: { //x轴刻度线
  159. interval:'auto', //默认auto,0表示强制全显示,1表示间隔1个显示
  160. alignWithLabel: true
  161. },
  162. axisLabel: { //X轴标签内容
  163. interval:'auto', //默认auto,0表示强制全显示,1表示间隔1个显示
  164. fontSize:12, //默认值为12
  165. label:{
  166. rich:{}
  167. }
  168. }
  169. }
  170. ],
  171. yAxis : [
  172. {
  173. show : true, //默认为true,false时隐藏Y轴包括内容
  174. type : 'value',
  175. axisTick:{
  176. show : false,
  177. },
  178. axisLine:{
  179. show : false,
  180. },
  181. splitLine:{
  182. show : true,
  183. lineStyle:{
  184. color:['#eef1f4']
  185. }
  186. }
  187. }
  188. ],
  189. series : [
  190. // {
  191. // name:'',
  192. // type:'bar', //type:'line'为折线图
  193. // barWidth: '60%', //折线图没有barwidth
  194. // data:[]
  195. // }
  196. ]
  197. },
  198. //基础折线阴影图
  199. lineAreashadowChartOpt: {
  200. color:[],
  201. tooltip : {
  202. trigger: 'axis',
  203. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  204. type : 'none' // 默认为直线,可选为:'line' | 'shadow'
  205. }
  206. },
  207. grid: {
  208. top:0,
  209. bottom:0,
  210. left:0,
  211. right:0,
  212. width:'100%',
  213. height:'100%',
  214. containLabel: false
  215. },
  216. xAxis: {
  217. type: 'category',
  218. show:false,
  219. boundaryGap : false,
  220. data: []
  221. },
  222. yAxis: {
  223. type: 'value',
  224. scale:true,
  225. show:false
  226. },
  227. series: []
  228. },
  229. //双Y轴 基础柱状图 基础折线图
  230. yAxisDoubleChartOption:{
  231. title : {
  232. text:'',
  233. textStyle:{
  234. fontSize: 16,
  235. }
  236. },
  237. color:['#5793f3', '#d14a61'],
  238. tooltip : {
  239. trigger: 'axis',
  240. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  241. type : 'none' // 默认为直线,可选为:'line' | 'shadow'
  242. }
  243. },
  244. legend: {
  245. top:20,
  246. data:[]
  247. },
  248. grid: { //上下左右边距
  249. top:60,
  250. bottom: 30,
  251. left: 20,
  252. right: 20,
  253. containLabel: true
  254. },
  255. xAxis : [
  256. {
  257. type : 'category',
  258. data : [],
  259. axisTick: { //x轴刻度线
  260. interval:'auto', //默认auto,0表示强制全显示,1表示间隔1个显示
  261. alignWithLabel: true
  262. },
  263. axisLabel: { //X轴标签内容
  264. interval:'auto', //默认auto,0表示强制全显示,1表示间隔1个显示
  265. fontSize:12, //默认值为12
  266. label:{
  267. rich:{}
  268. }
  269. }
  270. }
  271. ],
  272. yAxis : [
  273. {
  274. show : true, //默认为true,false时隐藏Y轴包括内容
  275. type : 'value',
  276. axisTick:{
  277. show : false,
  278. },
  279. axisLine:{
  280. show : false,
  281. },
  282. splitLine:{
  283. show : true,
  284. lineStyle:{
  285. color:['#eef1f4']
  286. }
  287. }
  288. },
  289. {
  290. show : true, //默认为true,false时隐藏Y轴包括内容
  291. position : 'right',
  292. type : 'value',
  293. axisTick:{
  294. show : false,
  295. },
  296. axisLine:{
  297. show : false,
  298. },
  299. splitLine:{
  300. show : true,
  301. lineStyle:{
  302. color:['#eef1f4']
  303. }
  304. }
  305. }
  306. ],
  307. series : [
  308. {
  309. name: '',
  310. type: 'bar',
  311. yAxisIndex:0,
  312. symbol: "none",
  313. barWidth :15,
  314. smooth: true,
  315. itemStyle: {
  316. LineStyle: {
  317. width: 0
  318. }
  319. },
  320. data: []
  321. },
  322. {
  323. name: '',
  324. type: 'line',
  325. yAxisIndex:1,
  326. symbol: "none",
  327. smooth: true,
  328. itemStyle: {
  329. LineStyle: {
  330. width: 0
  331. }
  332. },
  333. data: []
  334. }
  335. ]
  336. },
  337. //y轴堆叠条形图
  338. yStackBaroption: {
  339. tooltip : {
  340. trigger: 'axis',
  341. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  342. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  343. }
  344. },
  345. legend:{
  346. show:false,
  347. data:[],
  348. selected: {},
  349. },
  350. grid: {
  351. top:0,
  352. left: 0,
  353. right: 0,
  354. bottom: 0,
  355. containLabel: true
  356. },
  357. xAxis:[
  358. {
  359. type: 'value',
  360. axisLine:{
  361. show:false,
  362. },
  363. axisTick:{
  364. show:false
  365. },
  366. axisLabel:{
  367. show:false
  368. },
  369. splitLine:{
  370. show:false
  371. }
  372. },
  373. ],
  374. yAxis: [
  375. {
  376. type: 'category',
  377. inverse: true,
  378. boundaryGap:true,
  379. axisLine:{
  380. show:true,
  381. lineStyle:{
  382. color:'#e6e9ee',
  383. },
  384. },
  385. axisTick:{
  386. show:false
  387. },
  388. axisLabel:{
  389. show:true,
  390. color:'#333',
  391. },
  392. splitLine:{
  393. show:true,
  394. lineStyle:{
  395. color:['#e6e9ee']
  396. }
  397. },
  398. data: []
  399. },
  400. {
  401. type: 'category',
  402. axisLine:{
  403. show:true,
  404. lineStyle:{
  405. color:'#e6e9ee',
  406. },
  407. },
  408. }
  409. ],
  410. series: []
  411. },
  412. //堆叠区域图 堆叠折线图
  413. stackAeraChartOption : {
  414. color:["#9196f5","#2ca6ef","#b1d55b","#0d7ad5","#77d8ff"],
  415. title: {
  416. text: '',
  417. textStyle:{
  418. }
  419. },
  420. tooltip : {
  421. trigger: 'axis',
  422. axisPointer: {
  423. type: 'line',
  424. label: {
  425. backgroundColor: '#6a7985' //这个还不知道有啥用,文档说是文本标签的背景颜色,但是改了没效果
  426. }
  427. }
  428. },
  429. toolbox:[],
  430. legend: {
  431. top:20,
  432. itemGap:10, //[ default: 10 ] 图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。
  433. itemWidth:25,//[ default: 25 ] 图例标记的图形宽度。
  434. selectedMode:true,//[ default: true ] 图例选择的模式,控制是否可以通过点击图例改变系列的显示状态。默认开启图例选择,可以设成 false 关闭。除此之外也可以设成 'single' 或者 'multiple' 使用单选或者多选模式。
  435. data:[]
  436. },
  437. grid: { //上下左右边距
  438. top:60,
  439. bottom: 30,
  440. left: 20,
  441. right: 20,
  442. containLabel: true //true表示『防止标签溢出』,边距从X轴内容和Y轴内容开始计算,false只从刻度轴那个线开始算
  443. },
  444. xAxis : [
  445. {
  446. type : 'category',
  447. boundaryGap : false,
  448. data : [],
  449. axisLine:{},
  450. axisTick: { //x轴刻度线
  451. interval:'auto', //默认auto,0表示强制全显示,1表示间隔1个显示
  452. alignWithLabel: true
  453. },
  454. axisLabel: { //X轴标签内容
  455. interval:'auto', //默认auto,0表示强制全显示,1表示间隔1个显示
  456. fontSize:12, //默认值为12
  457. label:{
  458. rich:{}
  459. }
  460. }
  461. }
  462. ],
  463. yAxis : [
  464. {
  465. show : true, //默认为true,false时隐藏Y轴包括内容
  466. type : 'value',
  467. scale: false, //[ default: false ],只在数值轴中(type: 'value')有效。是否是脱离 0 值比例。设置成 true 后坐标刻度不会强制包含零刻度。在双数值轴的散点图中比较有用。在设置 min 和 max 之后该配置项无效。
  468. axisTick:{
  469. show : false,
  470. },
  471. axisLine:{
  472. show : false,
  473. },
  474. splitLine:{
  475. show : true,
  476. lineStyle:{
  477. color:['#eef1f4']
  478. }
  479. }
  480. }
  481. ],
  482. series : [
  483. // {
  484. // name:'',
  485. // type:'line',
  486. // stack: '总量',
  487. // areaStyle: {},
  488. // data:[]
  489. // }
  490. ]
  491. },
  492. //------------------------饼图系列-----------------------------------
  493. // 百分比饼图(无图例)
  494. percentPieChartOpt:{
  495. title: {
  496. text: '80%',
  497. x: 'center',
  498. y: 'center',
  499. textStyle: {
  500. fontWeight: 'normal',
  501. // color: '#0580f2',
  502. fontSize: '28'
  503. }
  504. },
  505. color: ['rgba(176, 212, 251, 0.3)'],
  506. legend: {
  507. show: false,
  508. itemGap: 12,
  509. data: ['01', '02']
  510. },
  511. series: [{
  512. name: 'Line 1',
  513. type: 'pie',
  514. clockWise: true,
  515. radius: ['45%', '53%'],
  516. itemStyle: {
  517. normal: {
  518. label: {
  519. show: false
  520. },
  521. labelLine: {
  522. show: false
  523. }
  524. }
  525. },
  526. hoverAnimation: false,
  527. data: [{
  528. value: 80,
  529. name: '01',
  530. itemStyle: {
  531. normal: {
  532. color: [ // 完成的圆环的颜色
  533. '#367bec'
  534. ],
  535. label: {
  536. show: false
  537. },
  538. labelLine: {
  539. show: false
  540. }
  541. }
  542. }
  543. }, {
  544. name: '02',
  545. value: 20
  546. }]
  547. }]
  548. },
  549. //基础饼图 基础环形图
  550. basicPieChartOpt:{
  551. color:['#77d8ff','#ebb22b','#7e95fa','#0d7ad5','#e58e10','#14c4ea','#deaf3f','#0d7ad5','#b1d55b','#2ca6ef'],
  552. tooltip: {
  553. trigger: 'item',
  554. formatter: '{a} <br/>{b}: {c} ({d}%)'
  555. },
  556. title : {
  557. text:'',
  558. x:'center',
  559. subtext:'',
  560. itemGap: 1,
  561. textStyle:{
  562. fontSize: 18,
  563. color: "#000",
  564. align: "center",
  565. }
  566. },
  567. legend: {
  568. show:true,
  569. orient: 'horizontal',
  570. left: 'center',
  571. data: [],
  572. textStyle:{
  573. color:"#000",
  574. fontSize: 12,
  575. },
  576. bottom: 0,
  577. },
  578. grid: {
  579. containLabel: true
  580. },
  581. series : [
  582. {
  583. name: '',
  584. type: 'pie',
  585. radius : ['0%','60%'], //饼图内环比例(0%默认为圆心)和外环比例
  586. center: ['50%', '50%'], //饼图圆心距离左侧和顶端距离
  587. data: [],
  588. itemStyle: {
  589. emphasis: {
  590. shadowBlur: 10,
  591. shadowOffsetX: 0,
  592. shadowColor: 'rgba(0, 0, 0, 0.5)'
  593. }
  594. },
  595. label: {
  596. normal: {
  597. show:true,
  598. formatter: "{b}( {d}%)"
  599. }
  600. },
  601. labelLine:{
  602. show:true, //标签视觉引导线
  603. length:10, //第一段引导线长度
  604. length2:10, //第二段引导线长度
  605. }
  606. }
  607. ]
  608. },
  609. //半环进度图
  610. halfDoughnutProgressChartOpt:{
  611. grid: {
  612. top:0,
  613. bottom:0,
  614. left:0,
  615. right:0,
  616. width:'100%',
  617. height:'100%',
  618. containLabel: false
  619. },
  620. legend: [
  621. {
  622. orient: 'vertical',
  623. itemWidth:10,
  624. itemHeight:10,
  625. textStyle:{
  626. fontSize:12,
  627. },
  628. right:'70%',
  629. top : '0%',
  630. align: 'right',
  631. data: ['未交地\n300宗'],
  632. },{
  633. orient: 'vertical',
  634. itemWidth:10,
  635. itemHeight:10,
  636. textStyle:{
  637. fontSize:12,
  638. },
  639. left : '70%',
  640. top : '0%',
  641. align: 'left',
  642. data: ['到期未交地\n150宗'],
  643. },{
  644. orient: 'vertical',
  645. itemWidth:10,
  646. itemHeight:10,
  647. textStyle:{
  648. fontSize:12,
  649. },
  650. right:'70%',
  651. top : '27%',
  652. align: 'right',
  653. data: ['未竣工\n300宗'],
  654. },{
  655. orient: 'vertical',
  656. itemWidth:10,
  657. itemHeight:10,
  658. textStyle:{
  659. fontSize:12,
  660. },
  661. left : '70%',
  662. top : '27%',
  663. align: 'left',
  664. data: ['到期未竣工\n150宗'],
  665. },{
  666. orient: 'vertical',
  667. itemWidth:10,
  668. itemHeight:10,
  669. textStyle:{
  670. fontSize:12,
  671. },
  672. right:'70%',
  673. bottom : '27%',
  674. align: 'right',
  675. data: ['未缴出让金\n300宗'],
  676. },{
  677. orient: 'vertical',
  678. itemWidth:10,
  679. itemHeight:10,
  680. textStyle:{
  681. fontSize:12,
  682. },
  683. left : '70%',
  684. bottom : '27%',
  685. align: 'left',
  686. data: ['到期未缴出让金\n150宗'],
  687. },{
  688. orient: 'vertical',
  689. itemWidth:10,
  690. itemHeight:10,
  691. textStyle:{
  692. fontSize:12,
  693. },
  694. right:'70%',
  695. bottom : '0%',
  696. align: 'right',
  697. data: ['未开工\n300宗'],
  698. },{
  699. orient: 'vertical',
  700. itemWidth:10,
  701. itemHeight:10,
  702. textStyle:{
  703. fontSize:12,
  704. },
  705. left : '70%',
  706. bottom : '0%',
  707. align: 'left',
  708. data: ['到期未开工\n150宗'],
  709. }
  710. ],
  711. series: [
  712. {
  713. name:'访问来源',
  714. type:'pie',
  715. silent:true,
  716. center:['50%','55%'],
  717. radius: ['70%', '65%'],
  718. startAngle:225,
  719. label:{
  720. show:false
  721. },
  722. data:[
  723. {
  724. value:300,
  725. name:'未交地\n300宗',
  726. itemStyle:{
  727. color:'rgba(59,205,253,0.5)'
  728. },
  729. },
  730. {
  731. value:100,
  732. name:'',
  733. itemStyle:{
  734. color:'rgba(0,0,0,0)'
  735. },
  736. }
  737. ]
  738. },
  739. {
  740. name:'访问来源',
  741. type:'pie',
  742. silent:true,
  743. center:['50%','55%'],
  744. radius: ['70%', '65%'],
  745. startAngle:225,
  746. label:{
  747. show:false
  748. },
  749. data:[
  750. {
  751. value:150,
  752. name:'到期未交地\n150宗',
  753. itemStyle:{
  754. color:'rgba(59,205,253,1)'
  755. },
  756. },
  757. {
  758. value:250,
  759. name:'',
  760. itemStyle:{
  761. color:'rgba(0,0,0,0)'
  762. },
  763. }
  764. ]
  765. },
  766. {
  767. name:'访问来源',
  768. type:'pie',
  769. silent:true,
  770. startAngle:225,
  771. center:['50%','55%'],
  772. radius: ['60%', '55%'],
  773. label:{
  774. show:false
  775. },
  776. data:[
  777. {
  778. value:300,
  779. name:'未竣工\n300宗',
  780. itemStyle:{
  781. color:'rgba(66,206,173,0.5)'
  782. },
  783. },
  784. {
  785. value:100,
  786. name:'',
  787. itemStyle:{
  788. color:'rgba(0,0,0,0)'
  789. },
  790. }
  791. ]
  792. },
  793. {
  794. name:'访问来源',
  795. type:'pie',
  796. silent:true,
  797. startAngle:225,
  798. center:['50%','55%'],
  799. radius: ['60%', '55%'],
  800. label:{
  801. show:false
  802. },
  803. data:[
  804. {
  805. value:150,
  806. name:'到期未竣工\n150宗',
  807. itemStyle:{
  808. color:'rgba(66,206,173,1)'
  809. },
  810. },
  811. {
  812. value:250,
  813. name:'',
  814. itemStyle:{
  815. color:'rgba(0,0,0,0)'
  816. },
  817. }
  818. ]
  819. },
  820. {
  821. name:'访问来源',
  822. type:'pie',
  823. silent:true,
  824. startAngle:225,
  825. center:['50%','55%'],
  826. radius: ['50%', '45%'],
  827. label:{
  828. show:false
  829. },
  830. data:[
  831. {
  832. value:300,
  833. name:'未缴出让金\n300宗',
  834. itemStyle:{
  835. color:'rgba(182,100,237,0.5)'
  836. },
  837. },
  838. {
  839. value:100,
  840. name:'',
  841. itemStyle:{
  842. color:'rgba(0,0,0,0)'
  843. },
  844. }
  845. ]
  846. },
  847. {
  848. name:'访问来源',
  849. type:'pie',
  850. silent:true,
  851. startAngle:225,
  852. center:['50%','55%'],
  853. radius: ['50%', '45%'],
  854. label:{
  855. show:false
  856. },
  857. data:[
  858. {
  859. value:150,
  860. name:'到期未缴出让金\n150宗',
  861. itemStyle:{
  862. color:'rgba(182,100,237,1)'
  863. },
  864. },
  865. {
  866. value:250,
  867. name:'',
  868. itemStyle:{
  869. color:'rgba(0,0,0,0)'
  870. },
  871. }
  872. ]
  873. },
  874. {
  875. name:'访问来源',
  876. type:'pie',
  877. silent:true,
  878. startAngle:225,
  879. center:['50%','55%'],
  880. radius: ['40%', '35%'],
  881. label:{
  882. show:false
  883. },
  884. data:[
  885. {
  886. value:300,
  887. name:'未开工\n300宗',
  888. itemStyle:{
  889. color:'rgba(238,67,159,0.5)'
  890. },
  891. },
  892. {
  893. value:100,
  894. name:'',
  895. itemStyle:{
  896. color:'rgba(0,0,0,0)'
  897. },
  898. }
  899. ]
  900. },
  901. {
  902. name:'访问来源',
  903. type:'pie',
  904. silent:true,
  905. startAngle:225,
  906. center:['50%','55%'],
  907. radius: ['40%', '35%'],
  908. label:{
  909. show:false
  910. },
  911. data:[
  912. {
  913. value:150,
  914. name:'到期未开工\n150宗',
  915. itemStyle:{
  916. color:'rgba(238,67,159,1)'
  917. },
  918. },
  919. {
  920. value:250,
  921. name:'',
  922. itemStyle:{
  923. color:'rgba(0,0,0,0)'
  924. },
  925. }
  926. ]
  927. }
  928. ]
  929. },
  930. //双Y轴自定义画报图
  931. doubleyAxispictorialBarOption: {
  932. title: {
  933. text:'',
  934. // top:20,
  935. left:20,
  936. textStyle:{
  937. height: 40,
  938. lineHeight:40,
  939. }
  940. },
  941. grid: {
  942. top: 60,
  943. left: 20,
  944. right: 20,
  945. bottom: 20,
  946. containLabel: true
  947. },
  948. tooltip : {
  949. trigger: 'axis',
  950. axisPointer : { // 坐标轴指示器,坐标轴触发有效
  951. type : 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  952. }
  953. },
  954. legend:{
  955. show:true,
  956. top:20,
  957. right:20,
  958. data:[],
  959. },
  960. xAxis: [
  961. {
  962. type: 'category',
  963. data: ['梁溪区','某某区','惠山区','滨湖区','新吴区','江阴市','宜兴市'],
  964. axisTick: {
  965. show: false
  966. },
  967. axisLine: {
  968. show: false
  969. },
  970. axisLabel: {
  971. textStyle: {
  972. color: '#b6b5ab'
  973. }
  974. }
  975. }
  976. ],
  977. yAxis: [
  978. {
  979. show : true, //默认为true,false时隐藏Y轴包括内容
  980. position : 'left',
  981. type : 'value',
  982. axisTick:{
  983. show : false,
  984. },
  985. axisLine:{
  986. show : false,
  987. },
  988. axisLabel:{
  989. show : true,
  990. margin : 20,
  991. lineStyle:{
  992. color:'#333'
  993. }
  994. },
  995. splitLine:{
  996. show : true,
  997. lineStyle:{
  998. color:['#eef1f4']
  999. }
  1000. }
  1001. },
  1002. {
  1003. show : true, //默认为true,false时隐藏Y轴包括内容
  1004. position : 'right',
  1005. type : 'value',
  1006. axisTick:{
  1007. show : false,
  1008. },
  1009. axisLine:{
  1010. show : false,
  1011. },
  1012. axisLabel:{
  1013. show : true,
  1014. margin : 20,
  1015. lineStyle:{
  1016. color:'#333'
  1017. }
  1018. },
  1019. splitLine:{
  1020. show : false,
  1021. }
  1022. }
  1023. ],
  1024. series: [
  1025. {
  1026. name: '面积',
  1027. type: 'pictorialBar',
  1028. yAxisIndex: 0,
  1029. barCategoryGap: '-80%',
  1030. symbol: 'path://M0,0 L5,5 C5.5,5 5.5,5 5,0 C4.5,5 4.5,5 0,5 z',
  1031. itemStyle: {
  1032. normal: {
  1033. color: 'rgba(244,165,28,0.6)'
  1034. },
  1035. },
  1036. data: [138,114,714,442,622,528,328],
  1037. },
  1038. {
  1039. name: "宗数",
  1040. type: "line",
  1041. yAxisIndex: 1,
  1042. itemStyle: {
  1043. normal: {
  1044. color: '#51d1b0'
  1045. },
  1046. },
  1047. data: [14.89,79.49,75.8,19.8,44.5,87.3,67.3],
  1048. }
  1049. ]
  1050. },
  1051. //双向Bar图
  1052. oppositeBarOption: {
  1053. title: {
  1054. text:'',
  1055. textStyle: {
  1056. },
  1057. },
  1058. legend: {
  1059. data: ['期初储备', '期末储备'],
  1060. top:'top',
  1061. x: 'center',
  1062. },
  1063. tooltip: {
  1064. show: true,
  1065. trigger: 'axis',
  1066. axisPointer: {
  1067. type: 'shadow',
  1068. }
  1069. },
  1070. grid: [{
  1071. show: false,
  1072. left: 20,
  1073. right:'48%', //需要调整为固定值,保证y轴label居中
  1074. top: 20,
  1075. bottom: 20,
  1076. containLabel: false,
  1077. }, {
  1078. show: false,
  1079. left:'50%',
  1080. right: 20,
  1081. top: 20,
  1082. bottom: 20,
  1083. containLabel: false,
  1084. }, ],
  1085. xAxis: [
  1086. {
  1087. type: 'value',
  1088. inverse: true,
  1089. axisLine: {
  1090. show: false,
  1091. },
  1092. axisTick: {
  1093. show: false,
  1094. },
  1095. position: 'top',
  1096. axisLabel: {
  1097. show: true,
  1098. margin:0,
  1099. textStyle: {
  1100. color: '#697d98',
  1101. },
  1102. },
  1103. splitLine: {
  1104. show: true,
  1105. lineStyle: {
  1106. color: '#e6e9ee',
  1107. },
  1108. },
  1109. }, {
  1110. gridIndex: 1,
  1111. type: 'value',
  1112. axisLine: {
  1113. show: false,
  1114. },
  1115. axisTick: {
  1116. show: false,
  1117. },
  1118. position: 'top',
  1119. axisLabel: {
  1120. show: true,
  1121. margin:0,
  1122. textStyle: {
  1123. color: '#697d98',
  1124. },
  1125. },
  1126. splitLine: {
  1127. show: true,
  1128. lineStyle: {
  1129. color: '#e6e9ee',
  1130. },
  1131. },
  1132. }, ],
  1133. yAxis: [{
  1134. type: 'category',
  1135. inverse: true,
  1136. position: 'right',
  1137. axisLine: {
  1138. show: false
  1139. },
  1140. axisTick: {
  1141. show: false
  1142. },
  1143. axisLabel: {
  1144. show: true,
  1145. margin: 60, //调整label到左侧y轴距离,保证左右间距相等
  1146. textStyle: {
  1147. color: '#333333',
  1148. align:'center'
  1149. },
  1150. },
  1151. data: ['梁溪区', '某某区', '惠山区', '滨湖区', '新吴区', '江阴市', '宜兴市'],
  1152. }, {
  1153. gridIndex: 1,
  1154. type: 'category',
  1155. inverse: true,
  1156. position: 'left',
  1157. axisLine: {
  1158. show: false
  1159. },
  1160. axisTick: {
  1161. show: false
  1162. },
  1163. axisLabel: {
  1164. show: false,
  1165. },
  1166. data: ['梁溪区', '某某区', '惠山区', '滨湖区', '新吴区', '江阴市', '宜兴市'],
  1167. }, ],
  1168. series: [{
  1169. name: '期初储备',
  1170. type: 'bar',
  1171. barGap: 20,
  1172. barWidth: 20,
  1173. itemStyle: {
  1174. normal: {
  1175. color: '#45ceae',
  1176. },
  1177. },
  1178. data: [389, 259, 262, 324, 232, 176, 196],
  1179. },
  1180. {
  1181. name: '期末储备',
  1182. type: 'bar',
  1183. barGap: 20,
  1184. barWidth: 20,
  1185. xAxisIndex: 1,
  1186. yAxisIndex: 1,
  1187. itemStyle: {
  1188. normal: {
  1189. color: '#00b0f8',
  1190. },
  1191. },
  1192. data: [121, 388, 233, 309, 133, 308, 297],
  1193. }
  1194. ],
  1195. },
  1196. // 地图基础
  1197. mapOption : {
  1198. tooltip: {
  1199. trigger: "item",
  1200. formatter: "{b}<br/>{c}(亩)"
  1201. },
  1202. visualMap: {
  1203. min: 800,
  1204. max: 50000,
  1205. text: ["高", "低"],
  1206. realtime: false,
  1207. calculable: true,
  1208. inRange: {
  1209. color: ["#aacee8", "#6ab0ea"]
  1210. }
  1211. },
  1212. series: [
  1213. {
  1214. name: "",
  1215. type: "map",
  1216. mapType: "wuxi", // 自定义扩展图表类型
  1217. itemStyle: {
  1218. normal: {
  1219. label: {
  1220. show: true
  1221. }
  1222. },
  1223. emphasis: {
  1224. label: {
  1225. show: true
  1226. }
  1227. }
  1228. },
  1229. label: {
  1230. normal: {
  1231. show: true,
  1232. textStyle: {
  1233. color: '#fff'
  1234. }
  1235. }
  1236. },
  1237. layoutCenter: ["55%", "45%"],
  1238. layoutSize: "95%",
  1239. data: []
  1240. }
  1241. ]
  1242. },
  1243. // 水波波纹图
  1244. waterChartOption : {
  1245. series: [{
  1246. type: 'liquidFill',
  1247. // data: [0.6, 0.5, 0.4, 0.3],
  1248. data: [0.6],
  1249. direction: 'right', //波浪方向或者静止
  1250. radius: '80%',
  1251. // 水球颜色
  1252. color: ['#00c2ff'],
  1253. center: ['50%', '50%'], //水球位置
  1254. // outline 外边
  1255. outline: {
  1256. // show: false
  1257. borderDistance: 2, //内环padding值
  1258. itemStyle: {
  1259. borderWidth: 2, //圆边线宽度
  1260. borderColor: '#00c2ff',
  1261. },
  1262. },
  1263. label: {
  1264. normal: {
  1265. formatter: (0.6).toFixed(2) + '%', //重置百分比字体为空
  1266. // textStyle: {
  1267. color: '#333',
  1268. fontSize: 22
  1269. // }
  1270. }
  1271. }
  1272. }]
  1273. },
  1274. // 多球散点图
  1275. ballsOption : {
  1276. grid: {
  1277. show: false,
  1278. top: 10,
  1279. bottom: 10
  1280. },
  1281. tooltip:{
  1282. formatter:'{b}'
  1283. },
  1284. xAxis: [
  1285. {
  1286. gridIndex: 0,
  1287. type: 'value',
  1288. show: false,
  1289. min: 0,
  1290. max: 100,
  1291. nameLocation: 'middle',
  1292. nameGap: 5
  1293. }
  1294. ],
  1295. yAxis: [
  1296. {
  1297. gridIndex: 0,
  1298. min: 0,
  1299. show: false,
  1300. max: 100,
  1301. nameLocation: 'middle',
  1302. nameGap: 30
  1303. }
  1304. ],
  1305. series: [
  1306. {
  1307. type: 'scatter',
  1308. label: {
  1309. normal: {
  1310. show: true,
  1311. formatter: '{b}',
  1312. color: '#fff',
  1313. textStyle: {
  1314. fontSize: '12'
  1315. }
  1316. },
  1317. },
  1318. data: []
  1319. }
  1320. ]
  1321. },
  1322. // 日历图
  1323. calendarOpt : {
  1324. tooltip: {},
  1325. visualMap: {
  1326. min: 800,
  1327. max: 5000,
  1328. show:false,
  1329. pieces:[
  1330. {min:0,max:0,color:'#FFF'},
  1331. {min:0,max:4000,color:'#F78874'},
  1332. {min:4000,max:9000,color:'#51A0DD'},
  1333. {min:9000,color:'#4FDADC'}
  1334. ],
  1335. text: ["多", "少"],
  1336. realtime: false,
  1337. calculable: false,
  1338. },
  1339. calendar: {
  1340. left: 'center',
  1341. orient: 'vertical',
  1342. cellSize: [60, 60],
  1343. yearLabel: {
  1344. show: true,
  1345. textStyle: {
  1346. fontSize: 30
  1347. }
  1348. },
  1349. dayLabel: {
  1350. margin: 10,
  1351. firstDay: 1,
  1352. nameMap: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
  1353. },
  1354. monthLabel: {
  1355. show: true,
  1356. margin: 10,
  1357. nameMap:'cn'
  1358. },
  1359. range: ['2017-03']
  1360. },
  1361. series: [{
  1362. id: 'label',
  1363. type: 'scatter',
  1364. coordinateSystem: 'calendar',
  1365. symbolSize: 1,
  1366. label: {
  1367. normal: {
  1368. show: true,
  1369. textStyle: {
  1370. color: '#484848',
  1371. fontSize: 14
  1372. }
  1373. }
  1374. },
  1375. data: []
  1376. }]
  1377. },
  1378. // 时间连线折线图
  1379. timeRiseOption : {
  1380. title: {
  1381. text: "OCTOBER 2019", // 作为时间年份/月份
  1382. left: "center",
  1383. bottom: "5%",
  1384. textStyle: {
  1385. fontSize: 16
  1386. }
  1387. },
  1388. grid: {
  1389. top: '10%',
  1390. left: '3%',
  1391. right: '3%',
  1392. bottom: '15%',
  1393. containLabel: true,
  1394. },
  1395. xAxis: {
  1396. type: 'category',
  1397. boundaryGap: false,
  1398. data: ['14', '15', '16', '17', '18', '19', '20', '21', '22', '23'],
  1399. axisLabel: {
  1400. margin: 10,
  1401. color: '#A0A0A0'
  1402. },
  1403. axisLine: {
  1404. show: false
  1405. },
  1406. axisTick: {
  1407. show: true,
  1408. lineStyle: {
  1409. color: "#3333331f"
  1410. }
  1411. },
  1412. splitLine: {
  1413. show: true,
  1414. lineStyle: {
  1415. color: '#3333331f'
  1416. }
  1417. }
  1418. },
  1419. yAxis: [{
  1420. type: 'value',
  1421. position: 'right',
  1422. axisLabel: {
  1423. margin: 20,
  1424. color: '#33333363'
  1425. },
  1426. axisTick: {
  1427. show: true,
  1428. lineStyle: {
  1429. color: "#3333331f",
  1430. }
  1431. },
  1432. splitLine: {
  1433. show: true,
  1434. lineStyle: {
  1435. color: '#3333331f'
  1436. }
  1437. },
  1438. axisLine: {
  1439. lineStyle: {
  1440. color: '#3333331f',
  1441. width: 2
  1442. }
  1443. }
  1444. }],
  1445. series: [{
  1446. name: '总量',
  1447. type: 'line',
  1448. smooth: true, //是否平滑曲线显示
  1449. showAllSymbol: true,
  1450. symbol: 'circle',
  1451. symbolSize: 6,
  1452. lineStyle: {
  1453. normal: {
  1454. color: "#fff", // 线条颜色
  1455. },
  1456. },
  1457. label: {
  1458. show: true,
  1459. position: 'top',
  1460. textStyle: {
  1461. color: '#A0A0A0',
  1462. }
  1463. },
  1464. itemStyle: {
  1465. color: "red",
  1466. borderColor: "#fff",
  1467. borderWidth: 3
  1468. },
  1469. tooltip: {
  1470. show: false
  1471. },
  1472. areaStyle: {
  1473. normal: {
  1474. color: '#eb64fb',
  1475. }
  1476. },
  1477. data: [393, 438, 485, 631, 689, 824, 987, 1000, 1100, 1200]
  1478. }]
  1479. },
  1480. // 横向柱状图
  1481. horizontalBarOption : {
  1482. title: {
  1483. top: '5%',
  1484. left: 'center',
  1485. text:'',
  1486. textStyle: {
  1487. align: 'center',
  1488. color: '#4DCEF8',
  1489. fontSize: 18
  1490. }
  1491. },
  1492. grid: {
  1493. left: '240',
  1494. right: '100'
  1495. },
  1496. xAxis: {
  1497. show: false,
  1498. },
  1499. yAxis: {
  1500. type: 'category',
  1501. axisLabel: {
  1502. margin: 100,
  1503. show: true,
  1504. color: '#4DCEF8',
  1505. fontSize: 14
  1506. },
  1507. axisTick: {
  1508. show: false,
  1509. },
  1510. axisLine: {
  1511. show: false,
  1512. },
  1513. data: [] // lengend
  1514. },
  1515. series: [
  1516. {
  1517. type: 'bar',
  1518. barGap: '-100%',
  1519. label: {
  1520. normal: {
  1521. show: true,
  1522. position: 'right',
  1523. color: '#fff',
  1524. fontSize: 14,
  1525. }
  1526. },
  1527. barWidth: '35%',
  1528. itemStyle: {
  1529. normal: {
  1530. borderColor: '#4DCEF8',
  1531. borderWidth: 2,
  1532. barBorderRadius: 15,
  1533. color: 'rgba(102, 102, 102,0)'
  1534. },
  1535. },
  1536. z: 1,
  1537. data: [], // 总量
  1538. },
  1539. {
  1540. type: 'bar',
  1541. barGap: '-98%',
  1542. barWidth: '33.5%',
  1543. itemStyle: {
  1544. normal: {
  1545. barBorderRadius: 16,
  1546. color: {
  1547. type: 'linear',
  1548. x: 0,
  1549. x1: 1,
  1550. colorStops: [{
  1551. offset: 0,
  1552. color: '#02ddff'
  1553. }, {
  1554. offset: 1,
  1555. color: '#00feff'
  1556. }]
  1557. }
  1558. },
  1559. },
  1560. max: 1,
  1561. label: {
  1562. normal: {
  1563. show: true,
  1564. position: 'left',
  1565. color: '#fff',
  1566. fontSize: 14,
  1567. }
  1568. },
  1569. labelLine: {
  1570. show: true,
  1571. },
  1572. z: 2,
  1573. data: [], // 统计量
  1574. }]
  1575. },
  1576. }
  1577. export{
  1578. Constant
  1579. }