sz-p commented on issue #20366:
URL: https://github.com/apache/echarts/issues/20366#issuecomment-2373861549

   It doesn't look like a bug
   
   ```js
   labelLayout: (params) => {
       const isEven = params.dataIndex % 2 === 0;
       if (isEven) {
         return params;
       }
       return {
         // params.labelRect.x will changed in every callback
         x: params.labelRect.x - params.rect.width,
         align: 'right',
       };
    }
   ```
   
   try
   
   ```js
   labelLayout: (params) => {
       const isEven = params.dataIndex % 2 === 0;
       if (isEven) {
         return params;
       }
       return {
         x: params.rect.x - params.rect.width,
         align: 'right',
       };
    }
   ```


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