Fill area between two lines

Hi,

How can I fill the area between 2 lines? In the documentation and examples all I see is filling from x=0 up to the line, but not between lines.

How can I do this?

Thank you for the help.

Try using fill: 'tonexty' (example: https://plot.ly/javascript/filled-area-plots/#basic-overlaid-area-chart) or fill: 'tonextx'

three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online