Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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