Skip to content

Discrete colorscales for heatmaps #1785

Closed
@alexcjohnson

Description

@alexcjohnson

I was reading https://www.vox.com/policy-and-politics/2017/6/13/15792276/trump-obamacare-map and got annoyed by the colorbar:

screen shot 2017-06-14 at 12 32 50 am

Is "2" grey or light blue? Totally ambiguous. They need to move the labels to the middle of the corresponding color swatch. Ironically the Trump administration map, which the article so painstakingly picked apart, made it much clearer what each color means.

But I realized that, while we make discrete colorbars for contour maps (though in that case you really do want to place the label the boundary, and that's what we do), we actually don't have this ability with heatmaps and choropleths, we can only do continuous gradations for these types. We should support that, and perhaps even default to it when the data values are discrete like this.

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