✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
πŸ‡ Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

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.