In this example the width and height of the custom element BarGauge are set in percentages.