Skip to content

path.bounds should return numbers even when input coordinates are strings #278

@Fil

Description

@Fil
d3.geoPath().bounds({type: "MultiPoint", coordinates: [["-32", "-20"], [32, 20]]})

returns [["-32", "-20"], [32, 20]]. I suggest we coerce the coordinates to numbers in

function boundsPoint(x, y) {

related observablehq/plot#1264

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