Closed
Description
markers and text disappear when you use cliponaxis: false
with a date axis:
var x = [];
var y = [];
for(var i = 1; i < 8; i++)
{
x.push('2017-11-' + i);
y.push(Math.floor(Math.random() * 10000));
}
Plotly.newPlot(gd,
[{
x: x,
y: y,
type: 'scatter',
text: y,
fill: 'tonexty',
mode: 'lines+markers+text',
textposition: 'top',
cliponaxis: false
}],
{width: 400, height: 400}
);
also fails with log axes, but works fine if the x axis is either linear or category:
var x = [];
var y = [];
for(var i = 1; i < 8; i++)
{
x.push(String.fromCharCode(i+64));
y.push(Math.floor(Math.random() * 10000));
}
Plotly.newPlot(gd,
[{
x: x,
y: y,
type: 'scatter',
text: y,
fill: 'tonexty',
mode: 'lines+markers+text',
textposition: 'top',
cliponaxis: false
}],
{width: 400, height: 400}
);
discovered while investigating #2000