page6Char2Schema.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /*
  2. * @LastEditors: gcz
  3. */
  4. /*
  5. * @LastEditors: gcz
  6. */
  7. import themeColor from "./color"
  8. let page6Char2Schema = {
  9. title: {
  10. text: '事件发生频率分析',
  11. show: false
  12. },
  13. tooltip: {
  14. trigger: 'axis'
  15. },
  16. legend: {
  17. data: ['病虫害', '火灾', '乱砍滥伐'],
  18. textStyle: {
  19. color: '#fff',
  20. }
  21. },
  22. grid: {
  23. containLabel: true,
  24. top: "30px",
  25. left: '10px',
  26. bottom: '20px',
  27. right: '24px'
  28. },
  29. toolbox: {
  30. // feature: {
  31. // saveAsImage: {}
  32. // }
  33. },
  34. xAxis: {
  35. type: 'category',
  36. boundaryGap: false,
  37. data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  38. axisLabel: {
  39. color: "rgba(255, 255, 255, 1)"
  40. }
  41. },
  42. yAxis: {
  43. type: 'value',
  44. axisLabel: {
  45. color: "rgba(255, 255, 255, 1)"
  46. },
  47. splitLine: {
  48. show: true,
  49. lineStyle: {
  50. color: 'rgba(255,255,255,0.05)',
  51. }
  52. }
  53. },
  54. series: [
  55. {
  56. name: '病虫害',
  57. type: 'line',
  58. stack: 'Total',
  59. data: [120, 132, 101, 134, 90, 230, 210, 132, 101, 134, 90, 230]
  60. },
  61. {
  62. name: '火灾',
  63. type: 'line',
  64. stack: 'Total',
  65. data: [220, 182, 191, 234, 290, 330, 310, 132, 101, 134, 90, 230]
  66. },
  67. {
  68. name: '乱砍滥伐',
  69. type: 'line',
  70. stack: 'Total',
  71. data: [150, 232, 201, 154, 190, 330, 410, 132, 101, 134, 90, 230]
  72. }
  73. ]
  74. }
  75. export default page6Char2Schema