How to add line chart to boxplot in plotly.js


#1

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?

Thanks!


#2

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


#3

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