Skip to content

Heatmap color shades for negative numbers #597

@jesusthatsgreat

Description

@jesusthatsgreat

Codepen

https://codepen.io/anon/pen/ZNeEgx

logic

What is the behavior you expect?

With positive numbers, the higher the number, the darker the shade. 5 is darker than 1 for example (which is fine, no problems there).

With negative numbers however, if we're being logically consistent, you'd expect the shade to get lighter the closer to zero the number is. For example -1 should be lighter than -5.

What is happening instead?

Currently with negative numbers, the shade is darker the closer to zero you get. Another example of what I'd expect here: (where darker reds mean larger losses, darker greens mean larger gains)

darker

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