Skip to content

Stacked Area cross-trace calc error #3013

@nicolaskruchten

Description

@nicolaskruchten

This figure causes an error and doesn't render, as far as I can tell because the second trace doesn't have x:

{
  "data": [
      {
        "type": "scatter",
        "x": [1,2,3],
        "y": [1,2,3],
        "stackgroup": 1,
      },
      {
        "type": "scatter",
        "y": [1,2,3],
        "stackgroup": 1
      }
    ],
    "layout": {},
    "frames": []
  }

This one fails for a different reason (orientation=h) with a similar stack trace:

{
  "data": [
    {
      "type": "scatter",
      "orientation": "h",
      "stackgroup": 1,
      "y": [
        16.99,
        10.34,
        21.01,
        23.68,
        24.59,
        25.29,
        8.77,
        26.88,
        15.04,
        14.78,
      ]
    },
    {
      "type": "scatter",
      "mode": "markers",
      "stackgroup": 1,
      "y": [
        1.01,
        1.66,
        3.5,
        3.31,
        3.61,
        4.71,
        2,
        3.12,
        1.96,
        3.23,
      ]
    }
  ],
  "layout": {},
  "frames": []
}

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