Skip to content

Shorthand for GeoJSON properties #1172

@mbostock

Description

@mbostock

It’d be nice if Plot.geo supported shorthand for GeoJSON properties, e.g.,

Plot.geo(counties, {fill: "rate"})

would be shorthand for

Plot.geo(counties, {fill: d => d.properties.rate})

I’m not sure how to do it, though, because in theory the properties could be on the features directly, and we’d still want it to work in that case.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgeoMaps and projectionsquestionFurther information is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions