plot icon indicating copy to clipboard operation
plot copied to clipboard

a space is interpreted as a number

Open Fil opened this issue 3 years ago • 1 comments

Plot.plot({ marks: [Plot.barX([{ x: 200, y: " " }], { x: "x", y: "y" })] }) wrongly recognizes the space as a number, then warns about y being numbers.

Fil avatar Sep 23 '22 16:09 Fil

It’s because it’s coercible to a number: +" " equals 0.

mbostock avatar Sep 23 '22 16:09 mbostock