Skip to content

Option to treat 0 and null the same #17

@silverwind

Description

@silverwind

I think it does not make much sense to treat 0 and null different like the module currently does.

If one wants to treat them the same using 7-color colorRange, there is a issue in the legend rendering when where the two colors are listed twice and the legend being cut-off because the module can not correctly handle 7 colors in it:

image

I think the only clean way to solve is to have a boolean option that makes 0 and null equal color so colorRange can be defined using six colors.

See go-gitea/gitea#22157 for more details and a workaround I've added to fix the legend rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions