Skip to content

Scattergl vs scatter [BUG] #1309

@tawabshakeel

Description

@tawabshakeel

For better speed and to present more data I am converting code from scatter to scattergl but I am facing issue in the color scheme

px.scatter(df2, x="xaxis", y="yaxis", color="color", hover_data=["hover"])

changed to

summary_plot = go.Figure()
summary_plot.add_trace(go.Scattergl(x=df2['xaxis'], y=df2['yaxis'],mode='markers',hovertext=df2['hover'],
                                     marker=dict(color=list(df2['color']),showscale=True,autocolorscale=False,cauto=False)))

chart created from scatter
scatter

chart created from px.scattergl
scattergl

I want to have a scatter color scheme in a scatter function.
Am I missing any parameter in scattergl?
Please guide me

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