Skip to content

box/violin vs bar positioning inconsistency #3502

Closed
@nicolaskruchten

Description

@nicolaskruchten

Not sure we can fix it in the context of the fix for #3402, but logging for reference:

Violin/box auto-populates x-axis categories here:

Plotly.newPlot(
  document.getElementById("gd"),
  {
    data: [{
      type: "violin",
      y: [1]
    },{
      type: "violin",
      y: [1]
    }],
  }
)

image

But bar does not:

Plotly.newPlot(
  document.getElementById("gd"),
  {
    data: [{
      type: "bar",
      y: [1]
    },{
      type: "bar",
      y: [1]
    }],
  }
)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions