So using bits from both examples you should be able to do what you want. I want to make a version for the second demo using three.js but its not going to be any time soon.
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.
Maybe not the most straight forward answer but you should be able to get it running based on those two posts.
First is Web Bluetooth app connecting to a gyro device and visualising using three.js. Its not an espruino device but you should get the idea.
http://forum.espruino.com/conversations/347308/#comment15271498
Second is Web Bluetooth app connecting to espruino Bangle watch and visualising using tinydash.
http://forum.espruino.com/conversations/346860/#comment15254612
So using bits from both examples you should be able to do what you want. I want to make a version for the second demo using three.js but its not going to be any time soon.
Hope that helps.