I’ve been playing a bit with plotly and I managed to pretty much create the graph I wanted: a graph with a secondary axis where
- the first axis (on the left) is for a scatter plot;
- the secondary axis (on the right) is for a bar plot.
The only issue I have is that the plot on the secondary axis seems to come on top of the plot from the first axis, which is deteriorating the readability of the graph. When I reverse the axis, the same happens: the secondary axis plot comes on top, whatever the order of plotting. Here is an illustration.
Does someone have a solution to plot bars on the secondary axis while keeping them in the background?
Many thanks for your help.