Skip to content

Test mock with numeric "offsetgroup" value #4705

Closed
@hmf

Description

@hmf

The mock bar-alignment-offset.json has the following trace:

    {
      "type": "bar",
      "marker": {
        "color": "orange"
      },
      "opacity": 0.6,
      "name": "B",
      "legendgroup": "B",
      "showlegend": false,
      "hoverinfo": "text",
      "hovertext": "a0",
      "xaxis": "x",
      "yaxis": "y",
      "alignmentgroup": "a",
      "offsetgroup": 0,
      "x": [
        1
      ],
      "y": [
        1
      ]
    },

Note that the "offsetgroup" has a numeric value. But the schema indicates:

valType : "string"

The few examples I have found in Plotly's Github and project/product sites seem to use strings. Is the mock incorrect?

TIA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions