Skip to content

scattergl open markers require explicit line width #1921

Description

@alexcjohnson

In regular scatter, you don't need to specify a line width to get default width 1 for open symbols:

Plotly.newPlot(gd,[{
  y: [1, 2, 3],
  marker: {symbol: 'circle-open', size: 20},
  type: 'scatter',
  mode: 'markers'
}], {width:400, height:400})

screen shot 2017-07-31 at 4 14 21 pm

But change this to type: 'scattergl' and the markers disappear until you put an explicit line: {width: 1} in marker.

Note that this is independent of the marker.line.width in gd._fullData, which is still 0 in the scatter example above. This means supplyDefaults doesn't need to care about marker.symbol, and importantly, if marker.symbol is an array, you can use closed symbols (with no line width) alongside open symbols (with default line width 1) without explicitly saying this is what you're doing.

cc @dfcreative @VeraZab

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions