Convert from canvas/div x coordinate to data coordinate.
If x is null, this returns null.
x
null
external num toDataXCoord([num? x]);