Skip to content

Automatically color individual groupby child traces #1823

Closed
@rreusser

Description

@rreusser

@jackparmer points out that when you add a groupby, only the legend changes, which isn't particularly helpful. Is there some way to work it in so that child traces don't simply inherit the same color and need to be manually styled to be meaningful?

Otherwise this may be strictly a workspace issue, but it seems that if there's some way to accomplish this in plotly.js, that would be preferable.

It isn't entirely straightforward since they do inherit the parent styles, which is a single color. Perhaps this could be accomplished with groupby populating the style field with unique colors for each child trace. It's ugly to need to populate all the group style fields, but unless there's a better way to override the default color, then I'm not sure the best path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions