Skip to content

Adding a layout shape line with custom dash lenght lists is not working #3375

Closed
@dvd7587

Description

@dvd7587

Example:
plotly.graph_objects.layout.shape.Line(color='black', width=2, dash='5px,3px,3px,2px')

produces the following:

ValueError: 
    Invalid value of type 'builtins.str' received for the 'dash' property of layout.shape.line
        Received value: '5px,3px,3px,2px'

    The 'dash' property is a string and must be specified as:
      - One of the following strings:
            ['solid', 'dot', 'dash', 'longdash', 'dashdot',
            'longdashdot']
      - A number that will be converted to a string

Moreover, the documentation and the Line docstring state that it should be allowed, but the layout.shape.Line.dash property docstring states otherwise.

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