area.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. module.exports = {
  2. title: {
  3. text: 'Area Chart',
  4. left: 'center',
  5. top: '3%',
  6. textStyle: {
  7. fontWeight: 'normal'
  8. }
  9. },
  10. grid: {
  11. left: '3%',
  12. right: '4%',
  13. bottom: '12%',
  14. containLabel: true
  15. },
  16. xAxis: {
  17. type: 'category',
  18. boundaryGap: false,
  19. data: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday','Sunday']
  20. },
  21. yAxis: {
  22. type: 'value',
  23. splitNumber: 3
  24. },
  25. dataZoom: {
  26. },
  27. series: [
  28. {
  29. name:'Email',
  30. type:'line',
  31. stack: '总量',
  32. areaStyle: {normal: {}},
  33. data:[120, 132, 101, 134, 90, 230, 210]
  34. },
  35. {
  36. name:'联盟广告',
  37. type:'line',
  38. stack: '总量',
  39. areaStyle: {normal: {}},
  40. data:[220, 182, 191, 234, 290, 330, 310]
  41. },
  42. {
  43. name:'视频广告',
  44. type:'line',
  45. stack: '总量',
  46. areaStyle: {normal: {}},
  47. data:[150, 232, 201, 154, 190, 330, 410]
  48. },
  49. {
  50. name:'直接访问',
  51. type:'line',
  52. stack: '总量',
  53. areaStyle: {normal: {}},
  54. data:[320, 332, 301, 334, 390, 330, 320]
  55. },
  56. {
  57. name:'搜索引擎',
  58. type:'line',
  59. stack: '总量',
  60. label: {
  61. normal: {
  62. show: true,
  63. position: 'top'
  64. }
  65. },
  66. areaStyle: {normal: {}},
  67. data:[820, 932, 901, 934, 1290, 1330, 1320]
  68. }
  69. ]
  70. };