...
In terms of the results, this requires data science support. The x,y,z points need to be transformed to a value that should correlate with distance. See work to prepare the data here: https://github.com/AdamLeonSmith/privkittools/blob/master/Magnetometer.ipynb
...