Skip to content

Handle consistent colors in charts when factor levels are missing #18

@sfirke

Description

@sfirke

In particular, for our most common scales (e.g., "Strongly agree" onward).

This took some work to get functional:
image

Note the correct colors in the middle bars, as if the others were there.

I leaned on this answer: https://stackoverflow.com/a/22822231 but it would be nice to not have to hack this together each time.

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