Skip to content

Color by category within one dimension, for parcats (and parcoords?) #3061

Closed
@alexcjohnson

Description

@alexcjohnson

In #2963, when @jonmmease introduced the parcats trace type, he showed some existing examples like this one:
parallel sets kosara
One thing this and other examples he showed do that parcats does not is give a categorical colorscale to paths based on one of their dimensions. We let users specify per-path color only with a new line.color array, which is nice for programmatic applications like brushing but not as useful for simply exploring within one parcats diagram. In fact, all these examples color by the first dimension, but in principle it would be nice to be able to color by any dimension. Users should be able to use either layout.colorway or a different colorway, and we should be careful to keep the colors from changing if you drag categories around. I could also imagine letting users perhaps doubleclick a category to switch the coloring to that category.

parcoords might like this feature as well; in that context it would be a colorscale related to a specific dimension.

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