page2Char1Schema.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * @LastEditors: gcz
  3. */
  4. import themeColor from "./color"
  5. let page2Char1Schema = {
  6. title: {
  7. text: '树种占比',
  8. left: 'center',
  9. textStyle: {
  10. color: themeColor.mainColor,
  11. },
  12. show: false
  13. },
  14. tooltip: {
  15. trigger: 'item',
  16. formatter: '{b} : {c} ({d}%)'
  17. },
  18. grid: {
  19. containLabel: true,
  20. top: "20px",
  21. left: '10px',
  22. bottom: '20px',
  23. right: '24px'
  24. },
  25. legend: {
  26. show: false,
  27. orient: 'vertical',
  28. left: 'left'
  29. },
  30. series: [
  31. {
  32. name: 'Access From',
  33. type: 'pie',
  34. radius: '50%',
  35. data: [
  36. // { value: 120, name: '柏类' },
  37. // { value: 20, name: '杉树' },
  38. // { value: 5, name: '松树' },
  39. // { value: 80, name: '枫叶类' }
  40. ],
  41. emphasis: {
  42. itemStyle: {
  43. shadowBlur: 10,
  44. shadowOffsetX: 0,
  45. shadowColor: 'rgba(0, 0, 0, 0.5)'
  46. }
  47. }
  48. }
  49. ]
  50. }
  51. export default page2Char1Schema