How to get the coordinate for a boxed plot in group mode?

Dear forum, please see the picture below.

image

I appended annotations to the box plot. However, after enabling group mode, the coordinates are condensed to the central group. I used hover data on each sub box and it shows they all have the same X coordinate. How do I point to the correct location in this case?

I solved this problem by manually defining a two level X-axis. For example let’s suppose this is the subgroup “1, 2 and 3” under the condition “A”. Then by manually specifying the coordinate as [A, 1], y; [A, 2], y and [A, 3], y I can have full control of where to put the annotation.