How can I get the following plot without the bottom line being drawn? My attempts have either led the filled area to be drawn incorrectly on the bottom border or to be not drawn at all:
var trace1 = {
x: [1, 2, 3, 4],
y: [0, 0, 5, 5],
type: 'scatter',
mode: 'lines',
line:{shape:'hv'}
};
var trace2 = {
x: [1, 2, 3, 4],
y: [11, 12, 13, 14],
fill: 'tonexty',
type: 'scatter',
mode: 'none',
line:{shape:'hv'}
};
var layout = {
title: 'Overlaid Chart Without Boundary Lines'
};
var data = [trace1, trace2];
Plotly.newPlot('myDiv', data, layout);