You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/06/27 11:06:22 UTC

[GitHub] [echarts] zqy233 commented on issue #4643: 如何实现两条折线之间颜色填充

zqy233 commented on issue #4643:
URL: https://github.com/apache/echarts/issues/4643#issuecomment-1167213731

   `option = {
       title: {
           text: '堆叠区域图'
       },
       tooltip : {
           trigger: 'axis'
       },
       legend: {
           data:['最小值','最大值']
       },
       toolbox: {
           feature: {
               saveAsImage: {}
           }
       },
       grid: {
           left: '3%',
           right: '4%',
           bottom: '3%',
           containLabel: true
       },
       xAxis : [
           {
               type : 'category',
               boundaryGap : false,
               data : ['周一','周二','周三','周四','周五','周六','周日']
           }
       ],
       yAxis : [
           {
               type : 'value'
           }
       ],
       series : [
           {
               name:'最小值',
               type:'line',
             //  stack: '总量',
                areaStyle: {normal: {
                   color:'#8DA2E4',
                   opacity:1,
                   origin:"start"
               }},
               data:[320, 332, 301, -40, -30, 330, 320]
           },
           {
               name:'最大值',
               type:'line',
            //   stack: '总量',
               label: {
                   normal: {
                       show: true
                   }
               },
               areaStyle: { 
                   color:'#ffffff',
                   opacity:1,
                   origin:"start"
               },
               data:[10, 30, 40, -60, -50, 40, 50]
           }
       ]
   };
   `


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org