Hello all,
Is it possible to plot continuous error bars with data gaps? This is what I got so far and it’s not working. Thanks
var trace1L = {
x: ['2013-01-01', null,'2013-01-03', '2013-01-05'],
y: [.5, null,1.5, 2.5],
line: {width: 0},
marker: {color: "444"},
mode: "lines",
name: "Lower Bound",
type: "scatter"
};
var trace1 = {
x: ['2013-01-01', null,'2013-01-03', '2013-01-05'],
y: [1, null,2, 3],
fill: "tonexty",
fillcolor: "rgba(68, 68, 68, 0.3)",
line: {color: "rgb(31, 119, 180)"},
mode: "lines+markers",
name: "Measurement",
type: "scatter"
};
var trace1U = {
x: ['2013-01-01', null,'2013-01-03', '2013-01-05'],
y: [1.5, null,2.5, 3.5],
fill: "tonexty",
fillcolor: "rgba(68, 68, 68, 0.3)",
line: {width: 0},
marker: {color: "444"},
mode: "lines",
name: "Upper Bound",
type: "scatter"
};
var data = [trace1L, trace1, trace1U];
var layout = {
hovermode: 'closest',
title: 'data gaps',
};
Plotly.newPlot('graph', data, layout);