grapher: replace Math.NaN (???) with NaN

Drag logic seems unaffected.
grapher: autoscale method

[#42230341]
grapher: initial autoscale button (no icon yet)

[#42230341]