In this example of Custom Element BarGauge, the user controls the proportion between Red, Green and Blue.
Red
Green
Blue