susiwen8 commented on issue #16883:
URL: https://github.com/apache/echarts/issues/16883#issuecomment-1099295850

   ```js
   option = {
     legend: {
       show: true,
       right: '5%',
       data: ['1', '2', '3', '4']
     },
     grid: {
       containLabel: true,
       right: 200,
       left: 50,
       bottom: 50,
       top: 50
     },
     tooltip: [
       {
         trigger: 'axis'
       }
     ],
     xAxis: [
       {
         type: 'category',
         data: ['2022/4/10', '2022/4/11', '2022/4/12', '2022/4/13', '2022/4/14']
       }
     ],
     yAxis: [
       {
         position: 'left',
         type: 'value',
         name: '求和1',
         axisLine: {
           show: true,
           lineStyle: {
             color: '#c23531'
           }
         }
       },
       {
         position: 'right',
         type: 'value',
         name: '求和2',
         axisLine: {
           show: true
         }
       },
       {
         position: 'right',
         type: 'value',
         offset: 40,
         name: '求和3',
         axisLine: {
           show: true
         }
       },
       {
         position: 'right',
         type: 'value',
         offset: 80,
         name: '求和4',
         axisLine: {
           show: true
         }
       }
     ],
     series: [
       {
         type: 'bar',
         yAxisIndex: 0,
         name: '1',
         data: [100, 400, 500, 600, 700]
       },
       {
         type: 'line',
         yAxisIndex: 1,
         name: '2',
         data: [10, 40, 50, 60, 70]
       },
       {
         type: 'bar',
         yAxisIndex: 2,
         name: '3',
         data: [344, 230, 40, 450, 310]
       },
       {
         type: 'line',
         yAxisIndex: 3,
         name: '4',
         data: [100, 400, 500, 600, 700]
       }
     ]
   };
   ```
   You need to set `legend.data` and give each series a name.


-- 
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