This sample shows the battery indicator charged up to 75% by utilizing the linear gauge's functionalities.
In this example, you can see how to render and configure a linear gauge to look like a battery indicator. This can be accomplished by combining axis, pointer, multiple ranges, and multiple annotation. More information on the linear gauge can be found in this documentation section.