ningyuv commented on issue #3944:
URL: https://github.com/apache/echarts/issues/3944#issuecomment-1320837359

   Thanks to [@connor-hanson](https://github.com/connor-hanson)'s solution in 
[codesandbox](https://codesandbox.io/s/example-echarts-outliers-alignment-5jp3jt),
 it helps me a lot.
   Besides, here is a way to calculate `NUM_BOXPLOTS_IN_COL` and fit the legend 
toggle with some extra code.
   ```js
   function moveOutliers(api, seriesIndexInCol) {
       const numBoxplotsInCol = api.currentSeriesIndices().length / 2;
       seriesIndexInCol = api.currentSeriesIndices().findIndex((value) => value 
=== seriesIndexInCol);
   ...
       return {
           type: "circle",
   ...
           transition: "all"
       };
   }
   ```
   Here is the codesandbox: 
[https://codesandbox.io/s/example-echarts-outliers-alignment-forked-tbyhck](https://codesandbox.io/s/example-echarts-outliers-alignment-forked-tbyhck?file=/src/index.js).


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