page2Char3Schema.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /*
  2. * @LastEditors: gcz
  3. */
  4. import themeColor from "./color"
  5. let page6Char1Schema = {
  6. title: {
  7. text: '树种株数统计(株)',
  8. textStyle: {
  9. color: themeColor.mainColor,
  10. },
  11. show: false
  12. },
  13. grid: {
  14. containLabel: true,
  15. top: "30px",
  16. left: '10px',
  17. bottom: '20px',
  18. right: '24px'
  19. },
  20. tooltip: {
  21. trigger: 'axis',
  22. axisPointer: {
  23. type: 'shadow'
  24. }
  25. },
  26. legend: {
  27. top: '0',
  28. textStyle: {
  29. color: '#fff',
  30. }
  31. },
  32. yAxis: {
  33. type: 'value',
  34. axisLabel: {
  35. color: "rgba(255, 255, 255, 1)"
  36. },
  37. splitLine: {
  38. show: true,
  39. lineStyle: {
  40. color: 'rgba(255,255,255,0.05)',
  41. }
  42. }
  43. },
  44. xAxis: {
  45. type: 'category',
  46. data: ['马纳存', '三星存', '两家存', '龙子田', '腊寨存', '大黑土', '小黑土'],
  47. axisLabel: {
  48. color: "rgba(255, 255, 255, 1)"
  49. }
  50. },
  51. dataZoom: [
  52. {
  53. xAxisIndex: 0, //这里是从X轴的0刻度开始
  54. show: true, //是否显示滑动条,不影响使用
  55. type: 'slider', // 这个 dataZoom 组件是 slider 型 dataZoom 组件
  56. startValue: 0, // 从头开始。
  57. endValue: 4, // 一次性展示*+1个
  58. height: 5, //组件高度
  59. width: '50%',
  60. left: '30%',
  61. bottom: '10px',
  62. borderColor: 'transparent',
  63. fillerColor: '#14c6d3',
  64. zoomLock: true,
  65. showDataShadow: false, //是否显示数据阴影 默认auto
  66. backgroundColor: 'rgba(255,255,255,.2)',
  67. showDetail: false, //即拖拽时候是否显示详细数值信息 默认true
  68. realtime: true, //是否实时更新
  69. filterMode: 'filter',
  70. handleIcon: 'M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z',
  71. handleStyle: {
  72. color: '#14c6d3',
  73. borderColor: 'transparent',
  74. borderRadius: 10
  75. },
  76. moveHandleSize: 20,
  77. moveOnMouseMove: true,
  78. maxValueSpan: 4,
  79. minValueSpan: 4,
  80. moveHandleSize: 0,
  81. brushSelect: false, //刷选功能,设为false可以防止拖动条长度改变 ************(这是一个坑)
  82. },
  83. ],
  84. series: [
  85. {
  86. name: '病虫害',
  87. type: 'bar',
  88. stack: 'total',
  89. label: {
  90. show: false
  91. },
  92. emphasis: {
  93. focus: 'series'
  94. },
  95. data: [1, 1, 1, 2, 2, 1, 0],
  96. itemStyle: {//自定义颜色
  97. normal: { color: "rgb(2, 238, 255)" },
  98. }
  99. },
  100. {
  101. name: '乱砍乱伐',
  102. type: 'bar',
  103. stack: 'total',
  104. label: {
  105. show: false
  106. },
  107. emphasis: {
  108. focus: 'series'
  109. },
  110. data: [1, 8, 8, 2, 6, 9, 9],
  111. itemStyle: {//自定义颜色
  112. normal: { color: "rgb(94, 229, 116)" },
  113. }
  114. },
  115. {
  116. name: '火灾',
  117. type: 'bar',
  118. stack: 'total',
  119. label: {
  120. show: false
  121. },
  122. emphasis: {
  123. focus: 'series'
  124. },
  125. data: [8, 1, 1, 6, 2, 0, 1],
  126. itemStyle: {//自定义颜色
  127. normal: { color: "rgb(255, 255, 0)" },
  128. }
  129. }
  130. ]
  131. }
  132. export default page6Char1Schema