Skip to content

go.Figure clobbers user uids #1512

Closed
@alexcjohnson

Description

@alexcjohnson

default usage of go.Figure does not allow users to enter uid for traces. That seems to be because it calls self._data_validator = DataValidator(set_uid=True) that triggers:

if self.set_uid:
for trace in v:
trace.uid = str(uuid.uuid4())

Can we override uid only if it wasn't set by the user?

Discovered while debugging https://community.plot.ly/t/preserving-ui-state-like-zoom-in-dcc-graph/15793/34

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