connor-hanson commented on issue #3944:
URL: https://github.com/apache/echarts/issues/3944#issuecomment-1110341099

   It would be really nice if this were implemented natively. 
   
   However, you can workaround this issue by using the `renderItem` key for 
custom series. This function here has the math which echarts uses to calculate 
the bases of their boxplots. 
https://github.com/apache/echarts/blob/13c2d062e6bcd49ab6da87eb4032ac01ec9fe467/src/chart/boxplot/boxplotLayout.ts#L125-L137
   
   Essentially what you want to do is copy the math that they do, and then 
multiply by the index of whichever scatter series in the plot you are 
rendering. Then add it to your output's `api.coord()` result on the x-axis. 
   
   Here is a codesandbox link for how to solve this: 
https://codesandbox.io/s/example-echarts-outliers-alignment-5jp3jt


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