Autodetect using Navigator.getBattery() API with label and colors

Setting various values manually

Rotate 270° and autodetect using Navigator.getBattery() API with label and colors

This example uses custom styles Updating the level using JS with colors