你好,我在用我们的图表展示对应的数据的时候,发现有个问题,麻烦也帮忙看一下,明显的展示的值跟实际传入的值不一样。
Stacked Area Chart


option = {
  title: {
    text: 'Stacked Area Chart'
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
      label: {
        backgroundColor: '#6a7985'
      }
    }
  },
  legend: {
    data:["生态足迹","水足迹","碳足迹"]
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: [
    {
      type: 'category',
      boundaryGap: false,
      data: 
[2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050]
    }
  ],
  yAxis: [
    {
      type: 'value'
    }
  ],
  series: [
  
{"name":"生态足迹","type":"line","stack":"Total","areaStyle":{},"emphasis":{"focus":"series"},"data":[35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000,35000]},
  
{"name":"水足迹","type":"line","stack":"Total","areaStyle":{},"emphasis":{"focus":"series"},"data":[50000,40000,32000,25600,20480,16384,13107.2,10485.76,8388.61,6710.89,5368.71,4294.97,3435.97,2748.78,2199.02,1759.22,1407.37,1125.9,900.72,720.58,576.46,461.17,368.93,295.15,236.12,188.89,151.12,120.89,96.71]},
  
{"name":"碳足迹","type":"line","stack":"Total","areaStyle":{},"emphasis":{"focus":"series"},"data":[20000,4000,800,160,32,6.4,1.28,0.26,0.05,0.01,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}]
};















--

电话:13401138259

Reply via email to