Skip to content

Magic underscores #1481

Description

@nicolaskruchten

Broken off of #919 (comment) where @jonmmease said:

I think it would be great to have the 'magic underscore' behavior supported in the following places in the API:

  1. The constructors of all graph objects: go.Scatter(marker_line_color='blue'), I think this could be implemented in the new BasePlotlyType._process_kwargs method.
  2. The fig.add_* methods for adding traces: fig.add_scatter(..., marker_line_color='blue')
  3. The .update method on graph objects as you had before: scatter.update(marker_line_color='blue')
  4. When processing dicts passed to graph object constructors: go.Scatter(dict(marker_line_color='blue')), or go.Scatter(marker=dict(line_color='blue'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions