Skip to content

Make the color = dims(1) correspond to the mapping for wide data #474

@pdeffebach

Description

@pdeffebach

Problem description

I am making a line plot with wide data. The command is

p = data(df_collapsed) * mapping(:mean_age, [:N, :U, :B, :W], color = dims(1) => renamer(["N", "U", "B", "W"])) * visual(Lines)

See how I have to repeat ["N", "U", "B", "W"] twice? I should just have to write dims(1) and have it automatically take the name of the lines from the mapping.

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