Skip to content

Negative values break legend and map #27

@mrjones-plip

Description

@mrjones-plip

Legend

If you are have a maptable with values that are negative, the legend break. Say our min value is -114 and max is 175. The legend is rendered correctly:

          -114 |---------------------------------------| 175

But when you roll over a country with a negative value, say -77, the legend indicator treats the smallest value as 0 instead of, in our case, -114, thus rendering the marker for the current country off of the legend:

          -114 |---------------------------------------| 175
^
-77

it should put it about here:

          -114 |---------------------------------------| 175
                         ^
                       -77

And, in case ASCII art isn't your thing, here's a screenshot ;)

broken legend

Map

Countries with a negative value always get a fill color of white. Instead, they should get the fill color of min

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions