Skip to content

Plans for palette/scale extension API? #358

@nanxstats

Description

@nanxstats

I'm exploring the possibility for custom color scales in ggsql. From the current codebase, palette names seem to be resolved in core, so external packages can't cleanly register new palettes without patching ggsql. Do you have any plans for an extension API, such as a palette registry, provider trait, or plugin system?

My goal is to port ggsci/py-ggsci in a way that would work cleanly across ggsql and its Python/R bindings. Some palettes in ggsci are also generative rather than just static color arrays, so a properly programmable extension point would be especially useful, for example, extensions as Rust crates.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions