Not having a puck I'm not sure how the axis are laid out.
If you set up to continuously output the raw x,y,z readings and then rotate the puck
you should see the X-axis reach a maximum, and the same for the Y and Z axis.
Note the position of the puck at each maximum relative to North.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Not having a puck I'm not sure how the axis are laid out.
If you set up to continuously output the raw x,y,z readings and then rotate the puck
you should see the X-axis reach a maximum, and the same for the Y and Z axis.
Note the position of the puck at each maximum relative to North.
See puck.mag at
https://www.espruino.com/Reference#Puck