You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Guard against formatDefault returning undefined (it always returns a string except when the value is NaN)
Closes#1334
related to #493
* coalesce null to empty string
* DRY
---------
Co-authored-by: Mike Bostock <[email protected]>
* Guard against formatDefault returning undefined (it always returns a string except when the value is NaN)
Closesobservablehq#1334
related to observablehq#493
* coalesce null to empty string
* DRY
---------
Co-authored-by: Mike Bostock <[email protected]>
OK it's pretty rare, but it's possible to crash by providing both the unknown option (so the tick goes somewhere on screen), and a NaN tick value:
Plot.plot({x: { type: "linear", ticks: [NaN, 1, 2], tickFormat: (d) => d, unknown: 1 }})
related: #493
The text was updated successfully, but these errors were encountered: