Skip to content

cliponaxis: false fails with date & log axes #2002

Closed
@alexcjohnson

Description

@alexcjohnson

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}
);

screen shot 2017-09-13 at 10 18 18 am
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}
);

screen shot 2017-09-13 at 10 22 26 am

discovered while investigating #2000

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions