ZeRego commented on issue #20548:
URL: https://github.com/apache/echarts/issues/20548#issuecomment-2505696298

   I was able to replicate in your examples page, when there are multiple 
series but one of them is an empty object.
   
   <img width="1543" alt="Screenshot 2024-11-28 at 09 52 07" 
src="https://github.com/user-attachments/assets/be46be24-b4f5-4759-baae-b055251ab4fd";>
   
   ```
   option = {
     color: ['#80FFA5', '#00DDFF', '#37A2FF', '#FF0087', '#FFBF00'],
     title: {
       text: 'Gradient Stacked Area Chart'
     },
     tooltip: {
       trigger: 'axis',
       axisPointer: {
         type: 'cross',
         label: {
           backgroundColor: '#6a7985'
         }
       }
     },
     legend: {
       data: ['Line 1', 'Line 2', 'Line 3', 'Line 4', 'Line 5']
     },
     toolbox: {
       feature: {
         saveAsImage: {}
       }
     },
     grid: {
       left: '3%',
       right: '4%',
       bottom: '3%',
       containLabel: true
     },
     xAxis: [
       {
         type: 'category',
         boundaryGap: false,
         data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       }
     ],
     yAxis: [
       {
         type: 'value'
       }
     ],
     series: [
       {},
       {
         name: 'Line 2',
         type: 'line',
         stack: 'Total',
         smooth: true,
         lineStyle: {
           width: 0
         },
         showSymbol: false,
         areaStyle: {
           opacity: 0.8,
           color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
             {
               offset: 0,
               color: 'rgb(0, 221, 255)'
             },
             {
               offset: 1,
               color: 'rgb(77, 119, 255)'
             }
           ])
         },
         emphasis: {
           focus: 'series'
         },
         data: [120, 282, 111, 234, 220, 340, 310]
       },
     ]
   };
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to