How to add line chart to boxplot in plotly.js

Here is the code of generating the boxplot. I wonder how to make the line chart on the top of the boxplot. I tried using the xaxis:{domain:[0,0.5} something like that in the subplot, but it doesn’t work here…

What I am trying to plot is actually a boxplot with the line connecting median of each box. I also tried using shapes, but also failed. I think the key is the x axis value. How can we get that?


Actually I got it… The xaxis is just what it shows in at the axis of boxplot…

hi, could you share how you add a lint to the boxplot?


I’m trying to add a line, to connect different box-plot groups, could you please show how you solved it?